Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DCereHit.h
Go to the documentation of this file.
1 /*
2  * DCereHit.h
3  *
4  * Created on: Oct 10, 2012
5  * Author: yqiang
6  */
7 
8 #ifndef DCEREHIT_H_
9 #define DCEREHIT_H_
10 
11 #include <JANA/JObject.h>
12 #include <JANA/JFactory.h>
13 using namespace jana;
14 
15 class DCereHit: public JObject {
16 
17 public:
18  JOBJECT_PUBLIC (DCereHit);
19 
20  int sector; // sector hit by photons
21  float pe; // number of photon electrons
22  float t; // time
23 
24  void toStrings(vector<pair<string, string> >&items) const {
25  AddString(items, "sector", "%d", sector);
26  AddString(items, "pe", "%1.3f", pe);
27  AddString(items, "t", "%1.3f", t);
28  }
29 };
30 
31 #endif /* DCEREHIT_H_ */
int sector
Definition: DCereHit.h:20
float t
Definition: DCereHit.h:22
void toStrings(vector< pair< string, string > > &items) const
Definition: DCereHit.h:24
float pe
Definition: DCereHit.h:21