Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Namespaces | Enumerations | Functions
MuonStationIndex.h File Reference
#include <string>
#include <vector>
#include <stdint.h>
#include "MuonStationIndex/MuonStationIndex.icc"
Include dependency graph for MuonStationIndex.h:

Go to the source code of this file.

Namespaces

 Muon
 NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.
 
 Muon::MuonStationIndex
 

Enumerations

enum  Muon::MuonStationIndex::ChIndex : int8_t {
  Muon::MuonStationIndex::ChIndex::ChUnknown = -1, Muon::MuonStationIndex::ChIndex::BIS, Muon::MuonStationIndex::ChIndex::BIL, Muon::MuonStationIndex::ChIndex::BMS,
  Muon::MuonStationIndex::ChIndex::BML, Muon::MuonStationIndex::ChIndex::BOS, Muon::MuonStationIndex::ChIndex::BOL, Muon::MuonStationIndex::ChIndex::BEE,
  Muon::MuonStationIndex::ChIndex::EIS, Muon::MuonStationIndex::ChIndex::EIL, Muon::MuonStationIndex::ChIndex::EMS, Muon::MuonStationIndex::ChIndex::EML,
  Muon::MuonStationIndex::ChIndex::EOS, Muon::MuonStationIndex::ChIndex::EOL, Muon::MuonStationIndex::ChIndex::EES, Muon::MuonStationIndex::ChIndex::EEL,
  Muon::MuonStationIndex::ChIndex::CSS, Muon::MuonStationIndex::ChIndex::CSL, Muon::MuonStationIndex::ChIndex::ChIndexMax
}
 enum to classify the different chamber layers in the muon spectrometer More...
 
enum  Muon::MuonStationIndex::StIndex : int8_t {
  Muon::MuonStationIndex::StIndex::StUnknown = -1, Muon::MuonStationIndex::StIndex::BI, Muon::MuonStationIndex::StIndex::BM, Muon::MuonStationIndex::StIndex::BO,
  Muon::MuonStationIndex::StIndex::BE, Muon::MuonStationIndex::StIndex::EI, Muon::MuonStationIndex::StIndex::EM, Muon::MuonStationIndex::StIndex::EO,
  Muon::MuonStationIndex::StIndex::EE, Muon::MuonStationIndex::StIndex::StIndexMax
}
 enum to classify the different station layers in the muon spectrometer More...
 
enum  Muon::MuonStationIndex::PhiIndex : int8_t {
  Muon::MuonStationIndex::PhiIndex::PhiUnknown = -1, Muon::MuonStationIndex::PhiIndex::BI1, Muon::MuonStationIndex::PhiIndex::BI2, Muon::MuonStationIndex::PhiIndex::BM1,
  Muon::MuonStationIndex::PhiIndex::BM2, Muon::MuonStationIndex::PhiIndex::BO1, Muon::MuonStationIndex::PhiIndex::BO2, Muon::MuonStationIndex::PhiIndex::T1,
  Muon::MuonStationIndex::PhiIndex::T2, Muon::MuonStationIndex::PhiIndex::T3, Muon::MuonStationIndex::PhiIndex::T4, Muon::MuonStationIndex::PhiIndex::CSC,
  Muon::MuonStationIndex::PhiIndex::STGC1, Muon::MuonStationIndex::PhiIndex::STGC2, Muon::MuonStationIndex::PhiIndex::PhiIndexMax
}
 enum to classify the different phi layers in the muon spectrometer More...
 
enum  Muon::MuonStationIndex::LayerIndex : int8_t {
  Muon::MuonStationIndex::LayerIndex::LayerUnknown = -1, Muon::MuonStationIndex::LayerIndex::Inner, Muon::MuonStationIndex::LayerIndex::Middle, Muon::MuonStationIndex::LayerIndex::Outer,
  Muon::MuonStationIndex::LayerIndex::Extended, Muon::MuonStationIndex::LayerIndex::BarrelExtended, Muon::MuonStationIndex::LayerIndex::LayerIndexMax
}
 enum to classify the different layers in the muon spectrometer More...
 
enum  Muon::MuonStationIndex::DetectorRegionIndex : int8_t {
  Muon::MuonStationIndex::DetectorRegionIndex::DetectorRegionUnknown = -1, Muon::MuonStationIndex::DetectorRegionIndex::EndcapA, Muon::MuonStationIndex::DetectorRegionIndex::Barrel, Muon::MuonStationIndex::DetectorRegionIndex::EndcapC,
  Muon::MuonStationIndex::DetectorRegionIndex::DetectorRegionIndexMax
}
 enum to classify the different layers in the muon spectrometer More...
 
enum  Muon::MuonStationIndex::TechnologyIndex : int8_t {
  Muon::MuonStationIndex::TechnologyIndex::TechnologyUnknown = -1, Muon::MuonStationIndex::TechnologyIndex::MDT, Muon::MuonStationIndex::TechnologyIndex::CSC, Muon::MuonStationIndex::TechnologyIndex::RPC,
  Muon::MuonStationIndex::TechnologyIndex::TGC, Muon::MuonStationIndex::TechnologyIndex::STGC, Muon::MuonStationIndex::TechnologyIndex::MM, Muon::MuonStationIndex::TechnologyIndex::TechnologyIndexMax
}
 enum to classify the different layers in the muon spectrometer More...
 

Functions

template<typename EnumType >
constexpr int Muon::MuonStationIndex::toInt (const EnumType enumVal)
 
StIndex Muon::MuonStationIndex::toStationIndex (ChIndex index)
 convert ChIndex into StIndex More...
 
LayerIndex Muon::MuonStationIndex::toLayerIndex (ChIndex index)
 convert ChIndex into LayerIndex More...
 
LayerIndex Muon::MuonStationIndex::toLayerIndex (StIndex index)
 convert StIndex into LayerIndex More...
 
StIndex Muon::MuonStationIndex::toStationIndex (DetectorRegionIndex region, LayerIndex layer)
 convert DetectorRegionIndex + LayerIndex into StIndex More...
 
ChIndex Muon::MuonStationIndex::toChamberIndex (DetectorRegionIndex region, LayerIndex layer, bool isSmall)
 convert DetectorRegionIndex + LayerIndex + isSmall into ChIndex More...
 
bool Muon::MuonStationIndex::isBarrel (const ChIndex index)
 Returns true if the chamber index points to a barrel chamber. More...
 
bool Muon::MuonStationIndex::isSmall (const ChIndex index)
 Returns true if the chamber index is in a small sector. More...
 
ChIndex Muon::MuonStationIndex::toChamberIndex (StIndex stIndex, bool isSmall)
 convert StIndex + isSmall into ChIndex More...
 
const std::string & Muon::MuonStationIndex::phiName (PhiIndex index)
 convert PhiIndex into a string More...
 
const std::string & Muon::MuonStationIndex::stName (StIndex index)
 convert StIndex into a string More...
 
const std::string & Muon::MuonStationIndex::chName (ChIndex index)
 convert ChIndex into a string More...
 
const std::string & Muon::MuonStationIndex::regionName (DetectorRegionIndex index)
 convert DetectorRegionIndex into a string More...
 
const std::string & Muon::MuonStationIndex::layerName (LayerIndex index)
 convert LayerIndex into a string More...
 
const std::string & Muon::MuonStationIndex::technologyName (TechnologyIndex index)
 convert LayerIndex into a string More...
 
unsigned int Muon::MuonStationIndex::sectorLayerHash (DetectorRegionIndex detectorRegionIndex, LayerIndex layerIndex)
 create a hash out of region and layer More...
 
constexpr unsigned int Muon::MuonStationIndex::sectorLayerHashMax ()
 maximum create a hash out of region and layer More...
 
std::pair< DetectorRegionIndex, LayerIndex > Muon::MuonStationIndex::decomposeSectorLayerHash (unsigned int hash)
 decompose the hash into Region and Layer More...
 
constexpr unsigned Muon::MuonStationIndex::numberOfSectors ()
 return total number of sectors More...
 
ChIndex Muon::MuonStationIndex::chIndex (const std::string &index)
 convert ChIndex name string to enum More...