#include <MuonSubDetector.h>
Public Member Functions | |
bool | isBarrel () |
bool | isEndcap () |
bool | isGem () |
bool | isRpc () |
MuonSubDetector (std::string name) | |
std::string | name () |
std::string | suIdName () |
~MuonSubDetector () | |
Private Types | |
enum | subDetector { barrel, endcap, rpc, gem, nodef } |
Private Attributes | |
subDetector | detector |
std::string | detectorName |
class to handle muon sensitive detectors, possible arguments for constructor: "MuonDTHits", "MuonCSCHits", "MuonRPCHits"
the function suIdName() returns the detector SuId for the ROU factory
Definition at line 21 of file MuonSubDetector.h.
enum MuonSubDetector::subDetector [private] |
MuonSubDetector::MuonSubDetector | ( | std::string | name | ) |
Definition at line 5 of file MuonSubDetector.cc.
References barrel, gather_cfg::cout, detector, endcap, gem, nodef, and rpc.
: detectorName(name) { if (name=="MuonDTHits") { detector=barrel; } else if (name=="MuonCSCHits") { detector=endcap; } else if (name=="MuonRPCHits") { detector=rpc; } else if (name=="MuonGEMHits") { detector=gem; } else { std::cout << "MuonSubDetector::MuonSubDetector does not recognize "; std::cout << name <<std::endl; detector=nodef; } }
MuonSubDetector::~MuonSubDetector | ( | ) | [inline] |
Definition at line 30 of file MuonSubDetector.h.
{};
bool MuonSubDetector::isBarrel | ( | ) |
Definition at line 22 of file MuonSubDetector.cc.
References barrel, and detector.
Referenced by MuonSensitiveDetector::createHit(), MuonSlaveSD::format(), MuonSimHitNumberingScheme::MuonSimHitNumberingScheme(), and MuonSensitiveDetector::updateHit().
bool MuonSubDetector::isEndcap | ( | ) |
Definition at line 26 of file MuonSubDetector.cc.
References detector, and endcap.
Referenced by MuonSensitiveDetector::createHit(), MuonSlaveSD::format(), MuonSensitiveDetector::MuonSensitiveDetector(), MuonSimHitNumberingScheme::MuonSimHitNumberingScheme(), and MuonSensitiveDetector::updateHit().
bool MuonSubDetector::isGem | ( | ) |
Definition at line 34 of file MuonSubDetector.cc.
Referenced by MuonSensitiveDetector::MuonSensitiveDetector(), and MuonSimHitNumberingScheme::MuonSimHitNumberingScheme().
bool MuonSubDetector::isRpc | ( | ) |
Definition at line 30 of file MuonSubDetector.cc.
Referenced by MuonSlaveSD::format(), MuonSensitiveDetector::MuonSensitiveDetector(), and MuonSimHitNumberingScheme::MuonSimHitNumberingScheme().
std::string MuonSubDetector::name | ( | void | ) |
Definition at line 38 of file MuonSubDetector.cc.
References detectorName.
Referenced by MuonSlaveSD::clearHits(), MuonSlaveSD::format(), and MuonSensitiveDetector::saveHit().
{ return detectorName; }
std::string MuonSubDetector::suIdName | ( | ) |
Definition at line 42 of file MuonSubDetector.cc.
subDetector MuonSubDetector::detector [private] |
Definition at line 41 of file MuonSubDetector.h.
Referenced by isBarrel(), isEndcap(), isGem(), isRpc(), MuonSubDetector(), and suIdName().
std::string MuonSubDetector::detectorName [private] |
Definition at line 42 of file MuonSubDetector.h.
Referenced by name().