CMS 3D CMS Logo

MuonHitHelper.h
Go to the documentation of this file.
1 #ifndef Validation_MuonHits_MuonHitHelper_h
2 #define Validation_MuonHits_MuonHitHelper_h
3 
10 
12 public:
14  enum CSCType {
15  CSC_ALL = 0,
27  };
28 
30  enum GEMType { GEM_ALL = 0, GEM_ME11, GEM_ME21 };
31 
33  enum RPCType {
34  RPC_ALL = 0,
65  };
66 
68  enum DTType {
69  DT_ALL = 0,
90  };
91 
93  static bool isDT(unsigned int detId);
94  static bool isGEM(unsigned int detId);
95  static bool isCSC(unsigned int detId);
96  static bool isRPC(unsigned int detId);
97  static bool isME0(unsigned int detId);
98 
99  // return MuonType for a particular DetId
100  static int toGEMType(int st, int ri);
101  static int toRPCType(int re, int st, int ri);
102  static int toDTType(int wh, int st);
103  static int toCSCType(int st, int ri);
104 
105  // get chamber number
106  static int chamber(const DetId& id);
107 };
108 
109 #endif
static int toCSCType(int st, int ri)
static bool isDT(unsigned int detId)
check detid type
Definition: MuonHitHelper.cc:3
CSCType
CSC chamber types, according to CSCDetId::iChamberType()
Definition: MuonHitHelper.h:14
static bool isCSC(unsigned int detId)
RPCType
RPC endcap chamber types.
Definition: MuonHitHelper.h:33
GEMType
GEM chamber types.
Definition: MuonHitHelper.h:30
static bool isME0(unsigned int detId)
static int toGEMType(int st, int ri)
DTType
DT chamber types.
Definition: MuonHitHelper.h:68
static int chamber(const DetId &id)
static bool isRPC(unsigned int detId)
Definition: DetId.h:17
static bool isGEM(unsigned int detId)
Definition: MuonHitHelper.cc:7
static int toRPCType(int re, int st, int ri)
static int toDTType(int wh, int st)