|
BmnRoot
|
#include <CbmStsDetectorId.h>
Public Member Functions | |
| CbmStsDetectorId () | |
| virtual | ~CbmStsDetectorId () |
| Int_t | DetectorId (Int_t station, Int_t sector, Int_t side, Int_t channel) const |
| Int_t | SystemId (Int_t detectorId) const |
| Int_t | StationNr (Int_t detectorId) const |
| Int_t | SectorNr (Int_t detectorId) const |
| Int_t | Side (Int_t detectorId) const |
| Int_t | ChannelNr (Int_t detectorId) const |
| CbmStsDetectorId () | |
| virtual | ~CbmStsDetectorId () |
| Int_t | DetectorId (Int_t station, Int_t sector, Int_t side, Int_t channel) const |
| Int_t | SystemId (Int_t detectorId) const |
| Int_t | StationNr (Int_t detectorId) const |
| Int_t | SectorNr (Int_t detectorId) const |
| Int_t | Side (Int_t detectorId) const |
| Int_t | ChannelNr (Int_t detectorId) const |
Static Public Attributes | |
| static const Int_t | fgkStatBits = 4 |
| static const Int_t | fgkSectBits = 8 |
| static const Int_t | fgkSideBits = 1 |
| static const Int_t | fgkChanBits = 12 |
CbmStsDetectorId.h
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 |
Constructor (empty)
Definition at line 31 of file CbmStsDetectorId.h.
|
inlinevirtual |
Destructor (empty)
Definition at line 35 of file CbmStsDetectorId.h.
|
inline |
Constructor (empty)
Definition at line 31 of file CbmStsDetectorId.h.
|
inlinevirtual |
Destructor (empty)
Definition at line 35 of file CbmStsDetectorId.h.
|
inline |
Get channel number from detectorId
Definition at line 79 of file CbmStsDetectorId.h.
Referenced by CbmStsDigi::GetChannelNr(), and CbmStsDigiLight::GetChannelNr().
|
inline |
Get channel number from detectorId
Definition at line 79 of file CbmStsDetectorId.h.
|
inline |
Create unique detector ID
| 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 44 of file CbmStsDetectorId.h.
References kGEM.
|
inline |
Create unique detector ID
| 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 44 of file CbmStsDetectorId.h.
References kGEM.
|
inline |
Get sector number from detectorId
Definition at line 67 of file CbmStsDetectorId.h.
Referenced by CbmStsDigi::GetSectorNr(), and CbmStsDigiLight::GetSectorNr().
|
inline |
Get sector number from detectorId
Definition at line 67 of file CbmStsDetectorId.h.
|
inline |
Get side from detectorId
Definition at line 73 of file CbmStsDetectorId.h.
Referenced by CbmStsDigi::GetSide(), and CbmStsDigiLight::GetSide().
|
inline |
Get side from detectorId
Definition at line 73 of file CbmStsDetectorId.h.
|
inline |
Get station number from detectorId
Definition at line 61 of file CbmStsDetectorId.h.
Referenced by CbmStsDigi::GetStationNr(), and CbmStsDigiLight::GetStationNr().
|
inline |
Get station number from detectorId
Definition at line 61 of file CbmStsDetectorId.h.
|
inline |
Get system identifier from detectorId
Definition at line 55 of file CbmStsDetectorId.h.
|
inline |
Get system identifier from detectorId
Definition at line 55 of file CbmStsDetectorId.h.
|
static |
Definition at line 88 of file CbmStsDetectorId.h.
|
static |
Definition at line 86 of file CbmStsDetectorId.h.
|
static |
Definition at line 87 of file CbmStsDetectorId.h.
|
static |
Number of bits for address fields (static)
Definition at line 85 of file CbmStsDetectorId.h.