|
ATLAS Offline Software
|
Go to the documentation of this file.
10 static constexpr
int N_CHAMBER_INDEX = 18;
11 static constexpr
int N_STATION_INDEX = 9;
12 static constexpr
int N_REGIONLAYER_INDEX = 15;
16 return static_cast<ChIndex>( 2*stIndex + !isSmall );
44 static constexpr std::array<MuonStationIndex::StIndex, N_CHAMBER_INDEX> chamberToStationIndex {
52 return chamberToStationIndex[
index ];
57 static constexpr std::array<MuonStationIndex::LayerIndex, N_CHAMBER_INDEX> chamberToLayerIndex {
68 return chamberToLayerIndex[
index ];
73 static constexpr std::array<MuonStationIndex::LayerIndex, N_STATION_INDEX> stationToLayerIndex {
80 return stationToLayerIndex[
index ];
86 static constexpr std::array<MuonStationIndex::StIndex, N_REGIONLAYER_INDEX> regionLayerToStationIndex {
100 static constexpr std::array<MuonStationIndex::ChIndex, N_REGIONLAYER_INDEX> regionLayerToChamberIndexSmall {
108 static constexpr std::array<MuonStationIndex::ChIndex, N_REGIONLAYER_INDEX> regionLayerToChamberIndexLarge {
125 static const std::array<std::string, 14> phiIndexNames = {
126 "BI1",
"BI2",
"BM1",
"BM2",
"BO1",
"BO2",
"T1",
"T2",
"T3",
"T4",
"CSC",
"STGC1",
127 "STGC2",
"PhiIndexMax"
131 static const std::string
dummy(
"PhiUnknown" );
135 static const std::string
dummy(
"PhiOutOfRange" );
138 return phiIndexNames[
index ];
142 static const std::array<std::string, N_STATION_INDEX> stationIndexNames {
143 "BI",
"BM",
"BO",
"BE",
"EI",
"EM",
"EO",
"EE",
"StIndexMax"
147 static const std::string
dummy(
"StUnknown" );
151 static const std::string
dummy(
"StOutOfRange" );
154 return stationIndexNames[
index ];
158 static const std::array<std::string, N_CHAMBER_INDEX> chamberIndexNames {
159 "BIS",
"BIL",
"BMS",
"BML",
"BOS",
"BOL",
"BEE",
160 "EIS",
"EIL",
"EMS",
"EML",
"EOS",
"EOL",
"EES",
161 "EEL",
"CSS",
"CSL",
"ChIndexMax"
165 static const std::string
dummy(
"ChUnknown" );
169 static const std::string
dummy(
"ChOutOfRange" );
172 return chamberIndexNames[
index ];
177 static const std::array<std::string, 4> detectorRegionIndexNames {
178 "EndcapA",
"Barrel",
"EndcapC",
"DetectorRegionIndexMax"
182 static const std::string
dummy(
"DetectorRegionUnknown" );
186 static const std::string
dummy(
"DetectorRegionOutOfRange" );
189 return detectorRegionIndexNames[
index ];
193 static const std::array<std::string, 6> layerIndexNames {
194 "Inner",
"Middle",
"Outer",
"Extended",
"BarrelExtended",
"LayerIndexMax"
198 static const std::string
dummy(
"LayerUnknown" );
202 static const std::string
dummy (
"LayerOutOfRange" );
205 return layerIndexNames[
index ];
210 static const std::array<std::string, 7> technologyIndexNames {
211 "MDT",
"CSC",
"RPC",
"TGC",
"STGC",
"MM",
"TechnologyIndexMax"
215 static const std::string
dummy(
"TechnologyUnknown" );
219 static const std::string
dummy(
"TechnologyOutOfRange" );
222 return technologyIndexNames[
index ];
static const std::string & chName(ChIndex index)
convert ChIndex into a string
static ChIndex toChamberIndex(DetectorRegionIndex region, LayerIndex layer, bool isSmall)
convert DetectorRegionIndex + LayerIndex + isSmall into ChIndex
static StIndex toStationIndex(ChIndex index)
convert ChIndex into StIndex
static ChIndex chIndex(const std::string &index)
convert ChIndex name string to enum
static unsigned int sectorLayerHashMax()
maximum create a hash out of region and layer
LayerIndex
enum to classify the different layers in the muon spectrometer
static unsigned int sectorLayerHash(DetectorRegionIndex detectorRegionIndex, LayerIndex layerIndex)
create a hash out of region and layer
This class provides conversion from CSC RDO data to CSC Digits.
PhiIndex
enum to classify the different phi layers in the muon spectrometer
static std::pair< DetectorRegionIndex, LayerIndex > decomposeSectorLayerHash(unsigned int hash)
decompose the hash into Region and Layer
static const std::string & regionName(DetectorRegionIndex index)
convert DetectorRegionIndex into a string
static const std::string & phiName(PhiIndex index)
convert PhiIndex into a string
static const std::string & layerName(LayerIndex index)
convert LayerIndex into a string
static LayerIndex toLayerIndex(ChIndex index)
convert ChIndex into LayerIndex
DetectorRegionIndex
enum to classify the different layers in the muon spectrometer
ChIndex
enum to classify the different chamber layers in the muon spectrometer
static const std::string & stName(StIndex index)
convert StIndex into a string
StIndex
enum to classify the different station layers in the muon spectrometer
TechnologyIndex
enum to classify the different layers in the muon spectrometer
static const std::string & technologyName(TechnologyIndex index)
convert LayerIndex into a string