ATLAS Offline Software
Loading...
Searching...
No Matches
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

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

Enumerations

enum class  Muon::MuonStationIndex::ChIndex : int8_t {
  Muon::MuonStationIndex::ChUnknown = -1 , Muon::MuonStationIndex::BIS , Muon::MuonStationIndex::BIL , Muon::MuonStationIndex::BMS ,
  Muon::MuonStationIndex::BML , Muon::MuonStationIndex::BOS , Muon::MuonStationIndex::BOL , Muon::MuonStationIndex::BEE ,
  Muon::MuonStationIndex::EIS , Muon::MuonStationIndex::EIL , Muon::MuonStationIndex::EMS , Muon::MuonStationIndex::EML ,
  Muon::MuonStationIndex::EOS , Muon::MuonStationIndex::EOL , Muon::MuonStationIndex::EES , Muon::MuonStationIndex::EEL ,
  Muon::MuonStationIndex::CSS , Muon::MuonStationIndex::CSL , Muon::MuonStationIndex::ChIndexMax
}
 enum to classify the different chamber layers in the muon spectrometer More...
enum class  Muon::MuonStationIndex::StIndex : int8_t {
  Muon::MuonStationIndex::StUnknown = -1 , Muon::MuonStationIndex::BI , Muon::MuonStationIndex::BM , Muon::MuonStationIndex::BO ,
  Muon::MuonStationIndex::BE , Muon::MuonStationIndex::EI , Muon::MuonStationIndex::EM , Muon::MuonStationIndex::EO ,
  Muon::MuonStationIndex::EE , Muon::MuonStationIndex::StIndexMax
}
 enum to classify the different station layers in the muon spectrometer More...
enum class  Muon::MuonStationIndex::PhiIndex : int8_t {
  Muon::MuonStationIndex::PhiUnknown = -1 , Muon::MuonStationIndex::BI1 , Muon::MuonStationIndex::BI2 , Muon::MuonStationIndex::BM1 ,
  Muon::MuonStationIndex::BM2 , Muon::MuonStationIndex::BO1 , Muon::MuonStationIndex::BO2 , Muon::MuonStationIndex::T1 ,
  Muon::MuonStationIndex::T2 , Muon::MuonStationIndex::T3 , Muon::MuonStationIndex::T4 , Muon::MuonStationIndex::CSC ,
  Muon::MuonStationIndex::STGC1 , Muon::MuonStationIndex::STGC2 , Muon::MuonStationIndex::PhiIndexMax
}
 enum to classify the different phi layers in the muon spectrometer More...
enum class  Muon::MuonStationIndex::LayerIndex : int8_t {
  Muon::MuonStationIndex::LayerUnknown = -1 , Muon::MuonStationIndex::Inner , Muon::MuonStationIndex::Middle , Muon::MuonStationIndex::Outer ,
  Muon::MuonStationIndex::Extended , Muon::MuonStationIndex::BarrelExtended , Muon::MuonStationIndex::LayerIndexMax
}
 enum to classify the different layers in the muon spectrometer More...
enum class  Muon::MuonStationIndex::DetectorRegionIndex : int8_t {
  Muon::MuonStationIndex::DetectorRegionUnknown = -1 , Muon::MuonStationIndex::EndcapA , Muon::MuonStationIndex::Barrel , Muon::MuonStationIndex::EndcapC ,
  Muon::MuonStationIndex::DetectorRegionIndexMax
}
 enum to classify the different layers in the muon spectrometer More...
enum class  Muon::MuonStationIndex::TechnologyIndex : int8_t {
  Muon::MuonStationIndex::TechnologyUnknown = -1 , Muon::MuonStationIndex::MDT , Muon::MuonStationIndex::CSC , Muon::MuonStationIndex::RPC ,
  Muon::MuonStationIndex::TGC , Muon::MuonStationIndex::STGC , Muon::MuonStationIndex::MM , Muon::MuonStationIndex::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
LayerIndex Muon::MuonStationIndex::toLayerIndex (ChIndex index)
 convert ChIndex into LayerIndex
LayerIndex Muon::MuonStationIndex::toLayerIndex (StIndex index)
 convert StIndex into LayerIndex
StIndex Muon::MuonStationIndex::toStationIndex (DetectorRegionIndex region, LayerIndex layer)
 convert DetectorRegionIndex + LayerIndex into StIndex
ChIndex Muon::MuonStationIndex::toChamberIndex (DetectorRegionIndex region, LayerIndex layer, bool isSmall)
 convert DetectorRegionIndex + LayerIndex + isSmall into ChIndex
bool Muon::MuonStationIndex::isBarrel (const ChIndex index)
 Returns true if the chamber index points to a barrel chamber.
bool Muon::MuonStationIndex::isBarrel (const StIndex index)
 Returns true if the station index points to a barrel chamber.
bool Muon::MuonStationIndex::isSmall (const ChIndex index)
 Returns true if the chamber index is in a small sector.
ChIndex Muon::MuonStationIndex::toChamberIndex (StIndex stIndex, bool isSmall)
 convert StIndex + isSmall into ChIndex
const std::string & Muon::MuonStationIndex::phiName (PhiIndex index)
 convert PhiIndex into a string
const std::string & Muon::MuonStationIndex::stName (StIndex index)
 convert StIndex into a string
const std::string & Muon::MuonStationIndex::chName (ChIndex index)
 convert ChIndex into a string
const std::string & Muon::MuonStationIndex::regionName (DetectorRegionIndex index)
 convert DetectorRegionIndex into a string
const std::string & Muon::MuonStationIndex::layerName (LayerIndex index)
 convert LayerIndex into a string
const std::string & Muon::MuonStationIndex::technologyName (TechnologyIndex index)
 convert LayerIndex into a string
unsigned int Muon::MuonStationIndex::sectorLayerHash (DetectorRegionIndex detectorRegionIndex, LayerIndex layerIndex)
 create a hash out of region and layer
constexpr unsigned int Muon::MuonStationIndex::sectorLayerHashMax ()
 maximum create a hash out of region and layer
std::pair< DetectorRegionIndex, LayerIndexMuon::MuonStationIndex::decomposeSectorLayerHash (unsigned int hash)
 decompose the hash into Region and Layer
constexpr unsigned Muon::MuonStationIndex::numberOfSectors ()
 return total number of sectors
ChIndex Muon::MuonStationIndex::chIndex (const std::string &index)
 convert ChIndex name string to enum