Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Df250PulsePedestal.h
Go to the documentation of this file.
1 // $Id$
2 // $HeadURL$
3 //
4 // File: Df250PulsePedestal.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 _Df250PulsePedestal_
10 #define _Df250PulsePedestal_
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  Df250PulsePedestal(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,
24  uint32_t pulse_peak=0,bool emulated=false,uint32_t pedestal_emulated = 0xffff, uint32_t pulse_peak_emulated=0xffff):
27 
28  uint32_t pulse_number; ///< from Pulse Pedestal Data word
29  uint32_t pedestal; ///< from Pulse Pedestal Data word
30  uint32_t pulse_peak; ///< from Pulse Pedestal Data word
31  bool emulated; ///< true if made from Window Raw Data
32  uint32_t pedestal_emulated; ///< Calculated from raw data (when available)
33  uint32_t pulse_peak_emulated; ///< Calculated from raw data (when available)
34 
35  // This method is used primarily for pretty printing
36  // the second argument to AddString is printf style format
37  void toStrings(vector<pair<string,string> > &items)const{
39  AddString(items, "pulse_number", "%d", pulse_number);
40  AddString(items, "pedestal", "%d", pedestal);
41  AddString(items, "pedestal_emulated", "%d", pedestal_emulated);
42  AddString(items, "pulse_peak", "%d", pulse_peak);
43  AddString(items, "pulse_peak_emulated", "%d", pulse_peak_emulated);
44  AddString(items, "emulated", "%d", emulated);
45  }
46 };
47 
48 #endif // _Df250PulsePedestal_
49 
uint32_t pedestal_emulated
Calculated from raw data (when available)
void toStrings(vector< pair< string, string > > &items) const
Definition: DDAQAddress.h:47
uint32_t pulse_number
from Pulse Pedestal Data word
Df250PulsePedestal(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, bool emulated=false, uint32_t pedestal_emulated=0xffff, uint32_t pulse_peak_emulated=0xffff)
uint32_t pulse_peak
from Pulse Pedestal Data word
bool emulated
true if made from Window Raw Data
JOBJECT_PUBLIC(Df250PulsePedestal)
Holds pulse time for one identified pulse in one event in one channel of a single f250 Flash ADC modu...
This class holds the Crate, Slot, Channel address for a digitized value from the DAQ system...
Definition: DDAQAddress.h:26
uint32_t channel
Definition: DDAQAddress.h:34
uint32_t pulse_peak_emulated
Calculated from raw data (when available)
uint32_t rocid
Definition: DDAQAddress.h:32
uint32_t pedestal
from Pulse Pedestal Data word
uint32_t itrigger
Definition: DDAQAddress.h:35
void toStrings(vector< pair< string, string > > &items) const
uint32_t slot
Definition: DDAQAddress.h:33