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