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
{
14
std::cout
<<
"MuonSubDetector::MuonSubDetector does not recognize "
;
15
std::cout
<< name <<std::endl;
16
detector
=
nodef
;
17
}
18
}
19
20
bool
MuonSubDetector::isBarrel
(){
21
return
(
detector
==
barrel
);
22
}
23
24
bool
MuonSubDetector::isEndcap
(){
25
return
(
detector
==
endcap
);
26
}
27
28
bool
MuonSubDetector::isRpc
(){
29
return
(
detector
==
rpc
);
30
}
31
32
std::string
MuonSubDetector::name
(){
33
return
detectorName
;
34
}
35
36
std::string
MuonSubDetector::suIdName
(){
37
if
(
detector
==
barrel
) {
38
return
"MuonHitsBarrel"
;
39
}
else
if
(
detector
==
endcap
) {
40
return
"MuonHitsEndcap"
;
41
}
else
if
(
detector
==
rpc
) {
42
return
"MuonHitsRPC"
;
43
}
else
{
44
return
""
;
45
}
46
}
MuonSubDetector::detector
subDetector detector
Definition:
MuonSubDetector.h:40
MuonSubDetector::isRpc
bool isRpc()
Definition:
MuonSubDetector.cc:28
MuonSubDetector::name
std::string name()
Definition:
MuonSubDetector.cc:32
MuonSubDetector::barrel
Definition:
MuonSubDetector.h:39
AlCaRecoCosmics_cfg.name
tuple name
Definition:
AlCaRecoCosmics_cfg.py:24
MuonSubDetector::suIdName
std::string suIdName()
Definition:
MuonSubDetector.cc:36
MuonSubDetector::MuonSubDetector
MuonSubDetector(std::string name)
Definition:
MuonSubDetector.cc:5
MuonSubDetector::detectorName
std::string detectorName
Definition:
MuonSubDetector.h:41
MuonSubDetector::endcap
Definition:
MuonSubDetector.h:39
MuonSubDetector::isBarrel
bool isBarrel()
Definition:
MuonSubDetector.cc:20
gather_cfg.cout
tuple cout
Definition:
gather_cfg.py:41
MuonSubDetector::isEndcap
bool isEndcap()
Definition:
MuonSubDetector.cc:24
MuonSubDetector.h
MuonSubDetector::nodef
Definition:
MuonSubDetector.h:39
MuonSubDetector::rpc
Definition:
MuonSubDetector.h:39
Generated for CMSSW Reference Manual by
1.8.5