CbmRoot
|
#include <CbmTofDetectorId_v14a.h>
Public Member Functions | |
CbmTofDetectorId_v14a () | |
~CbmTofDetectorId_v14a () | |
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 | 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 = 6 |
static const int32_t | shiftarray [] = {0, 4, 12, 16, 23, 24} |
static const int32_t | bitarray [] = {4, 8, 4, 7, 1, 8} |
CbmTofDetectorId.h Defines unique detector identifier for all TOF modules. This class is the implementation for tof geometry version v14a 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_v14a.h.
CbmTofDetectorId_v14a::CbmTofDetectorId_v14a | ( | ) |
Constructor
Definition at line 17 of file CbmTofDetectorId_v14a.cxx.
References array_length, bitarray, maskarray, modulemask, and shiftarray.
|
inline |
Destructor
Definition at line 48 of file CbmTofDetectorId_v14a.h.
|
virtual |
Get cell number from detector ID
Implements CbmTofDetectorId.
Definition at line 72 of file CbmTofDetectorId_v14a.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 83 of file CbmTofDetectorId_v14a.cxx.
References modulemask.
|
virtual |
Get counter ID from detector ID
Implements CbmTofDetectorId.
Definition at line 57 of file CbmTofDetectorId_v14a.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 27 of file CbmTofDetectorId_v14a.cxx.
References array_length, maskarray, result_array, and shiftarray.
|
virtual |
Get sector number from detector ID
Implements CbmTofDetectorId.
Definition at line 68 of file CbmTofDetectorId_v14a.cxx.
References GetSide().
int32_t CbmTofDetectorId_v14a::GetModuleId | ( | const int32_t | detectorId | ) |
Definition at line 53 of file CbmTofDetectorId_v14a.cxx.
References GetSModule().
int32_t CbmTofDetectorId_v14a::GetModuleType | ( | const int32_t | detectorId | ) |
Definition at line 45 of file CbmTofDetectorId_v14a.cxx.
References GetSMType().
|
virtual |
Get region number from detector ID
Implements CbmTofDetectorId.
Definition at line 81 of file CbmTofDetectorId_v14a.cxx.
int32_t CbmTofDetectorId_v14a::GetSide | ( | const int32_t | detectorId | ) |
Get sector number from detector ID
Definition at line 64 of file CbmTofDetectorId_v14a.cxx.
References maskarray, and shiftarray.
Referenced by GetGap().
|
virtual |
Get Module ID from detector ID
Implements CbmTofDetectorId.
Definition at line 49 of file CbmTofDetectorId_v14a.cxx.
References maskarray, and shiftarray.
Referenced by GetModuleId().
|
virtual |
Get Module Type from detector ID
Implements CbmTofDetectorId.
Definition at line 41 of file CbmTofDetectorId_v14a.cxx.
References maskarray, and shiftarray.
Referenced by GetModuleType().
int32_t CbmTofDetectorId_v14a::GetStrip | ( | const int32_t | detectorId | ) |
Get Strip ID from detector ID
Definition at line 77 of file CbmTofDetectorId_v14a.cxx.
References GetCell().
|
virtual |
Get the global sytem ID
Implements CbmTofDetectorId.
Definition at line 37 of file CbmTofDetectorId_v14a.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 87 of file CbmTofDetectorId_v14a.cxx.
References CbmTofDetectorInfo::fCell, CbmTofDetectorInfo::fCounter, CbmTofDetectorInfo::fDetectorSystem, CbmTofDetectorInfo::fGap, CbmTofDetectorInfo::fSModule, and CbmTofDetectorInfo::fSMtype.
|
staticprivate |
Definition at line 97 of file CbmTofDetectorId_v14a.h.
Referenced by CbmTofDetectorId_v14a(), and GetDetectorInfo().
|
staticprivate |
Definition at line 14 of file CbmTofDetectorId_v14a.h.
Referenced by CbmTofDetectorId_v14a().
|
private |
Definition at line 101 of file CbmTofDetectorId_v14a.h.
Referenced by CbmTofDetectorId_v14a(), GetCell(), GetCounter(), GetDetectorInfo(), GetSide(), GetSModule(), GetSMType(), and GetSystemId().
|
private |
Definition at line 102 of file CbmTofDetectorId_v14a.h.
Referenced by CbmTofDetectorId_v14a(), and GetCellId().
|
private |
Definition at line 100 of file CbmTofDetectorId_v14a.h.
Referenced by GetDetectorInfo().
|
staticprivate |
Definition at line 13 of file CbmTofDetectorId_v14a.h.
Referenced by CbmTofDetectorId_v14a(), GetCell(), GetCounter(), GetDetectorInfo(), GetSide(), GetSModule(), and GetSMType().