CbmRoot
|
#include <CbmTofDetectorId_v12b.h>
Public Member Functions | |
CbmTofDetectorId_v12b () | |
~CbmTofDetectorId_v12b () | |
CbmTofDetectorInfo | GetDetectorInfo (const int32_t detectorId) |
int32_t | GetSystemId (int32_t detectorId) |
int32_t | GetSMType (const int32_t detectorId) |
int32_t | GetSModule (const int32_t detectorId) |
int32_t | GetCounter (const int32_t detectorId) |
int32_t | GetGap (const int32_t detectorId) |
int32_t | GetCell (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, 5, 9, 17, 20, 24} |
static const int32_t | bitarray [] = {5, 4, 8, 3, 4, 8} |
CbmTofDetectorId.h Defines unique detector identifier for all TOF modules. This class is the implementation for tof geometry version v12b and v12a All classes which uses this scheme should have a data member of this class
Definition at line 38 of file CbmTofDetectorId_v12b.h.
CbmTofDetectorId_v12b::CbmTofDetectorId_v12b | ( | ) |
Constructor
Definition at line 17 of file CbmTofDetectorId_v12b.cxx.
References array_length, bitarray, maskarray, modulemask, and shiftarray.
|
inline |
Destructor
Definition at line 45 of file CbmTofDetectorId_v12b.h.
|
virtual |
Get cell number from detector ID
Implements CbmTofDetectorId.
Definition at line 69 of file CbmTofDetectorId_v12b.cxx.
References maskarray, and shiftarray.
Referenced by CbmTofAddress::ConvertCbmTofDetectorId().
|
virtual |
Get cell number from detector ID. This is masking the the gap number if this is set.
Implements CbmTofDetectorId.
Definition at line 78 of file CbmTofDetectorId_v12b.cxx.
References modulemask.
|
virtual |
Get module number from detector ID
Implements CbmTofDetectorId.
Definition at line 55 of file CbmTofDetectorId_v12b.cxx.
References maskarray, and shiftarray.
Referenced by CbmTofAddress::ConvertCbmTofDetectorId().
|
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_v12b.cxx.
References array_length, maskarray, result_array, and shiftarray.
|
virtual |
Get sector number from detector ID
Implements CbmTofDetectorId.
Definition at line 62 of file CbmTofDetectorId_v12b.cxx.
References maskarray, and shiftarray.
|
virtual |
Get region number from detector ID
Implements CbmTofDetectorId.
Definition at line 76 of file CbmTofDetectorId_v12b.cxx.
|
virtual |
Get smodule number from detector ID
Implements CbmTofDetectorId.
Definition at line 48 of file CbmTofDetectorId_v12b.cxx.
References maskarray, and shiftarray.
Referenced by CbmTofAddress::ConvertCbmTofDetectorId().
|
virtual |
Get SMType number from detector ID
Implements CbmTofDetectorId.
Definition at line 41 of file CbmTofDetectorId_v12b.cxx.
References maskarray, and shiftarray.
Referenced by CbmTofAddress::ConvertCbmTofDetectorId().
|
virtual |
Get the global sytem ID
Implements CbmTofDetectorId.
Definition at line 37 of file CbmTofDetectorId_v12b.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 82 of file CbmTofDetectorId_v12b.cxx.
References CbmTofDetectorInfo::fCell, CbmTofDetectorInfo::fCounter, CbmTofDetectorInfo::fDetectorSystem, CbmTofDetectorInfo::fGap, CbmTofDetectorInfo::fSModule, CbmTofDetectorInfo::fSMtype, and shiftarray.
|
staticprivate |
Definition at line 87 of file CbmTofDetectorId_v12b.h.
Referenced by CbmTofDetectorId_v12b(), and GetDetectorInfo().
|
staticprivate |
Definition at line 14 of file CbmTofDetectorId_v12b.h.
Referenced by CbmTofDetectorId_v12b().
|
private |
Definition at line 91 of file CbmTofDetectorId_v12b.h.
Referenced by CbmTofDetectorId_v12b(), GetCell(), GetCounter(), GetDetectorInfo(), GetGap(), GetSModule(), GetSMType(), and GetSystemId().
|
private |
Definition at line 92 of file CbmTofDetectorId_v12b.h.
Referenced by CbmTofDetectorId_v12b(), and GetCellId().
|
private |
Definition at line 90 of file CbmTofDetectorId_v12b.h.
Referenced by GetDetectorInfo().
|
staticprivate |
Definition at line 13 of file CbmTofDetectorId_v12b.h.
Referenced by CbmTofDetectorId_v12b(), GetCell(), GetCounter(), GetDetectorInfo(), GetGap(), GetSModule(), GetSMType(), and SetDetectorInfo().