Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RichTruthHit.h
Go to the documentation of this file.
1 /*
2  * RichTruthHit.h
3  *
4  * Created on: Oct 5, 2013
5  * Author: yqiang
6  */
7 
8 #ifndef RICHTRUTHHIT_H_
9 #define RICHTRUTHHIT_H_
10 
11 #include <TObject.h>
12 #include <TVector3.h>
13 
14 class RichTruthHit: public TObject {
15 
16 public:
17 
19  }
20  ;
22  }
23  ;
24 
25  // Data members
26  TVector3 x; // hit position
27  TVector3 p; // three momentum
28  double t;
29  double E;
30  int track; ///< Track number
31  int primary; ///< primary track=1 not primary track=0
32  int ptype; /// particle type
33 
34  // Copy constructor
36  this->x = prt.x;
37  this->p = prt.p;
38  this->t = prt.t;
39  this->E = prt.E;
40  this->track = prt.track;
41  this->primary = prt.primary;
42  this->ptype = prt.ptype;
43  return *this;
44  }
45 
46 private:
48 
49 };
50 
51 #endif /* RICHTRUTHHIT_H_ */
Definition: track.h:16
RichTruthHit & operator=(const RichTruthHit &prt)
particle type
Definition: RichTruthHit.h:35
int track
Track number.
Definition: RichTruthHit.h:30
TVector3 x
Definition: RichTruthHit.h:23
TVector3 p
Definition: RichTruthHit.h:27
int primary
primary track=1 not primary track=0
Definition: RichTruthHit.h:31
ClassDef(RichTruthHit, 1)