CbmRoot
CbmHadron.h
Go to the documentation of this file.
1 // ------------------------------------------------------------------
2 // ----- CbmHadron.h -----
3 // ----- Created 2008-01-18 by D.Kresan -----
4 // ------------------------------------------------------------------
5 
6 
7 #ifndef CBM_HADRON
8 #define CBM_HADRON
9 
10 
11 #include "TObject.h"
12 
13 
14 class CbmHadron : public TObject {
15 
16 public:
17  CbmHadron();
18  CbmHadron(Int_t charge,
19  Double_t p,
20  Double_t pt,
21  Double_t pz,
22  Int_t nMvdHits,
23  Int_t nStsHits,
24  Int_t nTrdHits,
25  Double_t b,
26  Double_t length,
27  Double_t mass2,
28  Int_t pdg,
29  Bool_t ghost,
30  Bool_t tdh);
31  virtual ~CbmHadron();
32 
33 private:
34  Int_t fCharge;
35  Double32_t fP;
36  Double32_t fPt;
37  Double32_t fPz;
38  Int_t fNMvdHits;
39  Int_t fNStsHits;
40  Int_t fNTrdHits;
41  Double32_t fB;
42  Double32_t fLength;
43  Double32_t fMass2;
44  Int_t fPdg;
45  Bool_t fGhost;
46  Bool_t fTDH;
47 
48 public:
49  inline Int_t GetCharge() const { return fCharge; }
50  inline Double_t GetP() const { return fP; }
51  inline Double_t GetPt() const { return fPt; }
52  inline Double_t GetPz() const { return fPz; }
53  inline Int_t GetNMvdHits() const { return fNMvdHits; }
54  inline Int_t GetNStsHits() const { return fNStsHits; }
55  inline Int_t GetNTrdHits() const { return fNTrdHits; }
56  inline Double_t GetB() const { return fB; }
57  inline Double_t GetLength() const { return fLength; }
58  inline Double_t GetMass2() const { return fMass2; }
59  inline Int_t GetPdg() const { return fPdg; }
60  inline Bool_t IsGhost() const { return fGhost; }
61  inline Bool_t IsTDH() const { return fTDH; }
62 
63  inline void SetCharge(Int_t charge) { fCharge = charge; }
64  inline void SetP(Double_t p) { fP = p; }
65  inline void SetPt(Double_t pt) { fPt = pt; }
66  inline void SetPz(Double_t pz) { fPz = pz; }
67  inline void SetNMvdHits(Int_t nMvdHits) { fNMvdHits = nMvdHits; }
68  inline void SetNStsHits(Int_t nStsHits) { fNStsHits = nStsHits; }
69  inline void SetNTrdHits(Int_t nTrdHits) { fNTrdHits = nTrdHits; }
70  inline void SetB(Double_t b) { fB = b; }
71  inline void SetLength(Double_t length) { fLength = length; }
72  inline void SetMass2(Double_t mass2) { fMass2 = mass2; }
73  inline void SetPdg(Int_t pdg) { fPdg = pdg; }
74  inline void SetGhost(Bool_t ghost) { fGhost = ghost; }
75  inline void SetTDH(Bool_t tdh) { fTDH = tdh; }
76 
77  ClassDef(CbmHadron, 1)
78 };
79 
80 
81 #endif
CbmHadron::SetP
void SetP(Double_t p)
Definition: CbmHadron.h:64
CbmHadron::SetPt
void SetPt(Double_t pt)
Definition: CbmHadron.h:65
CbmHadron
Definition: CbmHadron.h:14
CbmHadron::GetNTrdHits
Int_t GetNTrdHits() const
Definition: CbmHadron.h:55
CbmHadron::GetP
Double_t GetP() const
Definition: CbmHadron.h:50
CbmHadron::SetNStsHits
void SetNStsHits(Int_t nStsHits)
Definition: CbmHadron.h:68
CbmHadron::CbmHadron
CbmHadron()
Definition: CbmHadron.cxx:10
CbmHadron::fPz
Double32_t fPz
Definition: CbmHadron.h:37
CbmHadron::GetMass2
Double_t GetMass2() const
Definition: CbmHadron.h:58
CbmHadron::SetMass2
void SetMass2(Double_t mass2)
Definition: CbmHadron.h:72
CbmHadron::GetB
Double_t GetB() const
Definition: CbmHadron.h:56
CbmHadron::fGhost
Bool_t fGhost
Definition: CbmHadron.h:45
CbmHadron::fCharge
Int_t fCharge
Definition: CbmHadron.h:34
CbmHadron::IsGhost
Bool_t IsGhost() const
Definition: CbmHadron.h:60
CbmHadron::GetPz
Double_t GetPz() const
Definition: CbmHadron.h:52
CbmHadron::SetNMvdHits
void SetNMvdHits(Int_t nMvdHits)
Definition: CbmHadron.h:67
CbmHadron::GetCharge
Int_t GetCharge() const
Definition: CbmHadron.h:49
CbmHadron::fTDH
Bool_t fTDH
Definition: CbmHadron.h:46
CbmHadron::fPdg
Int_t fPdg
Definition: CbmHadron.h:44
CbmHadron::SetB
void SetB(Double_t b)
Definition: CbmHadron.h:70
CbmHadron::fMass2
Double32_t fMass2
Definition: CbmHadron.h:43
CbmHadron::fNTrdHits
Int_t fNTrdHits
Definition: CbmHadron.h:40
CbmHadron::SetGhost
void SetGhost(Bool_t ghost)
Definition: CbmHadron.h:74
CbmHadron::SetPz
void SetPz(Double_t pz)
Definition: CbmHadron.h:66
CbmHadron::SetPdg
void SetPdg(Int_t pdg)
Definition: CbmHadron.h:73
CbmHadron::fNStsHits
Int_t fNStsHits
Definition: CbmHadron.h:39
CbmHadron::~CbmHadron
virtual ~CbmHadron()
Definition: CbmHadron.cxx:60
CbmHadron::GetPdg
Int_t GetPdg() const
Definition: CbmHadron.h:59
CbmHadron::GetNStsHits
Int_t GetNStsHits() const
Definition: CbmHadron.h:54
nStsHits
Int_t nStsHits
Definition: CbmHadronAnalysis.cxx:65
CbmHadron::SetLength
void SetLength(Double_t length)
Definition: CbmHadron.h:71
CbmHadron::SetTDH
void SetTDH(Bool_t tdh)
Definition: CbmHadron.h:75
CbmHadron::GetLength
Double_t GetLength() const
Definition: CbmHadron.h:57
CbmHadron::fLength
Double32_t fLength
Definition: CbmHadron.h:42
CbmHadron::fP
Double32_t fP
Definition: CbmHadron.h:35
CbmHadron::IsTDH
Bool_t IsTDH() const
Definition: CbmHadron.h:61
CbmHadron::SetNTrdHits
void SetNTrdHits(Int_t nTrdHits)
Definition: CbmHadron.h:69
CbmHadron::fNMvdHits
Int_t fNMvdHits
Definition: CbmHadron.h:38
CbmHadron::SetCharge
void SetCharge(Int_t charge)
Definition: CbmHadron.h:63
CbmHadron::GetPt
Double_t GetPt() const
Definition: CbmHadron.h:51
CbmHadron::GetNMvdHits
Int_t GetNMvdHits() const
Definition: CbmHadron.h:53
CbmHadron::fB
Double32_t fB
Definition: CbmHadron.h:41
CbmHadron::fPt
Double32_t fPt
Definition: CbmHadron.h:36