CMS 3D CMS Logo

MuonSimHitNumberingScheme.cc
Go to the documentation of this file.
10 
11 //#define LOCAL_DEBUG
12 
15 
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 
33  delete theNumbering;
34 }
35 
37  if (theNumbering) {
39  } else {
40  return 0;
41  }
42 }
43 
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