Geometry
MuonNumbering
src
MuonSimHitNumberingScheme.cc
Go to the documentation of this file.
1
#include "
Geometry/MuonNumbering/interface/MuonSimHitNumberingScheme.h
"
2
#include "
Geometry/MuonNumbering/interface/DTNumberingScheme.h
"
3
#include "
Geometry/MuonNumbering/interface/CSCNumberingScheme.h
"
4
#include "
Geometry/MuonNumbering/interface/RPCNumberingScheme.h
"
5
#include "
Geometry/MuonNumbering/interface/GEMNumberingScheme.h
"
6
#include "
Geometry/MuonNumbering/interface/ME0NumberingScheme.h
"
7
#include "
Geometry/MuonNumbering/interface/MuonBaseNumber.h
"
8
#include "
Geometry/MuonNumbering/interface/MuonSubDetector.h
"
9
#include "
Geometry/MuonNumbering/interface/MuonGeometryConstants.h
"
10
11
MuonSimHitNumberingScheme::MuonSimHitNumberingScheme
(
MuonSubDetector
*
d
,
const
MuonGeometryConstants
& muonConstants) {
12
theDetector
=
d
;
13
if
(
theDetector
->
isBarrel
()) {
14
theNumbering
=
new
DTNumberingScheme
(muonConstants);
15
}
else
if
(
theDetector
->
isEndcap
()) {
16
theNumbering
=
new
CSCNumberingScheme
(muonConstants);
17
}
else
if
(
theDetector
->
isRPC
()) {
18
theNumbering
=
new
RPCNumberingScheme
(muonConstants);
19
}
else
if
(
theDetector
->
isGEM
()) {
20
theNumbering
=
new
GEMNumberingScheme
(muonConstants);
21
}
else
if
(
theDetector
->
isME0
()) {
22
theNumbering
=
new
ME0NumberingScheme
(muonConstants);
23
}
24
}
25
26
MuonSimHitNumberingScheme::~MuonSimHitNumberingScheme
() {
delete
theNumbering
; }
27
28
int
MuonSimHitNumberingScheme::baseNumberToUnitNumber
(
const
MuonBaseNumber
&
num
)
const
{
29
if
(
theNumbering
) {
30
return
theNumbering
->
baseNumberToUnitNumber
(
num
);
31
}
else
{
32
return
0;
33
}
34
}
MuonGeometryConstants
Definition:
MuonGeometryConstants.h:20
GEMNumberingScheme
Definition:
GEMNumberingScheme.h:9
MuonSubDetector
Definition:
MuonSubDetector.h:19
MuonGeometryConstants.h
RPCNumberingScheme
Definition:
RPCNumberingScheme.h:18
GEMNumberingScheme.h
RPCNumberingScheme.h
MuonSimHitNumberingScheme::theNumbering
MuonNumberingScheme * theNumbering
Definition:
MuonSimHitNumberingScheme.h:28
MuonSimHitNumberingScheme::baseNumberToUnitNumber
int baseNumberToUnitNumber(const MuonBaseNumber &) const override
Definition:
MuonSimHitNumberingScheme.cc:28
MuonSubDetector.h
ME0NumberingScheme.h
MuonSimHitNumberingScheme::MuonSimHitNumberingScheme
MuonSimHitNumberingScheme(MuonSubDetector *, const MuonGeometryConstants &muonConstants)
Definition:
MuonSimHitNumberingScheme.cc:11
MuonSubDetector::isBarrel
bool isBarrel()
Definition:
MuonSubDetector.cc:21
MuonNumberingScheme::baseNumberToUnitNumber
virtual int baseNumberToUnitNumber(const MuonBaseNumber &) const
Definition:
MuonNumberingScheme.cc:4
MuonSubDetector::isME0
bool isME0()
Definition:
MuonSubDetector.cc:29
MuonBaseNumber.h
MuonSimHitNumberingScheme::theDetector
MuonSubDetector * theDetector
Definition:
MuonSimHitNumberingScheme.h:27
MuonSubDetector::isEndcap
bool isEndcap()
Definition:
MuonSubDetector.cc:23
MuonSubDetector::isRPC
bool isRPC()
Definition:
MuonSubDetector.cc:25
MuonSimHitNumberingScheme::~MuonSimHitNumberingScheme
~MuonSimHitNumberingScheme() override
Definition:
MuonSimHitNumberingScheme.cc:26
DTNumberingScheme.h
CSCNumberingScheme.h
EgammaValidation_cff.num
num
Definition:
EgammaValidation_cff.py:33
ME0NumberingScheme
Definition:
ME0NumberingScheme.h:9
MuonBaseNumber
Definition:
MuonBaseNumber.h:21
MuonSubDetector::isGEM
bool isGEM()
Definition:
MuonSubDetector.cc:27
MuonSimHitNumberingScheme.h
CSCNumberingScheme
Definition:
CSCNumberingScheme.h:18
ztail.d
d
Definition:
ztail.py:151
DTNumberingScheme
Definition:
DTNumberingScheme.h:20
Generated for CMSSW Reference Manual by
1.8.16