Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DTACTDCDigiHit.h
Go to the documentation of this file.
1 /*
2  * DTACTDCDigiHit.h
3  *
4  * Created on: May 3, 2017
5  * Author: Hovanes Egiyan
6  */
7 
8 #ifndef LIBRARIES_TAC_DTACTDCDIGIHIT_H_
9 #define LIBRARIES_TAC_DTACTDCDIGIHIT_H_
10 
11 #include <JANA/JObject.h>
12 
13 
14 class DTACTDCDigiHit: public jana::JObject {
15 public:
16  uint32_t time = 0;
17 public:
18  JOBJECT_PUBLIC(DTACTDCDigiHit)
19 
21  }
22  virtual ~DTACTDCDigiHit() {
23  }
24  // This method is used primarily for pretty printing
25  // the second argument to AddString is printf style format
26  void toStrings(vector<pair<string, string> > &items) const {
27  AddString(items, "time", "%d", time);
28  }
29 
30  uint32_t getTime() const {
31  return time;
32  }
33 
34  void setTime(uint32_t time = 0) {
35  this->time = time;
36  }
37 };
38 
39 #endif /* LIBRARIES_TAC_DTACTDCDIGIHIT_H_ */
uint32_t getTime() const
void toStrings(vector< pair< string, string > > &items) const
void setTime(uint32_t time=0)
virtual ~DTACTDCDigiHit()