CbmRoot
CbmPsdMCbmHit.h
Go to the documentation of this file.
1 
15 #ifndef CBMPSDMCBMHIT_H
16 #define CBMPSDMCBMHIT_H
17 
18 #include <Rtypes.h> // for THashConsistencyHolder, ClassDef
19 #include <RtypesCore.h> // for Double_t, Int_t
20 #include <TObject.h> // for TObject
21 
22 #include <string> // for string
23 
24 class CbmPsdMCbmHit : public TObject {
25 public:
27  CbmPsdMCbmHit();
28 
29 
36  CbmPsdMCbmHit(UInt_t moduleId,
37  UInt_t sectionId,
38  Double_t energy,
39  Double_t time);
40 
41 
43  virtual ~CbmPsdMCbmHit();
44 
46  virtual std::string ToString() const;
47 
48 
53  Int_t GetModuleID() const { return fuModuleId; }
54 
55 
59  Double_t GetSectionID() const { return fuSectionId; }
60 
61 
65  Double_t GetEdep() const { return fdEdep; }
66 
67 
71  Int_t GetTime() const { return fdTime; }
72 
73 
75  void SetModuleID(UInt_t mod) { fuModuleId = mod; }
76  void SetSectionID(UInt_t sec) { fuSectionId = sec; }
77  void SetEdep(Double_t edep) { fdEdep = edep; }
78  void SetTime(Double_t time) { fdTime = time; }
79 
80 private:
81  UInt_t fuModuleId = 0;
82  UInt_t fuSectionId = 0;
83  Double_t fdEdep = 0.;
84  Double_t fdTime = -1.;
85 
86  ClassDef(CbmPsdMCbmHit, 1)
87 };
88 
89 #endif //CBMPSDMCBMHIT_H
CbmPsdMCbmHit::ToString
virtual std::string ToString() const
Definition: CbmPsdMCbmHit.cxx:36
CbmPsdMCbmHit::fdTime
Double_t fdTime
Energy deposition.
Definition: CbmPsdMCbmHit.h:84
CbmPsdMCbmHit::fuSectionId
UInt_t fuSectionId
Module index.
Definition: CbmPsdMCbmHit.h:82
CbmPsdMCbmHit::SetSectionID
void SetSectionID(UInt_t sec)
Definition: CbmPsdMCbmHit.h:76
CbmPsdMCbmHit::GetTime
Int_t GetTime() const
Time of the signal @value Time [ns].
Definition: CbmPsdMCbmHit.h:71
CbmPsdMCbmHit::SetEdep
void SetEdep(Double_t edep)
Definition: CbmPsdMCbmHit.h:77
CbmPsdMCbmHit::fuModuleId
UInt_t fuModuleId
Definition: CbmPsdMCbmHit.h:81
CbmPsdMCbmHit::GetSectionID
Double_t GetSectionID() const
Index of PSD section @value section index [].
Definition: CbmPsdMCbmHit.h:59
CbmPsdMCbmHit::GetModuleID
Int_t GetModuleID() const
Index of PSD module @value module index [].
Definition: CbmPsdMCbmHit.h:53
CbmPsdMCbmHit
data class for hit information in PSD
Definition: CbmPsdMCbmHit.h:24
CbmPsdMCbmHit::CbmPsdMCbmHit
CbmPsdMCbmHit()
Definition: CbmPsdMCbmHit.cxx:15
CbmPsdMCbmHit::SetModuleID
void SetModuleID(UInt_t mod)
Definition: CbmPsdMCbmHit.h:75
CbmPsdMCbmHit::GetEdep
Double_t GetEdep() const
Energy deposited in PSD section @value Energy [a.u.].
Definition: CbmPsdMCbmHit.h:65
CbmPsdMCbmHit::SetTime
void SetTime(Double_t time)
Definition: CbmPsdMCbmHit.h:78
CbmPsdMCbmHit::~CbmPsdMCbmHit
virtual ~CbmPsdMCbmHit()
Definition: CbmPsdMCbmHit.cxx:32
CbmPsdMCbmHit::fdEdep
Double_t fdEdep
Section index.
Definition: CbmPsdMCbmHit.h:83