Main Page
Namespaces
Classes
Package Documentation
src
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
5
MuonSubDetector::MuonSubDetector
(
const
std::string
&
name
)
6
:
detectorName
(name) {
7
if
(name==
"MuonDTHits"
) {
8
detector
=
barrel
;
9
}
else
if
(name==
"MuonCSCHits"
) {
10
detector
=
endcap
;
11
}
else
if
(name==
"MuonRPCHits"
) {
12
detector
=
rpc
;
13
}
else
if
(name==
"MuonGEMHits"
) {
14
detector
=
gem
;
15
}
else
if
(name==
"MuonME0Hits"
) {
16
detector
=
me0
;
17
}
else
{
18
edm::LogWarning
(
"Geometry"
)
19
<<
"MuonSubDetector::MuonSubDetector does not recognize "
<<
name
;
20
detector
=
nodef
;
21
}
22
}
23
24
bool
MuonSubDetector::isBarrel
(){
25
return
(
detector
==
barrel
);
26
}
27
28
bool
MuonSubDetector::isEndcap
(){
29
return
(
detector
==
endcap
);
30
}
31
32
bool
MuonSubDetector::isRPC
(){
33
return
(
detector
==
rpc
);
34
}
35
36
bool
MuonSubDetector::isGEM
(){
37
return
(
detector
==
gem
);
38
}
39
40
bool
MuonSubDetector::isME0
(){
41
return
(
detector
==
me0
);
42
}
43
44
std::string
MuonSubDetector::name
(){
45
return
detectorName
;
46
}
47
48
std::string
MuonSubDetector::suIdName
(){
49
if
(
detector
==
barrel
) {
50
return
"MuonHitsBarrel"
;
51
}
else
if
(
detector
==
endcap
) {
52
return
"MuonHitsEndcap"
;
53
}
else
if
(
detector
==
rpc
) {
54
return
"MuonHitsRPC"
;
55
}
else
if
(
detector
==
gem
) {
56
return
"MuonHitsGEM"
;
57
}
else
if
(
detector
==
me0
) {
58
return
"MuonHitsME0"
;
59
}
else
{
60
return
""
;
61
}
62
}
MessageLogger.h
MuonSubDetector::detector
subDetector detector
Definition:
MuonSubDetector.h:40
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
edm::LogWarning
Definition:
MessageLogger.h:141
MuonSubDetector::name
std::string name()
Definition:
MuonSubDetector.cc:44
MuonSubDetector::barrel
Definition:
MuonSubDetector.h:39
gem
Definition:
AMC13Event.h:6
MuonSubDetector::me0
Definition:
MuonSubDetector.h:39
MuonSubDetector::gem
Definition:
MuonSubDetector.h:39
MuonSubDetector::suIdName
std::string suIdName()
Definition:
MuonSubDetector.cc:48
hfnoseDigiStudy_cfi.detectorName
detectorName
Definition:
hfnoseDigiStudy_cfi.py:6
MuonSubDetector::isRPC
bool isRPC()
Definition:
MuonSubDetector.cc:32
MuonSubDetector::detectorName
std::string detectorName
Definition:
MuonSubDetector.h:41
MuonSubDetector::isME0
bool isME0()
Definition:
MuonSubDetector.cc:40
MuonSubDetector::MuonSubDetector
MuonSubDetector(const std::string &name)
Definition:
MuonSubDetector.cc:5
MuonSubDetector::endcap
Definition:
MuonSubDetector.h:39
MuonSubDetector::isBarrel
bool isBarrel()
Definition:
MuonSubDetector.cc:24
MuonSubDetector::isGEM
bool isGEM()
Definition:
MuonSubDetector.cc:36
dataset.name
name
Definition:
dataset.py:45
MuonSubDetector::isEndcap
bool isEndcap()
Definition:
MuonSubDetector.cc:28
MuonSubDetector.h
MuonSubDetector::nodef
Definition:
MuonSubDetector.h:39
MuonSubDetector::rpc
Definition:
MuonSubDetector.h:39
Generated for CMSSW Reference Manual by
1.8.11