CMS 3D CMS Logo

MuonSimHitNumberingScheme.cc
Go to the documentation of this file.
10 
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 
27 
29  if (theNumbering) {
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
MuonNumberingScheme::baseNumberToUnitNumber
virtual int baseNumberToUnitNumber(const MuonBaseNumber &)
Definition: MuonNumberingScheme.cc:4
MuonSimHitNumberingScheme::theNumbering
MuonNumberingScheme * theNumbering
Definition: MuonSimHitNumberingScheme.h:28
MuonSubDetector.h
ME0NumberingScheme.h
MuonSimHitNumberingScheme::MuonSimHitNumberingScheme
MuonSimHitNumberingScheme(MuonSubDetector *, const MuonGeometryConstants &muonConstants)
Definition: MuonSimHitNumberingScheme.cc:11
MuonSubDetector::isBarrel
bool isBarrel()
Definition: MuonSubDetector.cc:21
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:34
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
MuonSimHitNumberingScheme::baseNumberToUnitNumber
int baseNumberToUnitNumber(const MuonBaseNumber &) override
Definition: MuonSimHitNumberingScheme.cc:28
DTNumberingScheme
Definition: DTNumberingScheme.h:19