#include <MuonSimHitNumberingScheme.h>
Public Member Functions | |
virtual int | baseNumberToUnitNumber (const MuonBaseNumber) |
MuonSimHitNumberingScheme (MuonSubDetector *, const DDCompactView &cpv) | |
~MuonSimHitNumberingScheme () | |
Private Attributes | |
MuonSubDetector * | theDetector |
MuonNumberingScheme * | theNumbering |
wrapper class to handle numbering schemes for the different MuonSubDetector's
Definition at line 21 of file MuonSimHitNumberingScheme.h.
MuonSimHitNumberingScheme::MuonSimHitNumberingScheme | ( | MuonSubDetector * | d, |
const DDCompactView & | cpv | ||
) |
Definition at line 11 of file MuonSimHitNumberingScheme.cc.
References MuonSubDetector::isBarrel(), MuonSubDetector::isEndcap(), MuonSubDetector::isGem(), MuonSubDetector::isRpc(), theDetector, and theNumbering.
{ theDetector=d; if (theDetector->isBarrel()) { theNumbering=new DTNumberingScheme(cpv); } else if (theDetector->isEndcap()) { theNumbering=new CSCNumberingScheme(cpv); } else if (theDetector->isRpc()) { theNumbering=new RPCNumberingScheme(cpv); } else if (theDetector->isGem()) { theNumbering=new GEMNumberingScheme(cpv); } }
MuonSimHitNumberingScheme::~MuonSimHitNumberingScheme | ( | ) |
Definition at line 24 of file MuonSimHitNumberingScheme.cc.
References theNumbering.
{ delete theNumbering; }
int MuonSimHitNumberingScheme::baseNumberToUnitNumber | ( | const MuonBaseNumber | num | ) | [virtual] |
Reimplemented from MuonNumberingScheme.
Definition at line 28 of file MuonSimHitNumberingScheme.cc.
References MuonNumberingScheme::baseNumberToUnitNumber(), and theNumbering.
Referenced by MuonSensitiveDetector::setDetUnitId().
{ if (theNumbering) { return theNumbering->baseNumberToUnitNumber(num); } else { return 0; } }
Definition at line 32 of file MuonSimHitNumberingScheme.h.
Referenced by MuonSimHitNumberingScheme().
Definition at line 33 of file MuonSimHitNumberingScheme.h.
Referenced by baseNumberToUnitNumber(), MuonSimHitNumberingScheme(), and ~MuonSimHitNumberingScheme().