Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
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
{
16
std::cout
<<
"MuonSubDetector::MuonSubDetector does not recognize "
;
17
std::cout
<< name <<std::endl;
18
detector
=
nodef
;
19
}
20
}
21
22
bool
MuonSubDetector::isBarrel
(){
23
return
(
detector
==
barrel
);
24
}
25
26
bool
MuonSubDetector::isEndcap
(){
27
return
(
detector
==
endcap
);
28
}
29
30
bool
MuonSubDetector::isRpc
(){
31
return
(
detector
==
rpc
);
32
}
33
34
bool
MuonSubDetector::isGem
(){
35
return
(
detector
==
gem
);
36
}
37
38
std::string
MuonSubDetector::name
(){
39
return
detectorName
;
40
}
41
42
std::string
MuonSubDetector::suIdName
(){
43
if
(
detector
==
barrel
) {
44
return
"MuonHitsBarrel"
;
45
}
else
if
(
detector
==
endcap
) {
46
return
"MuonHitsEndcap"
;
47
}
else
if
(
detector
==
rpc
) {
48
return
"MuonHitsRPC"
;
49
}
else
if
(
detector
==
gem
) {
50
return
"MuonHitsGEM"
;
51
}
else
{
52
return
""
;
53
}
54
}
MuonSubDetector::detector
subDetector detector
Definition:
MuonSubDetector.h:39
MuonSubDetector::isRpc
bool isRpc()
Definition:
MuonSubDetector.cc:30
MuonSubDetector::name
std::string name()
Definition:
MuonSubDetector.cc:38
MuonSubDetector::barrel
Definition:
MuonSubDetector.h:38
mergeVDriftHistosByStation.name
string name
Definition:
mergeVDriftHistosByStation.py:77
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
MuonSubDetector::isGem
bool isGem()
Definition:
MuonSubDetector.cc:34
MuonSubDetector::gem
Definition:
MuonSubDetector.h:38
MuonSubDetector::suIdName
std::string suIdName()
Definition:
MuonSubDetector.cc:42
MuonSubDetector::MuonSubDetector
MuonSubDetector(std::string name)
Definition:
MuonSubDetector.cc:5
MuonSubDetector::detectorName
std::string detectorName
Definition:
MuonSubDetector.h:40
MuonSubDetector::endcap
Definition:
MuonSubDetector.h:38
MuonSubDetector::isBarrel
bool isBarrel()
Definition:
MuonSubDetector.cc:22
gather_cfg.cout
tuple cout
Definition:
gather_cfg.py:121
MuonSubDetector::isEndcap
bool isEndcap()
Definition:
MuonSubDetector.cc:26
MuonSubDetector.h
MuonSubDetector::nodef
Definition:
MuonSubDetector.h:38
MuonSubDetector::rpc
Definition:
MuonSubDetector.h:38
Generated for CMSSW Reference Manual by
1.8.5