Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DTPOLTruthHit.h
Go to the documentation of this file.
1 #ifndef _DTPOLTruthHit_
2 #define _DTPOLTruthHit_
3 
4 #include <JANA/JObject.h>
5 #include <JANA/JFactory.h>
6 
7 class DTPOLTruthHit:public JObject{
8 public:
10 
11  float dEdx;
12  bool primary;
13  int track;
14  int itrack;
15  int ptype;
16  float r;
17  float phi;
18  float z;
19  float t;
20  int sector;
21 
22  void toStrings(vector<pair<string,string> > &items)const{
23  AddString(items, "track", "%d", track);
24  AddString(items, "itrack", "%d", itrack);
25  AddString(items, "primary", "%d", primary);
26  AddString(items, "ptype", "%d", ptype);
27  AddString(items, "dEdx(MeV/cm)", "%1.3f", dEdx*1.0E3);
28  AddString(items, "t", "%3.2f", t);
29  AddString(items, "r", "%3.1f", r);
30  AddString(items, "phi", "%1.3f", phi);
31  AddString(items, "z", "%3.1f", z);
32  AddString(items, "sector", "%d", sector);
33  }
34 };
35 
36 #endif // _DTPOLTruthHit_
37 
Definition: track.h:16
void toStrings(vector< pair< string, string > > &items) const
Definition: DTPOLTruthHit.h:22
JOBJECT_PUBLIC(DTPOLTruthHit)
static double E3[100]