#include <Geometry/MuonNumbering/interface/MuonSimHitNumberingScheme.h>
Public Member Functions | |
virtual int | baseNumberToUnitNumber (const MuonBaseNumber) |
MuonSimHitNumberingScheme (MuonSubDetector *, const DDCompactView &cpv) | |
~MuonSimHitNumberingScheme () | |
Private Attributes | |
MuonSubDetector * | theDetector |
MuonNumberingScheme * | theNumbering |
Definition at line 21 of file MuonSimHitNumberingScheme.h.
MuonSimHitNumberingScheme::MuonSimHitNumberingScheme | ( | MuonSubDetector * | d, | |
const DDCompactView & | cpv | |||
) |
Definition at line 10 of file MuonSimHitNumberingScheme.cc.
References MuonSubDetector::isBarrel(), MuonSubDetector::isEndcap(), MuonSubDetector::isRpc(), theDetector, and theNumbering.
00010 { 00011 theDetector=d; 00012 if (theDetector->isBarrel()) { 00013 theNumbering=new DTNumberingScheme(cpv); 00014 } else if (theDetector->isEndcap()) { 00015 theNumbering=new CSCNumberingScheme(cpv); 00016 } else if (theDetector->isRpc()) { 00017 theNumbering=new RPCNumberingScheme(cpv); 00018 } 00019 }
MuonSimHitNumberingScheme::~MuonSimHitNumberingScheme | ( | ) |
Definition at line 21 of file MuonSimHitNumberingScheme.cc.
References theNumbering.
00021 { 00022 delete theNumbering; 00023 }
int MuonSimHitNumberingScheme::baseNumberToUnitNumber | ( | const | MuonBaseNumber | ) | [virtual] |
Reimplemented from MuonNumberingScheme.
Definition at line 25 of file MuonSimHitNumberingScheme.cc.
References MuonNumberingScheme::baseNumberToUnitNumber(), and theNumbering.
Referenced by MuonSensitiveDetector::setDetUnitId().
00025 { 00026 if (theNumbering) { 00027 return theNumbering->baseNumberToUnitNumber(num); 00028 } else { 00029 return 0; 00030 } 00031 }
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().