CbmRoot
CbmTofDetectorId_v07a.h
Go to the documentation of this file.
1 // -------------------------------------------------------------------------
2 // ----- CbmTofDetectorId_v07a header file -----
3 // ----- Created 20/11/12 by F. Uhlig -----
4 // -------------------------------------------------------------------------
5 
6 
16 // 3 2 1 shift length
26 #ifndef CBMTOFDETECTORID_V07A_H
27 #define CBMTOFDETECTORID_V07A_H 1
28 
29 #include <RtypesCore.h> // for Int_t
30 
31 #include "CbmTofDetectorId.h" // for CbmTofDetectorId, CbmTofDetectorInfo
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 = 5;
83  static const Int_t shiftarray[];
84  static const Int_t bitarray[];
87  Int_t modulemask;
88 };
89 
90 #endif
CbmTofDetectorId_v07a::GetCellId
Int_t GetCellId(const Int_t detectorId)
Definition: CbmTofDetectorId_v07a.cxx:88
CbmTofDetectorId_v07a::~CbmTofDetectorId_v07a
~CbmTofDetectorId_v07a()
Definition: CbmTofDetectorId_v07a.h:40
CbmTofDetectorId_v07a::CbmTofDetectorId_v07a
CbmTofDetectorId_v07a()
Definition: CbmTofDetectorId_v07a.cxx:23
CbmTofDetectorId_v07a::GetSystemId
Int_t GetSystemId(Int_t detectorId)
Definition: CbmTofDetectorId_v07a.cxx:48
CbmTofDetectorId.h
CbmTofDetectorId_v07a::GetCounter
Int_t GetCounter(const Int_t detectorId)
Definition: CbmTofDetectorId_v07a.cxx:66
CbmTofDetectorId_v07a::result_array
Int_t result_array[array_length]
Definition: CbmTofDetectorId_v07a.h:85
CbmTofDetectorId_v07a::GetSModule
Int_t GetSModule(const Int_t detectorId)
Definition: CbmTofDetectorId_v07a.cxx:60
CbmTofDetectorId_v07a::shiftarray
static const Int_t shiftarray[]
Definition: CbmTofDetectorId_v07a.h:83
CbmTofDetectorId_v07a::maskarray
Int_t maskarray[array_length]
Definition: CbmTofDetectorId_v07a.h:86
CbmTofDetectorId_v07a::GetRegion
Int_t GetRegion(const Int_t detectorId)
Definition: CbmTofDetectorId_v07a.cxx:84
CbmTofDetectorInfo
Definition: CbmTofDetectorId.h:20
CbmTofDetectorId_v07a
Definition: CbmTofDetectorId_v07a.h:33
CbmTofDetectorId_v07a::modulemask
Int_t modulemask
Definition: CbmTofDetectorId_v07a.h:87
CbmTofDetectorId_v07a::GetCell
Int_t GetCell(const Int_t detectorId)
Definition: CbmTofDetectorId_v07a.cxx:78
CbmTofDetectorId_v07a::GetDetectorInfo
CbmTofDetectorInfo GetDetectorInfo(const Int_t detectorId)
Definition: CbmTofDetectorId_v07a.cxx:36
CbmTofDetectorId_v07a::GetGap
Int_t GetGap(const Int_t detectorId)
Definition: CbmTofDetectorId_v07a.cxx:72
CbmTofDetectorId
Definition: CbmTofDetectorId.h:66
CbmTofDetectorId_v07a::GetSMType
Int_t GetSMType(const Int_t detectorId)
Definition: CbmTofDetectorId_v07a.cxx:54
CbmTofDetectorId_v07a::array_length
static const Int_t array_length
Definition: CbmTofDetectorId_v07a.h:82
CbmTofDetectorId_v07a::bitarray
static const Int_t bitarray[]
Definition: CbmTofDetectorId_v07a.h:84
CbmTofDetectorId_v07a::SetDetectorInfo
Int_t SetDetectorInfo(const CbmTofDetectorInfo detectorInfo)
Definition: CbmTofDetectorId_v07a.cxx:94