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
//#define LOCAL_DEBUG
12
13
MuonSimHitNumberingScheme::MuonSimHitNumberingScheme
(
MuonSubDetector
*
d
,
const
DDCompactView
& cpv) :
14
MuonSimHitNumberingScheme
(d,
MuonDDDConstants
(cpv)){ }
15
16
MuonSimHitNumberingScheme::MuonSimHitNumberingScheme
(
MuonSubDetector
*
d
,
const
MuonDDDConstants
& muonConstants) {
17
theDetector
=
d
;
18
if
(
theDetector
->
isBarrel
()) {
19
theNumbering
=
new
DTNumberingScheme
(muonConstants);
20
}
else
if
(
theDetector
->
isEndcap
()) {
21
theNumbering
=
new
CSCNumberingScheme
(muonConstants);
22
}
else
if
(
theDetector
->
isRPC
()) {
23
theNumbering
=
new
RPCNumberingScheme
(muonConstants);
24
}
else
if
(
theDetector
->
isGEM
()) {
25
theNumbering
=
new
GEMNumberingScheme
(muonConstants);
26
}
else
if
(
theDetector
->
isME0
()) {
27
theNumbering
=
new
ME0NumberingScheme
(muonConstants);
28
}
29
}
30
31
32
MuonSimHitNumberingScheme::~MuonSimHitNumberingScheme
() {
33
delete
theNumbering
;
34
}
35
36
int
MuonSimHitNumberingScheme::baseNumberToUnitNumber
(
const
MuonBaseNumber
&
num
) {
37
if
(
theNumbering
) {
38
return
theNumbering
->
baseNumberToUnitNumber
(num);
39
}
else
{
40
return
0;
41
}
42
}
43
GEMNumberingScheme
Definition:
GEMNumberingScheme.h:10
pileupDistInMC.num
num
Definition:
pileupDistInMC.py:65
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:83
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:32
RPCNumberingScheme.h
ME0NumberingScheme.h
MuonSubDetector::isME0
bool isME0()
Definition:
MuonSubDetector.cc:40
edmIntegrityCheck.d
d
Definition:
edmIntegrityCheck.py:65
MuonNumberingScheme::baseNumberToUnitNumber
virtual int baseNumberToUnitNumber(const MuonBaseNumber &)
Definition:
MuonNumberingScheme.cc:6
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:13
MuonSubDetector::isEndcap
bool isEndcap()
Definition:
MuonSubDetector.cc:28
MuonSimHitNumberingScheme::baseNumberToUnitNumber
int baseNumberToUnitNumber(const MuonBaseNumber &) override
Definition:
MuonSimHitNumberingScheme.cc:36
MuonSubDetector.h
ME0NumberingScheme
Definition:
ME0NumberingScheme.h:10
Generated for CMSSW Reference Manual by
1.8.11