CbmRoot
|
#include <CbmTofDetectorId_v21a.h>
Public Member Functions | |
CbmTofDetectorId_v21a () | |
~CbmTofDetectorId_v21a () | |
CbmTofDetectorInfo | GetDetectorInfo (const int32_t detectorId) |
int32_t | GetSystemId (int32_t detectorId) |
int32_t | GetSMType (const int32_t detectorId) |
int32_t | GetModuleType (const int32_t detectorId) |
int32_t | GetCounterType (const int32_t detectorId) |
int32_t | GetSModule (const int32_t detectorId) |
int32_t | GetModuleId (const int32_t detectorId) |
int32_t | GetCounter (const int32_t detectorId) |
int32_t | GetGap (const int32_t detectorId) |
int32_t | GetSide (const int32_t detectorId) |
int32_t | GetCell (const int32_t detectorId) |
int32_t | GetStrip (const int32_t detectorId) |
int32_t | GetRegion (const int32_t detectorId) |
int32_t | GetCellId (const int32_t detectorId) |
int32_t | SetDetectorInfo (const CbmTofDetectorInfo detectorInfo) |
Private Attributes | |
int32_t | result_array [array_length] |
int32_t | maskarray [array_length] |
int32_t | modulemask |
Static Private Attributes | |
static const int32_t | array_length = 7 |
static const int32_t | shiftarray [] = {0, 4, 11, 15, 21, 22, 28} |
static const int32_t | bitarray [] = {4, 7, 4, 6, 1, 6, 4} |
CbmTofDetectorId.h Defines unique detector identifier for all TOF modules. This class is the implementation for tof geometry version v21a nh, 28.07.2021 add counter type nh, 11.03.2014 PAL, 23.09.2015: make the class common to both v14 and v15 geometries Field 4 used as Side index (or fake Gap index in digitizer) Naming as in TDR: SM -> Module, Module -> Counter, Cell -> Strip All classes which uses this scheme should have a data member of this class
Definition at line 41 of file CbmTofDetectorId_v21a.h.
CbmTofDetectorId_v21a::CbmTofDetectorId_v21a | ( | ) |
Constructor
Definition at line 22 of file CbmTofDetectorId_v21a.cxx.
References array_length, bitarray, maskarray, modulemask, and shiftarray.
|
inline |
Destructor
Definition at line 48 of file CbmTofDetectorId_v21a.h.
|
virtual |
Get cell number from detector ID
Implements CbmTofDetectorId.
Definition at line 86 of file CbmTofDetectorId_v21a.cxx.
References maskarray, and shiftarray.
Referenced by GetStrip().
|
virtual |
Get full cell number from detector ID. This is masking the the gap number if this is set.
Implements CbmTofDetectorId.
Definition at line 97 of file CbmTofDetectorId_v21a.cxx.
References modulemask.
|
virtual |
Get counter ID from detector ID
Implements CbmTofDetectorId.
Definition at line 71 of file CbmTofDetectorId_v21a.cxx.
References maskarray, and shiftarray.
int32_t CbmTofDetectorId_v21a::GetCounterType | ( | const int32_t | detectorId | ) |
Definition at line 56 of file CbmTofDetectorId_v21a.cxx.
References maskarray, and shiftarray.
|
virtual |
Get complete system info from detector ID This will return a pointer to an integer array of length array_length
Implements CbmTofDetectorId.
Definition at line 37 of file CbmTofDetectorId_v21a.cxx.
References array_length, maskarray, result_array, and shiftarray.
|
virtual |
Get sector number from detector ID
Implements CbmTofDetectorId.
Definition at line 82 of file CbmTofDetectorId_v21a.cxx.
References GetSide().
int32_t CbmTofDetectorId_v21a::GetModuleId | ( | const int32_t | detectorId | ) |
Definition at line 67 of file CbmTofDetectorId_v21a.cxx.
References GetSModule().
int32_t CbmTofDetectorId_v21a::GetModuleType | ( | const int32_t | detectorId | ) |
Definition at line 55 of file CbmTofDetectorId_v21a.cxx.
References GetSMType().
|
virtual |
Get region number from detector ID
Implements CbmTofDetectorId.
Definition at line 95 of file CbmTofDetectorId_v21a.cxx.
int32_t CbmTofDetectorId_v21a::GetSide | ( | const int32_t | detectorId | ) |
Get sector number from detector ID
Definition at line 78 of file CbmTofDetectorId_v21a.cxx.
References maskarray, and shiftarray.
Referenced by GetGap().
|
virtual |
Get Module ID from detector ID
Implements CbmTofDetectorId.
Definition at line 63 of file CbmTofDetectorId_v21a.cxx.
References maskarray, and shiftarray.
Referenced by GetModuleId().
|
virtual |
Get Module Type from detector ID
Implements CbmTofDetectorId.
Definition at line 51 of file CbmTofDetectorId_v21a.cxx.
References maskarray, and shiftarray.
Referenced by GetModuleType().
int32_t CbmTofDetectorId_v21a::GetStrip | ( | const int32_t | detectorId | ) |
Get Strip ID from detector ID
Definition at line 91 of file CbmTofDetectorId_v21a.cxx.
References GetCell().
|
virtual |
Get the global sytem ID
Implements CbmTofDetectorId.
Definition at line 47 of file CbmTofDetectorId_v21a.cxx.
References maskarray.
|
virtual |
Calculate the unique detector ID This will return a pointer to an integer array of length array_length
Implements CbmTofDetectorId.
Definition at line 101 of file CbmTofDetectorId_v21a.cxx.
References CbmTofDetectorInfo::fCell, CbmTofDetectorInfo::fCounter, CbmTofDetectorInfo::fCounterType, CbmTofDetectorInfo::fDetectorSystem, CbmTofDetectorInfo::fGap, CbmTofDetectorInfo::fSModule, and CbmTofDetectorInfo::fSMtype.
|
staticprivate |
Definition at line 98 of file CbmTofDetectorId_v21a.h.
Referenced by CbmTofDetectorId_v21a(), and GetDetectorInfo().
|
staticprivate |
Definition at line 19 of file CbmTofDetectorId_v21a.h.
Referenced by CbmTofDetectorId_v21a().
|
private |
Definition at line 102 of file CbmTofDetectorId_v21a.h.
Referenced by CbmTofDetectorId_v21a(), GetCell(), GetCounter(), GetCounterType(), GetDetectorInfo(), GetSide(), GetSModule(), GetSMType(), and GetSystemId().
|
private |
Definition at line 103 of file CbmTofDetectorId_v21a.h.
Referenced by CbmTofDetectorId_v21a(), and GetCellId().
|
private |
Definition at line 101 of file CbmTofDetectorId_v21a.h.
Referenced by GetDetectorInfo().
|
staticprivate |
Definition at line 18 of file CbmTofDetectorId_v21a.h.
Referenced by CbmTofDetectorId_v21a(), GetCell(), GetCounter(), GetCounterType(), GetDetectorInfo(), GetSide(), GetSModule(), and GetSMType().