Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DDIRCTriggerTime.h
Go to the documentation of this file.
1 // $Id:$
2 // $HeadURL:$
3 //
4 // File: DDIRCTriggerTime.h
5 // Created: Tue Aug 21 22:20:40 EDT 2018
6 // Creator: davidl
7 //
8 
9 #ifndef _DDIRCTriggerTime_
10 #define _DDIRCTriggerTime_
11 
12 #include <DAQ/DDAQAddress.h>
13 
15 
16  /// Holds trigger time data for one event from DIRC
17 
18  public:
20 
21  DDIRCTriggerTime():DDAQAddress(0, 0, 0, 0),time(0){}
22  DDIRCTriggerTime(uint32_t rocid, uint32_t slot, uint32_t itrigger, uint64_t time):DDAQAddress(rocid, slot, 0, itrigger),time(time){}
23 
24  uint64_t time; // from Trigger Time words
25 
26 
27  // This method is used primarily for pretty printing
28  // the second argument to AddString is printf style format
29  void toStrings(vector<pair<string,string> > &items)const{
31  AddString(items, "time", "%ld", time);
32  }
33 
34 };
35 
36 #endif // _DDIRCTriggerTime_
37 
DDIRCTriggerTime(uint32_t rocid, uint32_t slot, uint32_t itrigger, uint64_t time)
void toStrings(vector< pair< string, string > > &items) const
Definition: DDAQAddress.h:47
JOBJECT_PUBLIC(DDIRCTriggerTime)
Holds trigger time data for one event from DIRC.
void toStrings(vector< pair< string, string > > &items) const
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