CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
MuonSimHitNumberingScheme Class Reference

#include <MuonSimHitNumberingScheme.h>

Inheritance diagram for MuonSimHitNumberingScheme:
MuonNumberingScheme

Public Member Functions

int baseNumberToUnitNumber (const MuonBaseNumber &) override
 
 MuonSimHitNumberingScheme (MuonSubDetector *, const DDCompactView &cpv)
 
 MuonSimHitNumberingScheme (MuonSubDetector *, const MuonDDDConstants &muonConstants)
 
 ~MuonSimHitNumberingScheme () override
 
- Public Member Functions inherited from MuonNumberingScheme
 MuonNumberingScheme ()
 
virtual ~MuonNumberingScheme ()
 

Private Attributes

MuonSubDetectortheDetector
 
MuonNumberingSchemetheNumbering
 

Detailed Description

wrapper class to handle numbering schemes for the different MuonSubDetector's

Author
Arno Straessner, CERN arno..nosp@m.stra.nosp@m.essne.nosp@m.r@ce.nosp@m.rn.ch

Definition at line 20 of file MuonSimHitNumberingScheme.h.

Constructor & Destructor Documentation

MuonSimHitNumberingScheme::MuonSimHitNumberingScheme ( MuonSubDetector d,
const DDCompactView cpv 
)

Definition at line 11 of file MuonSimHitNumberingScheme.cc.

11  :
MuonSimHitNumberingScheme(MuonSubDetector *, const DDCompactView &cpv)
MuonSimHitNumberingScheme::MuonSimHitNumberingScheme ( MuonSubDetector d,
const MuonDDDConstants muonConstants 
)

Definition at line 14 of file MuonSimHitNumberingScheme.cc.

References edmIntegrityCheck::d, MuonSubDetector::isBarrel(), MuonSubDetector::isEndcap(), MuonSubDetector::isGEM(), MuonSubDetector::isME0(), MuonSubDetector::isRPC(), theDetector, and theNumbering.

14  {
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 }
MuonNumberingScheme * theNumbering
MuonSimHitNumberingScheme::~MuonSimHitNumberingScheme ( )
override

Definition at line 30 of file MuonSimHitNumberingScheme.cc.

References theNumbering.

30  {
31  delete theNumbering;
32 }
MuonNumberingScheme * theNumbering

Member Function Documentation

int MuonSimHitNumberingScheme::baseNumberToUnitNumber ( const MuonBaseNumber num)
overridevirtual

Reimplemented from MuonNumberingScheme.

Definition at line 34 of file MuonSimHitNumberingScheme.cc.

References MuonNumberingScheme::baseNumberToUnitNumber(), and theNumbering.

Referenced by MuonSensitiveDetector::setDetUnitId().

34  {
35  if (theNumbering) {
37  } else {
38  return 0;
39  }
40 }
virtual int baseNumberToUnitNumber(const MuonBaseNumber &)
MuonNumberingScheme * theNumbering

Member Data Documentation

MuonSubDetector* MuonSimHitNumberingScheme::theDetector
private

Definition at line 32 of file MuonSimHitNumberingScheme.h.

Referenced by MuonSimHitNumberingScheme().

MuonNumberingScheme* MuonSimHitNumberingScheme::theNumbering
private