Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DSCTruthHit.h
Go to the documentation of this file.
1 // $Id$
2 //
3 // File: DSCTruthHit.h
4 // Created: Wed Feb 7 10:53:46 EST 2007
5 // Creator: davidl (on Linux megrez.jlab.org 2.6.9-42.0.2.ELsmp x86_64)
6 //
7 
8 #ifndef _DSCTruthHit_
9 #define _DSCTruthHit_
10 
11 #include <JANA/JObject.h>
12 #include <JANA/JFactory.h>
13 
14 class DSCTruthHit:public JObject{
15  public:
17 
18  float dEdx;
19  bool primary;
20  int track;
21  int itrack;
22  int ptype;
23  float r;
24  float phi;
25  float z;
26  float t;
27  int sector;
28 
29  void toStrings(vector<pair<string,string> > &items)const{
30  AddString(items, "track", "%d", track);
31  AddString(items, "itrack", "%d", itrack);
32  AddString(items, "primary", "%d", primary);
33  AddString(items, "ptype", "%d", ptype);
34  AddString(items, "dEdx(MeV/cm)", "%1.3f", dEdx*1.0E3);
35  AddString(items, "t", "%3.2f", t);
36  AddString(items, "r", "%3.1f", r);
37  AddString(items, "phi", "%1.3f", phi);
38  AddString(items, "z", "%3.1f", z);
39  AddString(items, "sector", "%d", sector);
40  }
41 };
42 
43 #endif // _DSCTruthHit_
44 
Definition: track.h:16
JOBJECT_PUBLIC(DSCTruthHit)
static double E3[100]
bool primary
Definition: DSCTruthHit.h:19
float dEdx
Definition: DSCTruthHit.h:18
void toStrings(vector< pair< string, string > > &items) const
Definition: DSCTruthHit.h:29