Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Df250TriggerTime.h
Go to the documentation of this file.
1 // $Id$
2 // $HeadURL$
3 //
4 // File: Df250TriggerTime.h
5 // Created: Tue Aug 7 15:24:10 EDT 2012
6 // Creator: davidl (on Darwin harriet.jlab.org 11.4.0 i386)
7 //
8 
9 #ifndef _Df250TriggerTime_
10 #define _Df250TriggerTime_
11 
12 #include <DAQ/DDAQAddress.h>
13 
15 
16  /// Holds trigger time data for one event in
17  /// a single f250 Flash ADC module.
18 
19  public:
21 
22  Df250TriggerTime():DDAQAddress(0, 0, 0, 0),time(0){}
23  Df250TriggerTime(uint32_t rocid, uint32_t slot, uint32_t itrigger, uint64_t time):DDAQAddress(rocid, slot, 0, itrigger),time(time){}
24 
25  uint64_t time; // from Trigger Time words
26 
27 
28  // This method is used primarily for pretty printing
29  // the second argument to AddString is printf style format
30  void toStrings(vector<pair<string,string> > &items)const{
32  AddString(items, "time", "%ld", time);
33  }
34 
35 };
36 
37 #endif // _Df250TriggerTime_
38 
void toStrings(vector< pair< string, string > > &items) const
JOBJECT_PUBLIC(Df250TriggerTime)
Holds trigger time data for one event in a single f250 Flash ADC module.
void toStrings(vector< pair< string, string > > &items) const
Definition: DDAQAddress.h:47
Df250TriggerTime(uint32_t rocid, uint32_t slot, uint32_t itrigger, uint64_t time)
This class holds the Crate, Slot, Channel address for a digitized value from the DAQ system...
Definition: DDAQAddress.h:26
uint32_t rocid
Definition: DDAQAddress.h:32
uint32_t itrigger
Definition: DDAQAddress.h:35
uint32_t slot
Definition: DDAQAddress.h:33