Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Df125PulseTime.h
Go to the documentation of this file.
1 // $Id$
2 // $HeadURL$
3 //
4 // File: Df125PulseTime.h
5 // Created: Mon Jul 8 12:01:57 EDT 2013
6 // Creator: davidl (on Darwin harriet.jlab.org 11.4.0 i386)
7 //
8 
9 #ifndef _Df125PulseTime_
10 #define _Df125PulseTime_
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  /// f125 Flash ADC module.
19 
20  public:
22 
24 
25  uint32_t pulse_number; ///< from Pulse Time Data word
26  uint32_t quality_factor; ///< from Pulse Time Data word
27  uint32_t time; ///< from Pulse Time Data word
28  uint32_t overflows; ///< (future expansion. "7" means "7 or more" samples overflowed
29  uint32_t peak_time; ///< from 2nd word for FDC data only (type 6 or 9)
30  bool emulated; ///< true if made from Window Raw Data
31 
32  // This method is used primarily for pretty printing
33  // the second argument to AddString is printf style format
34  void toStrings(vector<pair<string,string> > &items)const{
36  AddString(items, "pulse_number", "%d", pulse_number);
37  AddString(items, "quality_factor", "%d", quality_factor);
38  AddString(items, "time", "%d", time);
39  AddString(items, "overflows", "%d", overflows);
40  AddString(items, "peak_time", "%d", peak_time);
41  AddString(items, "emulated", "%d", emulated);
42  }
43 };
44 
45 #endif // _Df125PulseTime_
46 
void toStrings(vector< pair< string, string > > &items) const
Definition: DDAQAddress.h:47
uint32_t peak_time
from 2nd word for FDC data only (type 6 or 9)
uint32_t overflows
(future expansion. &quot;7&quot; means &quot;7 or more&quot; samples overflowed
uint32_t pulse_number
from Pulse Time Data word
uint32_t time
from Pulse Time Data word
void toStrings(vector< pair< string, string > > &items) const
bool emulated
true if made from Window Raw Data
JOBJECT_PUBLIC(Df125PulseTime)
Holds pulse time for one identified pulse in one event in one channel of a single f125 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 quality_factor
from Pulse Time Data word
Df125PulseTime(uint32_t rocid=0, uint32_t slot=0, uint32_t channel=0, uint32_t itrigger=0, uint32_t pulse_number=0, uint32_t quality_factor=0, uint32_t time=0, uint32_t overflows=0, uint32_t peak_time=0, bool emulated=false)
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