Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DDIRCTDCDigiHit.h
Go to the documentation of this file.
1 // $Id$
2 //
3 // File: DDIRCTDCDigiHit.h
4 //
5 
6 #ifndef _DDIRCTDCDigiHit_
7 #define _DDIRCTDCDigiHit_
8 
9 #include <JANA/JObject.h>
10 #include <JANA/JFactory.h>
11 
12 class DDIRCTDCDigiHit:public jana::JObject{
13  public:
15 
16  int channel;
17  uint32_t edge; ///< 0=leading edge 1=trailing edge
18  uint32_t time; ///< 16 bit relative to beginning of defined readout window
19 
20  // This method is used primarily for pretty printing
21  // the second argument to AddString is printf style format
22  void toStrings(vector<pair<string,string> > &items)const{
23  AddString(items, "channel", "%d", channel);
24  AddString(items, "time", "%d", time);
25  AddString(items, "edge", "%d", edge);
26  }
27 
28 };
29 
30 #endif // _DDIRCTDCDigiHit_
31 
void toStrings(vector< pair< string, string > > &items) const
uint32_t edge
0=leading edge 1=trailing edge
uint32_t time
16 bit relative to beginning of defined readout window
JOBJECT_PUBLIC(DDIRCTDCDigiHit)