CMS 3D CMS Logo

MuonSimHitNumberingScheme.cc
Go to the documentation of this file.
10 
13 
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 
31  delete theNumbering;
32 }
33 
35  if (theNumbering) {
37  } else {
38  return 0;
39  }
40 }
41 
Compact representation of the geometrical detector hierarchy.
Definition: DDCompactView.h:80
virtual int baseNumberToUnitNumber(const MuonBaseNumber &)
MuonNumberingScheme * theNumbering
MuonSimHitNumberingScheme(MuonSubDetector *, const DDCompactView &cpv)
int baseNumberToUnitNumber(const MuonBaseNumber &) override