CbmRoot
|
#include <CbmTofDetectorId_v14a.h>
Public Member Functions | |
CbmTofDetectorId_v14a () | |
~CbmTofDetectorId_v14a () | |
CbmTofDetectorInfo | GetDetectorInfo (const Int_t detectorId) |
Int_t | GetSystemId (Int_t detectorId) |
Int_t | GetSMType (const Int_t detectorId) |
Int_t | GetModuleType (const Int_t detectorId) |
Int_t | GetSModule (const Int_t detectorId) |
Int_t | GetModuleId (const Int_t detectorId) |
Int_t | GetCounter (const Int_t detectorId) |
Int_t | GetGap (const Int_t detectorId) |
Int_t | GetSide (const Int_t detectorId) |
Int_t | GetCell (const Int_t detectorId) |
Int_t | GetStrip (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 = 6 |
static const Int_t | shiftarray [] = {0, 4, 12, 16, 23, 24} |
static const Int_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 36 of file CbmTofDetectorId_v14a.h.
CbmTofDetectorId_v14a::CbmTofDetectorId_v14a | ( | ) |
Constructor
Definition at line 13 of file CbmTofDetectorId_v14a.cxx.
References array_length, bitarray, i, maskarray, modulemask, and shiftarray.
|
inline |
Destructor
Definition at line 43 of file CbmTofDetectorId_v14a.h.
|
virtual |
Get cell number from detector ID
Implements CbmTofDetectorId.
Definition at line 78 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 92 of file CbmTofDetectorId_v14a.cxx.
References modulemask.
|
virtual |
Get counter ID from detector ID
Implements CbmTofDetectorId.
Definition at line 63 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 26 of file CbmTofDetectorId_v14a.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_v14a.cxx.
References GetSide().
Int_t CbmTofDetectorId_v14a::GetModuleId | ( | const Int_t | detectorId | ) |
Definition at line 57 of file CbmTofDetectorId_v14a.cxx.
References GetSModule().
Int_t CbmTofDetectorId_v14a::GetModuleType | ( | const Int_t | detectorId | ) |
Definition at line 48 of file CbmTofDetectorId_v14a.cxx.
References GetSMType().
|
virtual |
Get region number from detector ID
Implements CbmTofDetectorId.
Definition at line 88 of file CbmTofDetectorId_v14a.cxx.
Int_t CbmTofDetectorId_v14a::GetSide | ( | const Int_t | detectorId | ) |
Get sector number from detector ID
Definition at line 69 of file CbmTofDetectorId_v14a.cxx.
References maskarray, and shiftarray.
Referenced by GetGap().
|
virtual |
Get Module ID from detector ID
Implements CbmTofDetectorId.
Definition at line 54 of file CbmTofDetectorId_v14a.cxx.
References maskarray, and shiftarray.
Referenced by GetModuleId().
|
virtual |
Get Module Type from detector ID
Implements CbmTofDetectorId.
Definition at line 45 of file CbmTofDetectorId_v14a.cxx.
References maskarray, and shiftarray.
Referenced by GetModuleType().
Int_t CbmTofDetectorId_v14a::GetStrip | ( | const Int_t | detectorId | ) |
Get Strip ID from detector ID
Definition at line 82 of file CbmTofDetectorId_v14a.cxx.
References GetCell().
|
virtual |
Get the global sytem ID
Implements CbmTofDetectorId.
Definition at line 39 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 98 of file CbmTofDetectorId_v14a.cxx.
References CbmTofDetectorInfo::fCell, CbmTofDetectorInfo::fCounter, CbmTofDetectorInfo::fDetectorSystem, CbmTofDetectorInfo::fGap, CbmTofDetectorInfo::fSModule, CbmTofDetectorInfo::fSMtype, maskarray, and shiftarray.
|
staticprivate |
Definition at line 92 of file CbmTofDetectorId_v14a.h.
Referenced by CbmTofDetectorId_v14a(), and GetDetectorInfo().
|
staticprivate |
Definition at line 94 of file CbmTofDetectorId_v14a.h.
Referenced by CbmTofDetectorId_v14a().
|
private |
Definition at line 96 of file CbmTofDetectorId_v14a.h.
Referenced by CbmTofDetectorId_v14a(), GetCell(), GetCounter(), GetDetectorInfo(), GetSide(), GetSModule(), GetSMType(), GetSystemId(), and SetDetectorInfo().
|
private |
Definition at line 97 of file CbmTofDetectorId_v14a.h.
Referenced by CbmTofDetectorId_v14a(), and GetCellId().
|
private |
Definition at line 95 of file CbmTofDetectorId_v14a.h.
Referenced by GetDetectorInfo().
|
staticprivate |
Definition at line 93 of file CbmTofDetectorId_v14a.h.
Referenced by CbmTofDetectorId_v14a(), GetCell(), GetCounter(), GetDetectorInfo(), GetSide(), GetSModule(), GetSMType(), and SetDetectorInfo().