CMS 3D CMS Logo

MuonSubDetector.cc
Go to the documentation of this file.
3 
5  if (name == "MuonDTHits") {
7  } else if (name == "MuonCSCHits") {
9  } else if (name == "MuonRPCHits") {
10  detector = rpc;
11  } else if (name == "MuonGEMHits") {
12  detector = gem;
13  } else if (name == "MuonME0Hits") {
14  detector = me0;
15  } else {
16  edm::LogWarning("MuonGeom") << "MuonSubDetector::MuonSubDetector does not recognize " << name;
17  detector = nodef;
18  }
19 }
20 
21 bool MuonSubDetector::isBarrel() { return (detector == barrel); }
22 
23 bool MuonSubDetector::isEndcap() { return (detector == endcap); }
24 
25 bool MuonSubDetector::isRPC() { return (detector == rpc); }
26 
27 bool MuonSubDetector::isGEM() { return (detector == gem); }
28 
29 bool MuonSubDetector::isME0() { return (detector == me0); }
30 
32 
34  if (detector == barrel) {
35  return "MuonHitsBarrel";
36  } else if (detector == endcap) {
37  return "MuonHitsEndcap";
38  } else if (detector == rpc) {
39  return "MuonHitsRPC";
40  } else if (detector == gem) {
41  return "MuonHitsGEM";
42  } else if (detector == me0) {
43  return "MuonHitsME0";
44  } else {
45  return "";
46  }
47 }
MuonSubDetector::me0
Definition: MuonSubDetector.h:38
MessageLogger.h
MuonSubDetector::endcap
Definition: MuonSubDetector.h:38
MuonSubDetector::name
std::string name()
Definition: MuonSubDetector.cc:31
edm::LogWarning
Log< level::Warning, false > LogWarning
Definition: MessageLogger.h:122
MuonSubDetector.h
MuonSubDetector::suIdName
std::string suIdName()
Definition: MuonSubDetector.cc:33
MuonSubDetector::isBarrel
bool isBarrel()
Definition: MuonSubDetector.cc:21
MuonSubDetector::detectorName
std::string detectorName
Definition: MuonSubDetector.h:40
MuonSubDetector::gem
Definition: MuonSubDetector.h:38
hgcalTopologyTester_cfi.detectorName
detectorName
Definition: hgcalTopologyTester_cfi.py:6
MuonSubDetector::isME0
bool isME0()
Definition: MuonSubDetector.cc:29
MuonSubDetector::isEndcap
bool isEndcap()
Definition: MuonSubDetector.cc:23
MuonSubDetector::isRPC
bool isRPC()
Definition: MuonSubDetector.cc:25
MuonSubDetector::barrel
Definition: MuonSubDetector.h:38
MuonSubDetector::nodef
Definition: MuonSubDetector.h:38
gem
Definition: AMC13Event.h:6
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
MuonSubDetector::isGEM
bool isGEM()
Definition: MuonSubDetector.cc:27
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
MuonSubDetector::detector
subDetector detector
Definition: MuonSubDetector.h:39
MuonSubDetector::rpc
Definition: MuonSubDetector.h:38
MuonSubDetector::MuonSubDetector
MuonSubDetector(const std::string &name)
Definition: MuonSubDetector.cc:4