Geometry
MuonNumbering
src
MuonSubDetector.cc
Go to the documentation of this file.
1
#include "
Geometry/MuonNumbering/interface/MuonSubDetector.h
"
2
#include "
FWCore/MessageLogger/interface/MessageLogger.h
"
3
4
MuonSubDetector::MuonSubDetector
(
const
std::string
&
name
) :
detectorName
(
name
) {
5
if
(
name
==
"MuonDTHits"
) {
6
detector
=
barrel
;
7
}
else
if
(
name
==
"MuonCSCHits"
) {
8
detector
=
endcap
;
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
31
std::string
MuonSubDetector::name
() {
return
detectorName
; }
32
33
std::string
MuonSubDetector::suIdName
() {
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
Generated for CMSSW Reference Manual by
1.8.16