Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DTOFTruth.h
Go to the documentation of this file.
1 // $Id$
2 //
3 // File: DTOFTruth.h
4 // Created: Mon Oct 17 13:58:02 EST 2005
5 // Creator: remitche (on Linux mantrid00 2.4.20-18.8smp i686)
6 //
7 
8 #ifndef _DTOFTruth_
9 #define _DTOFTruth_
10 
11 #include <JANA/JObject.h>
12 #include <JANA/JFactory.h>
13 using namespace jana;
14 
15 class DTOFTruth:public JObject{
16 
17  public:
18  JOBJECT_PUBLIC(DTOFTruth);
19 
20  int track; // track index
21  int itrack; // MCThrown track index
22  int primary; // 0: secondary, 1: primary
23  float x, y, z; // true point of intersection
24  float px,py,pz; // momentum of the particle
25  float t; // true time
26  float E; // energy of the particle
27  int ptype; // GEANT particle type
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, "x", "%1.3f", x);
35  AddString(items, "y", "%1.3f", y);
36  AddString(items, "z", "%1.3f", z);
37  AddString(items, "t", "%1.3f", t);
38  AddString(items, "px", "%1.3f", px);
39  AddString(items, "py", "%1.3f", py);
40  AddString(items, "pz", "%1.3f", pz);
41  AddString(items, "E", "%1.3f", E);
42  }
43 };
44 
45 #endif // _DTOFTruth_
46 
Definition: track.h:16
float z
Definition: DTOFTruth.h:23
Double_t x[NCHANNELS]
Definition: st_tw_resols.C:39
float E
Definition: DTOFTruth.h:26
#define y
int primary
Definition: DTOFTruth.h:22
int track
Definition: DTOFTruth.h:20
void toStrings(vector< pair< string, string > > &items) const
Definition: DTOFTruth.h:29
TH1D * py[NCHANNELS]
float pz
Definition: DTOFTruth.h:24
float t
Definition: DTOFTruth.h:25
int itrack
Definition: DTOFTruth.h:21
int ptype
Definition: DTOFTruth.h:27