Main Page
Namespaces
Classes
Package Documentation
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/MuonDDDConstants.h
"
10
11
MuonSimHitNumberingScheme::MuonSimHitNumberingScheme
(
MuonSubDetector
*
d
,
const
DDCompactView
& cpv) :
12
MuonSimHitNumberingScheme
(d,
MuonDDDConstants
(cpv)){ }
13
14
MuonSimHitNumberingScheme::MuonSimHitNumberingScheme
(
MuonSubDetector
*
d
,
const
MuonDDDConstants
& muonConstants) {
15
theDetector
=
d
;
16
if
(
theDetector
->
isBarrel
()) {
17
theNumbering
=
new
DTNumberingScheme
(muonConstants);
18
}
else
if
(
theDetector
->
isEndcap
()) {
19
theNumbering
=
new
CSCNumberingScheme
(muonConstants);
20
}
else
if
(
theDetector
->
isRPC
()) {
21
theNumbering
=
new
RPCNumberingScheme
(muonConstants);
22
}
else
if
(
theDetector
->
isGEM
()) {
23
theNumbering
=
new
GEMNumberingScheme
(muonConstants);
24
}
else
if
(
theDetector
->
isME0
()) {
25
theNumbering
=
new
ME0NumberingScheme
(muonConstants);
26
}
27
}
28
29
30
MuonSimHitNumberingScheme::~MuonSimHitNumberingScheme
() {
31
delete
theNumbering
;
32
}
33
34
int
MuonSimHitNumberingScheme::baseNumberToUnitNumber
(
const
MuonBaseNumber
&
num
) {
35
if
(
theNumbering
) {
36
return
theNumbering
->
baseNumberToUnitNumber
(num);
37
}
else
{
38
return
0;
39
}
40
}
41
GEMNumberingScheme
Definition:
GEMNumberingScheme.h:10
pileupDistInMC.num
num
Definition:
pileupDistInMC.py:66
MuonSimHitNumberingScheme
Definition:
MuonSimHitNumberingScheme.h:20
MuonSimHitNumberingScheme::theDetector
MuonSubDetector * theDetector
Definition:
MuonSimHitNumberingScheme.h:32
MuonBaseNumber
Definition:
MuonBaseNumber.h:21
DDCompactView
Compact representation of the geometrical detector hierarchy.
Definition:
DDCompactView.h:80
DTNumberingScheme
Definition:
DTNumberingScheme.h:20
MuonDDDConstants
Definition:
MuonDDDConstants.h:21
MuonSimHitNumberingScheme.h
RPCNumberingScheme
Definition:
RPCNumberingScheme.h:19
GEMNumberingScheme.h
MuonDDDConstants.h
MuonSubDetector::isRPC
bool isRPC()
Definition:
MuonSubDetector.cc:32
MuonSimHitNumberingScheme::~MuonSimHitNumberingScheme
~MuonSimHitNumberingScheme() override
Definition:
MuonSimHitNumberingScheme.cc:30
RPCNumberingScheme.h
ME0NumberingScheme.h
MuonSubDetector::isME0
bool isME0()
Definition:
MuonSubDetector.cc:40
edmIntegrityCheck.d
d
Definition:
edmIntegrityCheck.py:66
MuonNumberingScheme::baseNumberToUnitNumber
virtual int baseNumberToUnitNumber(const MuonBaseNumber &)
Definition:
MuonNumberingScheme.cc:4
DTNumberingScheme.h
MuonBaseNumber.h
CSCNumberingScheme
Definition:
CSCNumberingScheme.h:19
MuonSubDetector
Definition:
MuonSubDetector.h:19
CSCNumberingScheme.h
MuonSimHitNumberingScheme::theNumbering
MuonNumberingScheme * theNumbering
Definition:
MuonSimHitNumberingScheme.h:33
MuonSubDetector::isBarrel
bool isBarrel()
Definition:
MuonSubDetector.cc:24
MuonSubDetector::isGEM
bool isGEM()
Definition:
MuonSubDetector.cc:36
MuonSimHitNumberingScheme::MuonSimHitNumberingScheme
MuonSimHitNumberingScheme(MuonSubDetector *, const DDCompactView &cpv)
Definition:
MuonSimHitNumberingScheme.cc:11
MuonSubDetector::isEndcap
bool isEndcap()
Definition:
MuonSubDetector.cc:28
MuonSimHitNumberingScheme::baseNumberToUnitNumber
int baseNumberToUnitNumber(const MuonBaseNumber &) override
Definition:
MuonSimHitNumberingScheme.cc:34
MuonSubDetector.h
ME0NumberingScheme
Definition:
ME0NumberingScheme.h:10
Generated for CMSSW Reference Manual by
1.8.11