|
BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
|
CbmStsDetectorId.h. More...
#include <CbmStsDetectorId.h>
Public Member Functions | |
| CbmStsDetectorId () | |
| Constructor (empty). | |
| virtual | ~CbmStsDetectorId () |
| Destructor (empty). | |
| Int_t | DetectorId (Int_t station, Int_t sector, Int_t side, Int_t channel) const |
| Create unique detector ID. | |
| Int_t | SystemId (Int_t detectorId) const |
| Get system identifier from detectorId. | |
| Int_t | StationNr (Int_t detectorId) const |
| Get station number from detectorId. | |
| Int_t | SectorNr (Int_t detectorId) const |
| Get sector number from detectorId. | |
| Int_t | Side (Int_t detectorId) const |
| Get side from detectorId. | |
| Int_t | ChannelNr (Int_t detectorId) const |
| Get channel number from detectorId. | |
| CbmStsDetectorId () | |
| Constructor (empty). | |
| virtual | ~CbmStsDetectorId () |
| Destructor (empty). | |
| Int_t | DetectorId (Int_t station, Int_t sector, Int_t side, Int_t channel) const |
| Create unique detector ID. | |
| Int_t | SystemId (Int_t detectorId) const |
| Get system identifier from detectorId. | |
| Int_t | StationNr (Int_t detectorId) const |
| Get station number from detectorId. | |
| Int_t | SectorNr (Int_t detectorId) const |
| Get sector number from detectorId. | |
| Int_t | Side (Int_t detectorId) const |
| Get side from detectorId. | |
| Int_t | ChannelNr (Int_t detectorId) const |
| Get channel number from detectorId. | |
Static Public Attributes | |
| static const Int_t | fgkStatBits = 4 |
| Number of bits for address fields (static). | |
| static const Int_t | fgkSectBits = 8 |
| static const Int_t | fgkSideBits = 1 |
| static const Int_t | fgkChanBits = 12 |
Static Private Attributes | |
| static const Int_t | fgkStatShift = 4 |
| Bit shift for address fields (static). | |
| static const Int_t | fgkSectShift = CbmStsDetectorId::fgkStatShift + CbmStsDetectorId::fgkStatBits |
| static const Int_t | fgkSideShift = CbmStsDetectorId::fgkSectShift + CbmStsDetectorId::fgkSectBits |
| static const Int_t | fgkChanShift = CbmStsDetectorId::fgkSideShift + CbmStsDetectorId::fgkSideBits |
| static const Int_t | fgkStatMask = (1 << CbmStsDetectorId::fgkStatBits) - 1 |
| Bit mask for address fields (static). | |
| static const Int_t | fgkSectMask = (1 << CbmStsDetectorId::fgkSectBits) - 1 |
| static const Int_t | fgkSideMask = (1 << CbmStsDetectorId::fgkSideBits) - 1 |
| static const Int_t | fgkChanMask = (1 << CbmStsDetectorId::fgkChanBits) - 1 |
Prescription for encoding / decoding the detector ID (integer) from / to station nr., sector nr., side and channel nr.
Ranges:
The value 0 is reserved to denote the next higher hierarchy level, i.e. station 3, sector 0 denotes the entire station 3, not a specific sector.
All data classes using this functionality have to inherit from this class.
Definition at line 27 of file CbmStsDetectorId.h.
|
inline |
Definition at line 31 of file CbmStsDetectorId.h.
Referenced by CbmStsDigi::CbmStsDigi(), CbmStsDigi::CbmStsDigi(), CbmStsDigiLight::CbmStsDigiLight(), and CbmStsDigiLight::CbmStsDigiLight().
|
inlinevirtual |
Definition at line 34 of file CbmStsDetectorId.h.
|
inline |
Definition at line 31 of file CbmStsDetectorId.h.
|
inlinevirtual |
Definition at line 34 of file CbmStsDetectorId.h.
Definition at line 64 of file CbmStsDetectorId.h.
References fgkChanMask, and fgkChanShift.
Referenced by CbmStsDigi::GetChannelNr(), and CbmStsDigiLight::GetChannelNr().
Definition at line 64 of file CbmStsDetectorId.h.
References fgkChanMask, and fgkChanShift.
|
inline |
| station | Station number (0 - 15) |
| sector | Sector number (0 - 255) |
| side | 0 = front side / 1 = back side |
| channel | channel number (0 - 4095) |
Definition at line 42 of file CbmStsDetectorId.h.
References fgkChanMask, fgkChanShift, fgkSectMask, fgkSectShift, fgkSideMask, fgkSideShift, fgkStatMask, fgkStatShift, and kGEM.
|
inline |
| station | Station number (0 - 15) |
| sector | Sector number (0 - 255) |
| side | 0 = front side / 1 = back side |
| channel | channel number (0 - 4095) |
Definition at line 42 of file CbmStsDetectorId.h.
References fgkChanMask, fgkChanShift, fgkSectMask, fgkSectShift, fgkSideMask, fgkSideShift, fgkStatMask, fgkStatShift, and kGEM.
Definition at line 58 of file CbmStsDetectorId.h.
References fgkSectMask, and fgkSectShift.
Referenced by CbmStsDigi::GetSectorNr(), and CbmStsDigiLight::GetSectorNr().
Definition at line 58 of file CbmStsDetectorId.h.
References fgkSectMask, and fgkSectShift.
Definition at line 61 of file CbmStsDetectorId.h.
References fgkSideMask, and fgkSideShift.
Referenced by CbmStsDigi::GetSide(), and CbmStsDigiLight::GetSide().
Definition at line 61 of file CbmStsDetectorId.h.
References fgkSideMask, and fgkSideShift.
Definition at line 55 of file CbmStsDetectorId.h.
References fgkStatMask, and fgkStatShift.
Referenced by CbmStsDigi::GetStationNr(), and CbmStsDigiLight::GetStationNr().
Definition at line 55 of file CbmStsDetectorId.h.
References fgkStatMask, and fgkStatShift.
Definition at line 52 of file CbmStsDetectorId.h.
Definition at line 52 of file CbmStsDetectorId.h.
|
static |
Definition at line 70 of file CbmStsDetectorId.h.
|
staticprivate |
Definition at line 83 of file CbmStsDetectorId.h.
Referenced by ChannelNr(), and DetectorId().
|
staticprivate |
Definition at line 77 of file CbmStsDetectorId.h.
Referenced by ChannelNr(), and DetectorId().
|
static |
Definition at line 68 of file CbmStsDetectorId.h.
|
staticprivate |
Definition at line 81 of file CbmStsDetectorId.h.
Referenced by DetectorId(), and SectorNr().
|
staticprivate |
Definition at line 75 of file CbmStsDetectorId.h.
Referenced by DetectorId(), and SectorNr().
|
static |
Definition at line 69 of file CbmStsDetectorId.h.
|
staticprivate |
Definition at line 82 of file CbmStsDetectorId.h.
Referenced by DetectorId(), and Side().
|
staticprivate |
Definition at line 76 of file CbmStsDetectorId.h.
Referenced by DetectorId(), and Side().
|
static |
Definition at line 67 of file CbmStsDetectorId.h.
|
staticprivate |
Bit mask is calculated from above.
Definition at line 80 of file CbmStsDetectorId.h.
Referenced by DetectorId(), and StationNr().
|
staticprivate |
Bit shift is calculated from above.
Definition at line 74 of file CbmStsDetectorId.h.
Referenced by DetectorId(), and StationNr().