Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
Geometry
MuonNumbering
src
MuonSubDetector.cc
Go to the documentation of this file.
1
#include "
Geometry/MuonNumbering/interface/MuonSubDetector.h
"
2
#include <iostream>
3
4
5
MuonSubDetector::MuonSubDetector
(
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
std::cout
<<
"MuonSubDetector::MuonSubDetector does not recognize "
;
19
std::cout
<< name <<std::endl;
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
}
MuonSubDetector::detector
subDetector detector
Definition:
MuonSubDetector.h:40
MuonSubDetector::name
std::string name()
Definition:
MuonSubDetector.cc:44
MuonSubDetector::barrel
Definition:
MuonSubDetector.h:39
mergeVDriftHistosByStation.name
string name
Definition:
mergeVDriftHistosByStation.py:77
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
MuonSubDetector::me0
Definition:
MuonSubDetector.h:39
MuonSubDetector::gem
Definition:
MuonSubDetector.h:39
MuonSubDetector::suIdName
std::string suIdName()
Definition:
MuonSubDetector.cc:48
MuonSubDetector::isRPC
bool isRPC()
Definition:
MuonSubDetector.cc:32
MuonSubDetector::MuonSubDetector
MuonSubDetector(std::string name)
Definition:
MuonSubDetector.cc:5
MuonSubDetector::detectorName
std::string detectorName
Definition:
MuonSubDetector.h:41
MuonSubDetector::isME0
bool isME0()
Definition:
MuonSubDetector.cc:40
MuonSubDetector::endcap
Definition:
MuonSubDetector.h:39
MuonSubDetector::isBarrel
bool isBarrel()
Definition:
MuonSubDetector.cc:24
gather_cfg.cout
tuple cout
Definition:
gather_cfg.py:121
MuonSubDetector::isGEM
bool isGEM()
Definition:
MuonSubDetector.cc:36
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.5