CbmRoot
CbmTofDetectorId_v14a.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 
19 // 3 2 1 shift length
30 #ifndef CBMTOFDETECTORID_V14A_H
31 #define CBMTOFDETECTORID_V14A_H 1
32 
33 #include "CbmTofDetectorId.h" // for CbmTofDetectorId, CbmTofDetectorInfo
34 #include <RtypesCore.h> // for Int_t
35 
37 
38 public:
41 
44 
49  CbmTofDetectorInfo GetDetectorInfo(const Int_t detectorId);
50 
52  Int_t GetSystemId(Int_t detectorId);
53 
55  Int_t GetSMType(const Int_t detectorId);
56  Int_t GetModuleType(const Int_t detectorId);
57 
59  Int_t GetSModule(const Int_t detectorId);
60  Int_t GetModuleId(const Int_t detectorId);
61 
63  Int_t GetCounter(const Int_t detectorId);
64 
66  Int_t GetGap(const Int_t detectorId);
67 
69  Int_t GetSide(const Int_t detectorId);
70 
72  Int_t GetCell(const Int_t detectorId);
74  Int_t GetStrip(const Int_t detectorId);
75 
77  Int_t GetRegion(const Int_t detectorId);
78 
83  Int_t GetCellId(const Int_t detectorId);
84 
89  Int_t SetDetectorInfo(const CbmTofDetectorInfo detectorInfo);
90 
91 private:
92  static const Int_t array_length = 6;
93  static const Int_t shiftarray[];
94  static const Int_t bitarray[];
97  Int_t modulemask;
98 };
99 
100 #endif
CbmTofDetectorId_v14a::GetSystemId
Int_t GetSystemId(Int_t detectorId)
Definition: CbmTofDetectorId_v14a.cxx:39
CbmTofDetectorId_v14a::maskarray
Int_t maskarray[array_length]
Definition: CbmTofDetectorId_v14a.h:96
CbmTofDetectorId.h
CbmTofDetectorId_v14a::GetGap
Int_t GetGap(const Int_t detectorId)
Definition: CbmTofDetectorId_v14a.cxx:72
CbmTofDetectorId_v14a::GetCell
Int_t GetCell(const Int_t detectorId)
Definition: CbmTofDetectorId_v14a.cxx:78
CbmTofDetectorId_v14a::GetDetectorInfo
CbmTofDetectorInfo GetDetectorInfo(const Int_t detectorId)
Definition: CbmTofDetectorId_v14a.cxx:26
CbmTofDetectorId_v14a::CbmTofDetectorId_v14a
CbmTofDetectorId_v14a()
Definition: CbmTofDetectorId_v14a.cxx:13
CbmTofDetectorId_v14a::GetSide
Int_t GetSide(const Int_t detectorId)
Definition: CbmTofDetectorId_v14a.cxx:69
CbmTofDetectorId_v14a::GetModuleId
Int_t GetModuleId(const Int_t detectorId)
Definition: CbmTofDetectorId_v14a.cxx:57
CbmTofDetectorId_v14a::bitarray
static const Int_t bitarray[]
Definition: CbmTofDetectorId_v14a.h:94
CbmTofDetectorId_v14a::SetDetectorInfo
Int_t SetDetectorInfo(const CbmTofDetectorInfo detectorInfo)
Definition: CbmTofDetectorId_v14a.cxx:98
CbmTofDetectorId_v14a::shiftarray
static const Int_t shiftarray[]
Definition: CbmTofDetectorId_v14a.h:93
CbmTofDetectorId_v14a::GetCounter
Int_t GetCounter(const Int_t detectorId)
Definition: CbmTofDetectorId_v14a.cxx:63
CbmTofDetectorId_v14a::result_array
Int_t result_array[array_length]
Definition: CbmTofDetectorId_v14a.h:95
CbmTofDetectorId_v14a::GetSModule
Int_t GetSModule(const Int_t detectorId)
Definition: CbmTofDetectorId_v14a.cxx:54
CbmTofDetectorId_v14a::GetSMType
Int_t GetSMType(const Int_t detectorId)
Definition: CbmTofDetectorId_v14a.cxx:45
CbmTofDetectorId_v14a
Definition: CbmTofDetectorId_v14a.h:36
CbmTofDetectorInfo
Definition: CbmTofDetectorId.h:20
CbmTofDetectorId_v14a::GetModuleType
Int_t GetModuleType(const Int_t detectorId)
Definition: CbmTofDetectorId_v14a.cxx:48
CbmTofDetectorId_v14a::~CbmTofDetectorId_v14a
~CbmTofDetectorId_v14a()
Definition: CbmTofDetectorId_v14a.h:43
CbmTofDetectorId_v14a::array_length
static const Int_t array_length
Definition: CbmTofDetectorId_v14a.h:92
CbmTofDetectorId_v14a::GetCellId
Int_t GetCellId(const Int_t detectorId)
Definition: CbmTofDetectorId_v14a.cxx:92
CbmTofDetectorId_v14a::GetStrip
Int_t GetStrip(const Int_t detectorId)
Definition: CbmTofDetectorId_v14a.cxx:82
CbmTofDetectorId
Definition: CbmTofDetectorId.h:66
CbmTofDetectorId_v14a::modulemask
Int_t modulemask
Definition: CbmTofDetectorId_v14a.h:97
CbmTofDetectorId_v14a::GetRegion
Int_t GetRegion(const Int_t detectorId)
Definition: CbmTofDetectorId_v14a.cxx:88