CbmRoot
CbmTofDetectorId_v12b.h
Go to the documentation of this file.
1 // -------------------------------------------------------------------------
2 // ----- CbmTofDetectorId_v12b header file -----
3 // ----- Created 20/11/12 by F. Uhlig -----
4 // -------------------------------------------------------------------------
5 
6 
16 // 3 2 1 shift length
27 #ifndef CBMTOFDETECTORID_V12B_H
28 #define CBMTOFDETECTORID_V12B_H 1
29 
30 #include "CbmTofDetectorId.h" // for CbmTofDetectorId, CbmTofDetectorInfo
31 #include <RtypesCore.h> // for Int_t
32 
34 
35 public:
38 
41 
46  CbmTofDetectorInfo GetDetectorInfo(const Int_t detectorId);
47 
49  Int_t GetSystemId(Int_t detectorId);
50 
52  Int_t GetSMType(const Int_t detectorId);
53 
55  Int_t GetSModule(const Int_t detectorId);
56 
58  Int_t GetCounter(const Int_t detectorId);
59 
61  Int_t GetGap(const Int_t detectorId);
62 
64  Int_t GetCell(const Int_t detectorId);
65 
67  Int_t GetRegion(const Int_t detectorId);
68 
73  Int_t GetCellId(const Int_t detectorId);
74 
79  Int_t SetDetectorInfo(const CbmTofDetectorInfo detectorInfo);
80 
81 private:
82  static const Int_t array_length = 6;
83  static const Int_t shiftarray[];
84  static const Int_t bitarray[];
87  Int_t modulemask;
88 };
89 
90 #endif
CbmTofDetectorId.h
CbmTofDetectorId_v12b::GetSModule
Int_t GetSModule(const Int_t detectorId)
Definition: CbmTofDetectorId_v12b.cxx:51
CbmTofDetectorId_v12b::GetSystemId
Int_t GetSystemId(Int_t detectorId)
Definition: CbmTofDetectorId_v12b.cxx:39
CbmTofDetectorId_v12b::GetRegion
Int_t GetRegion(const Int_t detectorId)
Definition: CbmTofDetectorId_v12b.cxx:75
CbmTofDetectorId_v12b::CbmTofDetectorId_v12b
CbmTofDetectorId_v12b()
Definition: CbmTofDetectorId_v12b.cxx:13
CbmTofDetectorId_v12b
Definition: CbmTofDetectorId_v12b.h:33
CbmTofDetectorId_v12b::GetGap
Int_t GetGap(const Int_t detectorId)
Definition: CbmTofDetectorId_v12b.cxx:63
CbmTofDetectorId_v12b::maskarray
Int_t maskarray[array_length]
Definition: CbmTofDetectorId_v12b.h:86
CbmTofDetectorId_v12b::~CbmTofDetectorId_v12b
~CbmTofDetectorId_v12b()
Definition: CbmTofDetectorId_v12b.h:40
CbmTofDetectorId_v12b::GetCellId
Int_t GetCellId(const Int_t detectorId)
Definition: CbmTofDetectorId_v12b.cxx:79
CbmTofDetectorId_v12b::SetDetectorInfo
Int_t SetDetectorInfo(const CbmTofDetectorInfo detectorInfo)
Definition: CbmTofDetectorId_v12b.cxx:85
CbmTofDetectorId_v12b::bitarray
static const Int_t bitarray[]
Definition: CbmTofDetectorId_v12b.h:84
CbmTofDetectorInfo
Definition: CbmTofDetectorId.h:20
CbmTofDetectorId_v12b::result_array
Int_t result_array[array_length]
Definition: CbmTofDetectorId_v12b.h:85
CbmTofDetectorId_v12b::GetDetectorInfo
CbmTofDetectorInfo GetDetectorInfo(const Int_t detectorId)
Definition: CbmTofDetectorId_v12b.cxx:26
CbmTofDetectorId_v12b::array_length
static const Int_t array_length
Definition: CbmTofDetectorId_v12b.h:82
CbmTofDetectorId_v12b::GetCell
Int_t GetCell(const Int_t detectorId)
Definition: CbmTofDetectorId_v12b.cxx:69
CbmTofDetectorId_v12b::modulemask
Int_t modulemask
Definition: CbmTofDetectorId_v12b.h:87
CbmTofDetectorId
Definition: CbmTofDetectorId.h:66
CbmTofDetectorId_v12b::GetCounter
Int_t GetCounter(const Int_t detectorId)
Definition: CbmTofDetectorId_v12b.cxx:57
CbmTofDetectorId_v12b::GetSMType
Int_t GetSMType(const Int_t detectorId)
Definition: CbmTofDetectorId_v12b.cxx:45
CbmTofDetectorId_v12b::shiftarray
static const Int_t shiftarray[]
Definition: CbmTofDetectorId_v12b.h:83