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