 |
ATLAS Offline Software
|
Go to the documentation of this file.
9 namespace MuonStationIndex{
12 if(
index ==
"BIL" ) {
14 }
else if(
index ==
"BMS" ) {
16 }
else if(
index ==
"BIS" ) {
18 }
else if(
index ==
"BML" ) {
20 }
else if(
index ==
"BOS" ) {
22 }
else if(
index ==
"BOL" ) {
24 }
else if(
index ==
"BEE" ) {
26 }
else if(
index ==
"EIS" ) {
28 }
else if(
index ==
"EIL" ) {
30 }
else if(
index ==
"EMS" ) {
32 }
else if(
index ==
"EML" ) {
34 }
else if(
index ==
"EOS" ) {
36 }
else if(
index ==
"EOL" ) {
38 }
else if(
index ==
"EES" ) {
40 }
else if(
index ==
"EEL" ) {
42 }
else if(
index ==
"CSS" ) {
44 }
else if(
index ==
"CSL" ) {
51 static constexpr std::array<StIndex, nMax> regionLayerToStationIndex {
65 static constexpr std::array<ChIndex, nMax> regionLayerToChamberIndexSmall {
73 static constexpr std::array<ChIndex, nMax> regionLayerToChamberIndexLarge {
89 "BI1",
"BI2",
"BM1",
"BM2",
"BO1",
"BO2",
"T1",
"T2",
"T3",
"T4",
"CSC",
"STGC1",
94 static const std::string
dummy{
"PhiUnknown"};
98 static const std::string
dummy{
"PhiOutOfRange"};
106 "BI",
"BM",
"BO",
"BE",
"EI",
"EM",
"EO",
"EE"};
109 static const std::string
dummy{
"StUnknown"};
113 static const std::string
dummy{
"StIndexMax"};
121 "BIS",
"BIL",
"BMS",
"BML",
"BOS",
"BOL",
"BEE",
122 "EIS",
"EIL",
"EMS",
"EML",
"EOS",
"EOL",
"EES",
127 static const std::string
dummy{
"ChUnknown"};
131 static const std::string
dummy{
"ChOutOfRange"};
140 "EndcapA",
"Barrel",
"EndcapC"};
143 static const std::string
dummy(
"DetectorRegionUnknown" );
147 static const std::string
dummy(
"DetectorRegionIndexMax" );
150 return detectorRegionIndexNames[
toInt(
index) ];
155 "Inner",
"Middle",
"Outer",
"Extended",
"BarrelExtended"};
158 static const std::string
dummy{
"LayerUnknown"};
162 static const std::string
dummy{
"LayerOutOfRange"};
171 static const std::array<std::string,
toInt(TechIdx::TechnologyIndexMax)> technologyIndexNames {
172 "MDT",
"CSC",
"RPC",
"TGC",
"STGC",
"MM"};
174 if(
index == TechIdx::TechnologyUnknown ) {
175 static const std::string
dummy{
"TechnologyUnknown"};
178 if(
index >= TechIdx::TechnologyIndexMax ) {
179 static const std::string
dummy{
"TechnologyIndexMax"};
LayerIndex
enum to classify the different layers in the muon spectrometer
ChIndex toChamberIndex(DetectorRegionIndex region, LayerIndex layer, bool isSmall)
convert DetectorRegionIndex + LayerIndex + isSmall into ChIndex
constexpr unsigned int sectorLayerHashMax()
maximum create a hash out of region and layer
unsigned int sectorLayerHash(DetectorRegionIndex detectorRegionIndex, LayerIndex layerIndex)
create a hash out of region and layer
const std::string & stName(StIndex index)
convert StIndex into a string
TechnologyIndex
enum to classify the different layers in the muon spectrometer
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.
StIndex toStationIndex(ChIndex index)
convert ChIndex into StIndex
ChIndex chIndex(const std::string &index)
convert ChIndex name string to enum
const std::string & chName(ChIndex index)
convert ChIndex into a string
const std::string & technologyName(TechnologyIndex index)
convert LayerIndex into a string
StIndex
enum to classify the different station layers in the muon spectrometer
const std::string & layerName(LayerIndex index)
convert LayerIndex into a string
PhiIndex
enum to classify the different phi layers in the muon spectrometer
const std::string & regionName(DetectorRegionIndex index)
convert DetectorRegionIndex into a string
DetectorRegionIndex
enum to classify the different layers in the muon spectrometer
ChIndex
enum to classify the different chamber layers in the muon spectrometer
const std::string & phiName(PhiIndex index)
convert PhiIndex into a string
bool isSmall(const ChIndex index)
Returns true if the chamber index is in a small sector.
constexpr int toInt(const EnumType enumVal)