ATLAS Offline Software
MuonEnumDefs.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef MUONHISTUTILS_MUONENUMDEFS_H
6 #define MUONHISTUTILS_MUONENUMDEFS_H
7 
8 #include "xAODMuon/Muon.h"
9 
10 namespace Muon {
11  namespace EnumDefs {
12 
14  static inline const char* toString(Muon::EnumDefs::DetRegion reg) {
15  switch (reg) {
16  case Muon::EnumDefs::GLOBAL: return "Global";
17  case Muon::EnumDefs::BA: return "BA";
18  case Muon::EnumDefs::BC: return "BC";
19  case Muon::EnumDefs::EA: return "EA";
20  case Muon::EnumDefs::EC: return "EC";
21  default: return "UnknownDetRegion";
22  }
23  }
24 
25  static inline unsigned int nMuonTypes( ) {return 5;}
26  static inline const char* toString(xAOD::Muon::MuonType type) {
27  switch (type) {
28  case xAOD::Muon::Combined: return "Combined";
29  case xAOD::Muon::MuonStandAlone: return "StandAlone";
30  case xAOD::Muon::SegmentTagged: return "SegmentTagged";
31  case xAOD::Muon::CaloTagged: return "CaloTagged";
32  case xAOD::Muon::SiliconAssociatedForwardMuon: return "SiForward";
33  default: return "UnknownType";
34  }
35  }
36 
37  static inline unsigned int nMuonAuthors( ) {return xAOD::Muon::NumberOfMuonAuthors;}
38  static inline const char* toString(xAOD::Muon::Author author) {
39  switch (author) {
40  case xAOD::Muon::unknown: return "unknown";
41  case xAOD::Muon::MuidCo: return "MuidCo";
42  case xAOD::Muon::STACO: return "STACO";
43  case xAOD::Muon::MuTag: return "MuTag";
44  case xAOD::Muon::MuTagIMO: return "MuTagIMO";
45  case xAOD::Muon::MuidSA: return "MuidSA";
46  case xAOD::Muon::MuGirl: return "MuGirl";
47  case xAOD::Muon::MuGirlLowBeta: return "MuGirlLowBeta";
48  case xAOD::Muon::CaloTag: return "CaloTag";
49  case xAOD::Muon::CaloLikelihood: return "CaloLikelihood";
50  case xAOD::Muon::ExtrapolateMuonToIP: return "ExtrMuonToIP";
51  case xAOD::Muon::CaloScore: return "CaloScore";
52  case xAOD::Muon::Commissioning: return "Comissioning chain";
53  default: return "UnknownAuthor";
54  }
55  }
56 
57  static inline unsigned int nMuonQualities() {return 4;}
58  static inline const char* toString(xAOD::Muon::Quality quality) {
59  switch (quality) {
60  case xAOD::Muon::Tight: return "Tight";
61  case xAOD::Muon::Medium: return "Medium";
62  case xAOD::Muon::Loose: return "Loose";
63  case xAOD::Muon::VeryLoose: return "VeryLoose";
64  default: return "UnknownQuality";
65  }
66  }
67 
68  }//namespace HistParamDefs
69 }//namespace Muon
70 
71 #endif
LikeEnum::Loose
@ Loose
Definition: LikelihoodEnums.h:12
xAOD::MuGirl
@ MuGirl
MuGirl.
Definition: TrackingPrimitives.h:141
LikeEnum::VeryLoose
@ VeryLoose
Definition: LikelihoodEnums.h:11
xAOD::MuTag
@ MuTag
Tracks produced by MuTag.
Definition: TrackingPrimitives.h:103
Muon.h
xAOD::MuGirlLowBeta
@ MuGirlLowBeta
MuGirlLowBeta.
Definition: TrackingPrimitives.h:145
Muon
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.
Definition: TrackSystemController.h:45
MuonParameters::CaloTag
@ CaloTag
Definition: MuonParamDefs.h:64
MuonParameters::MuTagIMO
@ MuTagIMO
Definition: MuonParamDefs.h:66
Muon::EnumDefs::EA
@ EA
Definition: MuonEnumDefs.h:13
Amg::toString
std::string toString(const Translation3D &translation, int precision=4)
GeoPrimitvesToStringConverter.
Definition: GeoPrimitivesToStringConverter.h:40
Muon::EnumDefs::EC
@ EC
Definition: MuonEnumDefs.h:13
MuonParameters::NumberOfMuonAuthors
@ NumberOfMuonAuthors
Definition: MuonParamDefs.h:69
Trk::Combined
@ Combined
Definition: TrackSummaryTool.h:32
LikeEnum::Tight
@ Tight
Definition: LikelihoodEnums.h:15
Muon::nsw::unknown
@ unknown
Definition: NSWTriggerElink.h:36
Muon::EnumDefs::BA
@ BA
Definition: MuonEnumDefs.h:13
MuonParameters::ExtrapolateMuonToIP
@ ExtrapolateMuonToIP
Definition: MuonParamDefs.h:68
MuonParameters::MuidSA
@ MuidSA
Definition: MuonParamDefs.h:59
Muon::EnumDefs::BC
@ BC
Definition: MuonEnumDefs.h:13
MuonParameters::MuidCo
@ MuidCo
Definition: MuonParamDefs.h:60
Muon::EnumDefs::GLOBAL
@ GLOBAL
Definition: MuonEnumDefs.h:13
LikeEnum::Medium
@ Medium
Definition: LikelihoodEnums.h:14
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
CaloCondBlobAlgs_fillNoiseFromASCII.author
string author
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:26
Muon::EnumDefs::DetRegion
DetRegion
Definition: MuonEnumDefs.h:13
xAOD::STACO
@ STACO
Tracks produced by STACO.
Definition: TrackingPrimitives.h:99
MuonParameters::CaloLikelihood
@ CaloLikelihood
Definition: MuonParamDefs.h:65
ParticleJetParams::Author
Author
Definition: ParticleJetParamDefs.h:33
Muon::EnumDefs::nDetRegions
@ nDetRegions
Definition: MuonEnumDefs.h:13