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 using namespace std;
16 
17 class THParticle : public TParticle {
18 
19  public:
21  THParticle();
22 
23  THParticle(Int_t pdg, Int_t status, Int_t evtID, Int_t index, Double_t mass, Int_t A, Int_t Z, Int_t H, const TLorentzVector &p, const TLorentzVector &v);
24 
26  THParticle(const THParticle &point)
27  : TParticle(point), fstatus(point.fstatus), fEventID(point.fEventID), fpdgCode(point.fpdgCode), fCalcMass(point.fCalcMass), fVx(point.fVx), fVy(point.fVy), fVz(point.fVz),
28  fIndex(point.fIndex), fA(point.fA), fZ(point.fZ), fH(point.fH)
29  {
30  return;
31  }
32 
34  virtual ~THParticle();
35 
37  Int_t GetPdgCode() const { return fpdgCode; }
38  Int_t GetEventID() const { return fEventID; };
39  Int_t GetIndex() const { return fIndex; };
40  Double_t GetCalcMass() const { return fCalcMass; }
41 
42  Int_t GetA() const { return fA; };
43  Int_t GetZ() const { return fZ; };
44  Int_t GetH() const { return fH; };
45 
46  Double_t Vx() const { return fVx; };
47  Double_t Vy() const { return fVy; };
48  Double_t Vz() const { return fVz; };
49 
52  void SetEventID(Int_t ev) { fEventID = ev; };
53  void SetIndex(Int_t id) { fIndex = id; };
54 
56  virtual void Print(const Option_t *opt) const;
57 
58  protected:
59  Int_t fstatus;
60  Int_t fEventID; // Event ID
61  Int_t fpdgCode; // PDG code of the particle
62 
63  Double_t fCalcMass; //,fPx,fPy,fPz; // Calculated mass
64  Double_t fVx, fVy, fVz;
65 
66  Int_t fIndex, fA, fZ, fH;
67 
68  ClassDef(THParticle, 1)
69 };
70 
71 #endif
Int_t GetH() const
Definition: THParticle.h:44
Double_t Vz() const
Definition: THParticle.h:48
Int_t GetA() const
Definition: THParticle.h:42
Double_t GetCalcMass() const
Definition: THParticle.h:40
THParticle(const THParticle &point)
Definition: THParticle.h:26
STL namespace.
Int_t GetPdgCode() const
Definition: THParticle.h:37
__m128 v
Definition: P4_F32vec4.h:3
Double_t fCalcMass
Definition: THParticle.h:63
Int_t fEventID
Definition: THParticle.h:60
Int_t fstatus
Definition: THParticle.h:59
void SetEventID(Int_t ev)
Definition: THParticle.h:52
Int_t fpdgCode
Definition: THParticle.h:61
Int_t GetZ() const
Definition: THParticle.h:43
Double_t Vx() const
Definition: THParticle.h:46
Double_t fVz
Definition: THParticle.h:64
Int_t GetEventID() const
Definition: THParticle.h:38
Int_t fZ
Definition: THParticle.h:66
void SetIndex(Int_t id)
Definition: THParticle.h:53
Double_t Vy() const
Definition: THParticle.h:47
Int_t GetIndex() const
Definition: THParticle.h:39
int status[10]
Definition: f_Init.h:24