Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
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
}
GEMNumberingScheme
Definition:
GEMNumberingScheme.h:9
MuonSimHitNumberingScheme::baseNumberToUnitNumber
int baseNumberToUnitNumber(const MuonBaseNumber &) const override
Definition:
MuonSimHitNumberingScheme.cc:28
MuonSimHitNumberingScheme::theDetector
MuonSubDetector * theDetector
Definition:
MuonSimHitNumberingScheme.h:27
MuonGeometryConstants.h
MuonBaseNumber
Definition:
MuonBaseNumber.h:21
DTNumberingScheme
Definition:
DTNumberingScheme.h:20
MuonSimHitNumberingScheme::MuonSimHitNumberingScheme
MuonSimHitNumberingScheme(MuonSubDetector *, const MuonGeometryConstants &muonConstants)
Definition:
MuonSimHitNumberingScheme.cc:11
MuonSimHitNumberingScheme.h
ztail.d
tuple d
Definition:
ztail.py:151
RPCNumberingScheme
Definition:
RPCNumberingScheme.h:18
GEMNumberingScheme.h
pileupDistInMC.num
tuple num
Definition:
pileupDistInMC.py:65
MuonSubDetector::isRPC
bool isRPC()
Definition:
MuonSubDetector.cc:25
MuonSimHitNumberingScheme::~MuonSimHitNumberingScheme
~MuonSimHitNumberingScheme() override
Definition:
MuonSimHitNumberingScheme.cc:26
RPCNumberingScheme.h
ME0NumberingScheme.h
MuonSubDetector::isME0
bool isME0()
Definition:
MuonSubDetector.cc:29
DTNumberingScheme.h
MuonBaseNumber.h
CSCNumberingScheme
Definition:
CSCNumberingScheme.h:18
MuonSubDetector
Definition:
MuonSubDetector.h:19
CSCNumberingScheme.h
MuonSimHitNumberingScheme::theNumbering
MuonNumberingScheme * theNumbering
Definition:
MuonSimHitNumberingScheme.h:28
MuonSubDetector::isBarrel
bool isBarrel()
Definition:
MuonSubDetector.cc:21
MuonGeometryConstants
Definition:
MuonGeometryConstants.h:20
MuonNumberingScheme::baseNumberToUnitNumber
virtual int baseNumberToUnitNumber(const MuonBaseNumber &) const
Definition:
MuonNumberingScheme.cc:4
MuonSubDetector::isGEM
bool isGEM()
Definition:
MuonSubDetector.cc:27
MuonSubDetector::isEndcap
bool isEndcap()
Definition:
MuonSubDetector.cc:23
MuonSubDetector.h
ME0NumberingScheme
Definition:
ME0NumberingScheme.h:9
Generated for CMSSW Reference Manual by
1.8.5