CbmRoot
|
#include <CbmTofDetectorId_v07a.h>
Public Member Functions | |
CbmTofDetectorId_v07a () | |
~CbmTofDetectorId_v07a () | |
CbmTofDetectorInfo | GetDetectorInfo (const Int_t detectorId) |
Int_t | GetSystemId (Int_t detectorId) |
Int_t | GetSMType (const Int_t detectorId) |
Int_t | GetSModule (const Int_t detectorId) |
Int_t | GetCounter (const Int_t detectorId) |
Int_t | GetGap (const Int_t detectorId) |
Int_t | GetCell (const Int_t detectorId) |
Int_t | GetRegion (const Int_t detectorId) |
Int_t | GetCellId (const Int_t detectorId) |
Int_t | SetDetectorInfo (const CbmTofDetectorInfo detectorInfo) |
Private Attributes | |
Int_t | result_array [array_length] |
Int_t | maskarray [array_length] |
Int_t | modulemask |
Static Private Attributes | |
static const Int_t | array_length = 5 |
static const Int_t | shiftarray [] = {0, 5, 9, 19, 23} |
static const Int_t | bitarray [] = {5, 4, 10, 4, 9} |
CbmTofDetectorId.h Defines unique detector identifier for all TOF modules. This class is the implementation for tof geometry version v07a and v12a All classes which uses this scheme should have a data member of this class
Definition at line 33 of file CbmTofDetectorId_v07a.h.
CbmTofDetectorId_v07a::CbmTofDetectorId_v07a | ( | ) |
Constructor
Current definition: 10987654321098765432109876543210 System ID (kTOF=6) on bits 0-4 00000000000000000000000000011111 31 Super Module type on bits 5-8 00000000000000000000000111100000 <<5 15 Module NR on bits 9-18 00000000000001111111111000000000 <<9 1023 Gap NR on bits 19-22 00000000011110000000000000000000 <<19 15 Cell NR on bits 23-32 11111111100000000000000000000000 <<23 511
Definition at line 23 of file CbmTofDetectorId_v07a.cxx.
References array_length, bitarray, i, maskarray, modulemask, and shiftarray.
|
inline |
Destructor
Definition at line 40 of file CbmTofDetectorId_v07a.h.
|
virtual |
Get cell number from detector ID
Implements CbmTofDetectorId.
Definition at line 78 of file CbmTofDetectorId_v07a.cxx.
References maskarray, and shiftarray.
|
virtual |
Get cell number from detector ID. This is masking the the gap number if this is set.
Implements CbmTofDetectorId.
Definition at line 88 of file CbmTofDetectorId_v07a.cxx.
References modulemask.
|
virtual |
Get counter number from detector ID
Implements CbmTofDetectorId.
Definition at line 66 of file CbmTofDetectorId_v07a.cxx.
|
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 36 of file CbmTofDetectorId_v07a.cxx.
References array_length, i, maskarray, result_array, and shiftarray.
|
virtual |
Get sector number from detector ID
Implements CbmTofDetectorId.
Definition at line 72 of file CbmTofDetectorId_v07a.cxx.
References maskarray, and shiftarray.
|
virtual |
Get region number from detector ID
Implements CbmTofDetectorId.
Definition at line 84 of file CbmTofDetectorId_v07a.cxx.
|
virtual |
Get smodule number from detector ID
Implements CbmTofDetectorId.
Definition at line 60 of file CbmTofDetectorId_v07a.cxx.
References maskarray, and shiftarray.
|
virtual |
Get SMType number from detector ID
Implements CbmTofDetectorId.
Definition at line 54 of file CbmTofDetectorId_v07a.cxx.
References maskarray, and shiftarray.
|
virtual |
Get the global sytem ID
Implements CbmTofDetectorId.
Definition at line 48 of file CbmTofDetectorId_v07a.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 94 of file CbmTofDetectorId_v07a.cxx.
References CbmTofDetectorInfo::fCell, CbmTofDetectorInfo::fCounter, CbmTofDetectorInfo::fDetectorSystem, CbmTofDetectorInfo::fGap, CbmTofDetectorInfo::fSModule, CbmTofDetectorInfo::fSMtype, and shiftarray.
|
staticprivate |
Definition at line 82 of file CbmTofDetectorId_v07a.h.
Referenced by CbmTofDetectorId_v07a(), and GetDetectorInfo().
|
staticprivate |
Definition at line 84 of file CbmTofDetectorId_v07a.h.
Referenced by CbmTofDetectorId_v07a().
|
private |
Definition at line 86 of file CbmTofDetectorId_v07a.h.
Referenced by CbmTofDetectorId_v07a(), GetCell(), GetDetectorInfo(), GetGap(), GetSModule(), GetSMType(), and GetSystemId().
|
private |
Definition at line 87 of file CbmTofDetectorId_v07a.h.
Referenced by CbmTofDetectorId_v07a(), and GetCellId().
|
private |
Definition at line 85 of file CbmTofDetectorId_v07a.h.
Referenced by GetDetectorInfo().
|
staticprivate |
Definition at line 83 of file CbmTofDetectorId_v07a.h.
Referenced by CbmTofDetectorId_v07a(), GetCell(), GetDetectorInfo(), GetGap(), GetSModule(), GetSMType(), and SetDetectorInfo().