CbmRoot
CbmTofCell.h
Go to the documentation of this file.
1 #ifndef CBMTOFCELL_H
2 #define CBMTOFCELL_H 1
3 
4 #include <Rtypes.h> // for THashConsistencyHolder, ClassDef
5 #include <RtypesCore.h> // for Double_t, Int_t, Option_t
6 #include <TNamed.h> // for TNamed
7 
8 class CbmTofCell : public TNamed {
9 
10 public:
12  CbmTofCell();
13 
14 
24  CbmTofCell(Int_t detId,
25  Double_t x,
26  Double_t y,
27  Double_t z,
28  Double_t sizex,
29  Double_t sizey);
30 
32  virtual ~CbmTofCell();
33 
35  Int_t GetDetectorId() const { return fDetectorId; }
36  Double_t GetX() const { return fX; }
37  Double_t GetY() const { return fY; }
38  Double_t GetZ() const { return fZ; }
39 
40  Double_t GetSizex() const { return fSizex; }
41  Double_t GetSizey() const { return fSizey; }
42 
43  void Print(Option_t* = "") const;
44 
45 private:
48  Int_t fDetectorId; // Unique detector ID
49  Double_t fX; // center of module in global c.s. [cm]
50  Double_t fY; // center of module in global c.s. [cm]
51  Double_t fZ; // center of module in global c.s. [cm]
52  Double_t fSizex; // module size in x [cm]
53  Double_t fSizey; // module size in y [cm]
54 
59 };
60 
61 
62 #endif
CbmTofCell::GetZ
Double_t GetZ() const
Definition: CbmTofCell.h:38
CbmTofCell::GetSizex
Double_t GetSizex() const
Definition: CbmTofCell.h:40
CbmTofCell::fSizex
Double_t fSizex
Definition: CbmTofCell.h:52
CbmTofCell::fX
Double_t fX
Definition: CbmTofCell.h:49
CbmTofCell::GetDetectorId
Int_t GetDetectorId() const
Definition: CbmTofCell.h:35
CbmTofCell::fY
Double_t fY
Definition: CbmTofCell.h:50
CbmTofCell::CbmTofCell
CbmTofCell()
Definition: CbmTofCell.cxx:9
CbmTofCell::GetX
Double_t GetX() const
Definition: CbmTofCell.h:36
CbmTofCell
Definition: CbmTofCell.h:8
CbmTofCell::fSizey
Double_t fSizey
Definition: CbmTofCell.h:53
CbmTofCell::ClassDef
ClassDef(CbmTofCell, 1)
CbmTofCell::GetSizey
Double_t GetSizey() const
Definition: CbmTofCell.h:41
CbmTofCell::fDetectorId
Int_t fDetectorId
Definition: CbmTofCell.h:48
x
Double_t x
Definition: CbmMvdSensorDigiToHitTask.cxx:68
y
Double_t y
Definition: CbmMvdSensorDigiToHitTask.cxx:68
CbmTofCell::Print
void Print(Option_t *="") const
Definition: CbmTofCell.cxx:148
CbmTofCell::GetY
Double_t GetY() const
Definition: CbmTofCell.h:37
CbmTofCell::~CbmTofCell
virtual ~CbmTofCell()
Definition: CbmTofCell.cxx:32
CbmTofCell::fZ
Double_t fZ
Definition: CbmTofCell.h:51