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