Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Df125PulsePedestal.h
Go to the documentation of this file.
1 // $Id$
2 // $HeadURL$
3 //
4 // File: Df125PulsePedestal.h
5 // Created: Mon Jul 28 09:44:35 EDT 2014
6 // Creator: davidl (on Darwin harriet.jlab.org 11.4.0 i386)
7 //
8 
9 #ifndef _Df125PulsePedestal_
10 #define _Df125PulsePedestal_
11 
12 #include <DAQ/DDAQAddress.h>
13 
15 
16  /// Holds pulse time for one identified
17  /// pulse in one event in one channel of a single
18  /// f250 Flash ADC module.
19 
20  public:
22 
23  Df125PulsePedestal(uint32_t rocid=0, uint32_t slot=0, uint32_t channel=0, uint32_t itrigger=0, uint32_t pulse_number=0, uint32_t pedestal=0, uint32_t pulse_peak=0, uint32_t nsamples=0, bool emulated=false):DDAQAddress(rocid, slot, channel, itrigger),pulse_number(pulse_number),pedestal(pedestal),pulse_peak(pulse_peak),nsamples(nsamples),emulated(emulated){}
24 
25  uint32_t pulse_number; ///< from Pulse Pedestal Data word
26  uint32_t pedestal; ///< from Pulse Pedestal Data word
27  uint32_t pulse_peak; ///< from Pulse Pedestal Data word
28  uint32_t nsamples; ///< number of samples used in pedestal
29  bool emulated; ///< true if made from Window Raw Data
30 
31  // This method is used primarily for pretty printing
32  // the second argument to AddString is printf style format
33  void toStrings(vector<pair<string,string> > &items)const{
35  AddString(items, "pulse_number", "%d", pulse_number);
36  AddString(items, "pedestal", "%d", pedestal);
37  AddString(items, "pulse_peak", "%d", pulse_peak);
38  AddString(items, "nsamples", "%d", nsamples);
39  AddString(items, "emulated", "%d", emulated);
40  }
41 };
42 
43 #endif // _Df125PulsePedestal_
44 
void toStrings(vector< pair< string, string > > &items) const
Definition: DDAQAddress.h:47
uint32_t nsamples
number of samples used in pedestal
bool emulated
true if made from Window Raw Data
uint32_t pulse_peak
from Pulse Pedestal Data word
void toStrings(vector< pair< string, string > > &items) const
uint32_t pulse_number
from Pulse Pedestal Data word
uint32_t pedestal
from Pulse Pedestal Data word
This class holds the Crate, Slot, Channel address for a digitized value from the DAQ system...
Definition: DDAQAddress.h:26
Df125PulsePedestal(uint32_t rocid=0, uint32_t slot=0, uint32_t channel=0, uint32_t itrigger=0, uint32_t pulse_number=0, uint32_t pedestal=0, uint32_t pulse_peak=0, uint32_t nsamples=0, bool emulated=false)
JOBJECT_PUBLIC(Df125PulsePedestal)
Holds pulse time for one identified pulse in one event in one channel of a single f250 Flash ADC modu...
uint32_t channel
Definition: DDAQAddress.h:34
uint32_t rocid
Definition: DDAQAddress.h:32
uint32_t itrigger
Definition: DDAQAddress.h:35
uint32_t slot
Definition: DDAQAddress.h:33