FairRoot/PandaRoot
THParticle.h
Go to the documentation of this file.
1 // ------------------------------------------------------------------------
2 // ----- CbmHyppoint header file -----
3 // ----- Created by A.Sanchez -----
4 // ------------------------------------------------------------------------
5 
6 #ifndef THPARTICLE_H
7 #define THPARTICLE_H
8 
9 #include "TObject.h"
10 #include "TVector3.h"
11 #include "TLorentzVector.h"
12 #include "TParticle.h"
13 #include "TString.h"
14 
15 
16 
17 
18 using namespace std;
19 
20 class THParticle : public TParticle
21 {
22 
23  public:
24 
26  THParticle();
27 
28 
29 
30 
31  THParticle(Int_t pdg, Int_t status,
32  Int_t evtID,
33  Int_t index, Double_t mass,
34  Int_t A, Int_t Z,Int_t H,
35  const TLorentzVector &p,
36  const TLorentzVector &v);
37 
40  TParticle(point),
41  fstatus(point.fstatus),
42  fEventID(point.fEventID),
43  fpdgCode(point.fpdgCode),
44  fCalcMass(point.fCalcMass),
45  fVx(point.fVx),
46  fVy(point.fVy),
47  fVz(point.fVz),
48  fIndex(point.fIndex),
49  fA(point.fA),
50  fZ(point.fZ),
51  fH(point.fH)
52  { return; }
53 
54 
56  virtual ~THParticle();
57 
58 
60  Int_t GetPdgCode() const { return fpdgCode; }
61  Int_t GetEventID() const { return fEventID; };
62  Int_t GetIndex() const { return fIndex; };
63  Double_t GetCalcMass() const { return fCalcMass; }
64 
65  Int_t GetA() const { return fA; };
66  Int_t GetZ() const { return fZ; };
67  Int_t GetH() const { return fH; };
68 
69  Double_t Vx() const { return fVx; };
70  Double_t Vy() const { return fVy; };
71  Double_t Vz() const { return fVz; };
72 
73 
74 
77  void SetEventID(Int_t ev) { fEventID = ev; };
78  void SetIndex(Int_t id) { fIndex = id; };
79 
80 
81 
83  virtual void Print(const Option_t* opt) const;
84 
85 
86  protected:
87  Int_t fstatus;
88  Int_t fEventID; // Event ID
89  Int_t fpdgCode; // PDG code of the particle
90 
91  Double_t fCalcMass;//,fPx,fPy,fPz; // Calculated mass
92  Double_t fVx,fVy,fVz;
93 
94 
95  Int_t fIndex,fA,fZ,fH;
96 
97 
98  ClassDef(THParticle,1)
99 
100 };
101 
102 
103 
104 #endif
MechFsc Print()
Int_t GetZ() const
Definition: THParticle.h:66
Double_t p
Definition: anasim.C:58
Double_t Vy() const
Definition: THParticle.h:70
Double_t Vz() const
Definition: THParticle.h:71
int ev
THParticle(const THParticle &point)
Definition: THParticle.h:39
Double_t fZ
Definition: PndCaloDraw.cxx:34
__m128 v
Definition: P4_F32vec4.h:4
Double_t fCalcMass
Definition: THParticle.h:91
Int_t GetA() const
Definition: THParticle.h:65
Double_t
Int_t fEventID
Definition: THParticle.h:88
Int_t fstatus
Definition: THParticle.h:87
void SetEventID(Int_t ev)
Definition: THParticle.h:77
Int_t GetEventID() const
Definition: THParticle.h:61
Int_t fpdgCode
Definition: THParticle.h:89
Double_t fVz
Definition: THParticle.h:92
Double_t Vx() const
Definition: THParticle.h:69
Int_t GetIndex() const
Definition: THParticle.h:62
Int_t fZ
Definition: THParticle.h:95
double Z
Definition: anaLmdDigi.C:68
void SetIndex(Int_t id)
Definition: THParticle.h:78
Int_t GetPdgCode() const
Definition: THParticle.h:60
Double_t GetCalcMass() const
Definition: THParticle.h:63
int status[10]
Definition: f_Init.h:28
PndSdsMCPoint * point
Definition: anaLmdCluster.C:72
Int_t GetH() const
Definition: THParticle.h:67