ATLAS Offline Software
MuonStationIndexHelpers.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 
7 namespace Muon {
8 
9  std::vector<MuonStationIndex::TechnologyIndex> MuonStationIndexHelpers::technologiesInStation(MuonStationIndex::StIndex stIndex) {
10  static const std::vector<MuonStationIndex::TechnologyIndex> mmm_empty = {};
11  static const std::vector<MuonStationIndex::TechnologyIndex> mmm_barrelInner = {MuonStationIndex::MDT};
12  static const std::vector<MuonStationIndex::TechnologyIndex> mmm_barrelMiddleOuter = {MuonStationIndex::MDT, MuonStationIndex::RPC};
13  static const std::vector<MuonStationIndex::TechnologyIndex> mmm_barrelExtended = {MuonStationIndex::MDT};
14  static const std::vector<MuonStationIndex::TechnologyIndex> mmm_endcapInner = {
16  static const std::vector<MuonStationIndex::TechnologyIndex> mmm_endcapMiddle = {MuonStationIndex::MDT, MuonStationIndex::TGC};
17  static const std::vector<MuonStationIndex::TechnologyIndex> mmm_endcapOuterExtended = {MuonStationIndex::MDT};
18  static const std::vector<std::vector<MuonStationIndex::TechnologyIndex> > mmm_all_technologies = {
19  mmm_barrelInner, mmm_barrelMiddleOuter, mmm_barrelMiddleOuter, mmm_barrelExtended,
20  mmm_endcapInner, mmm_endcapMiddle, mmm_endcapOuterExtended, mmm_endcapOuterExtended};
21 
22  if (stIndex == MuonStationIndex::StUnknown || stIndex >= MuonStationIndex::StIndexMax) return mmm_empty;
23  return mmm_all_technologies[stIndex];
24  }
25 
26  bool MuonStationIndexHelpers::isSmall(int sector) { return sector % 2 == 0; }
27 
28 } // namespace Muon
Muon::MuonStationIndex::StUnknown
@ StUnknown
Definition: MuonStationIndex.h:24
Muon
This class provides conversion from CSC RDO data to CSC Digits.
Definition: TrackSystemController.h:49
Muon::MuonStationIndex::MM
@ MM
Definition: MuonStationIndex.h:56
Muon::MuonStationIndex::STGC
@ STGC
Definition: MuonStationIndex.h:56
Muon::MuonStationIndexHelpers::technologiesInStation
static std::vector< MuonStationIndex::TechnologyIndex > technologiesInStation(MuonStationIndex::StIndex stIndex)
get techonolgies in
Definition: MuonStationIndexHelpers.cxx:9
Muon::MuonStationIndex::CSCI
@ CSCI
Definition: MuonStationIndex.h:56
MuonStationIndexHelpers.h
Muon::MuonStationIndex::StIndexMax
@ StIndexMax
Definition: MuonStationIndex.h:27
Muon::MuonStationIndex::MDT
@ MDT
Definition: MuonStationIndex.h:56
Muon::MuonStationIndex::TGC
@ TGC
Definition: MuonStationIndex.h:56
Muon::MuonStationIndex::RPC
@ RPC
Definition: MuonStationIndex.h:56
Muon::MuonStationIndexHelpers::isSmall
static bool isSmall(int sector)
returns whether a sector is small
Definition: MuonStationIndexHelpers.cxx:26
Muon::MuonStationIndex::StIndex
StIndex
enum to classify the different station layers in the muon spectrometer
Definition: MuonStationIndex.h:23