#include <RPCGeometry.h>
Public Member Functions | |
void | add (RPCRoll *roll) |
Add a RPC roll to the Geometry. More... | |
void | add (RPCChamber *ch) |
Add a RPC roll to the Geometry. More... | |
const RPCChamber * | chamber (RPCDetId id) const |
const std::vector< const RPCChamber * > & | chambers () const |
Return a vector of all RPC chambers. More... | |
const DetIdContainer & | detIds () const override |
Returm a vector of all GeomDet DetIds (including those of GeomDetUnits) More... | |
const DetContainer & | dets () const override |
Returm a vector of all GeomDet (including all GeomDetUnits) More... | |
const DetTypeContainer & | detTypes () const override |
Return a vector of all det types. More... | |
const DetIdContainer & | detUnitIds () const override |
Returm a vector of all GeomDetUnit DetIds. More... | |
const DetContainer & | detUnits () const override |
Returm a vector of all GeomDet. More... | |
const GeomDet * | idToDet (DetId) const override |
const GeomDet * | idToDetUnit (DetId) const override |
Return the pointer to the GeomDetUnit corresponding to a given DetId. More... | |
const RPCRoll * | roll (RPCDetId id) const |
Return a roll given its id. More... | |
const std::vector< const RPCRoll * > & | rolls () const |
Return a vector of all RPC rolls. More... | |
RPCGeometry () | |
Default constructor. More... | |
~RPCGeometry () override | |
Destructor. More... | |
Public Member Functions inherited from TrackingGeometry | |
virtual | ~TrackingGeometry () |
Destructor. More... | |
Private Attributes | |
std::vector< const RPCChamber * > | allChambers |
std::vector< const RPCRoll * > | allRolls |
DetIdContainer | theDetIds |
DetContainer | theDets |
mapIdToDet | theMap |
DetIdContainer | theRollIds |
DetContainer | theRolls |
DetTypeContainer | theRollTypes |
Additional Inherited Members | |
Public Types inherited from TrackingGeometry | |
using | DetContainer = std::vector< const GeomDet * > |
using | DetIdContainer = std::vector< DetId > |
using | DetTypeContainer = std::vector< const GeomDetType * > |
using | mapIdToDet = std::unordered_map< unsigned int, const GeomDet * > |
using | mapIdToDetUnit = std::unordered_map< unsigned int, const GeomDet * > |
The model of the geometry of RPC.
Definition at line 20 of file RPCGeometry.h.
RPCGeometry::RPCGeometry | ( | ) |
Default constructor.
Implementation of the Model for RPC Geometry
Definition at line 10 of file RPCGeometry.cc.
|
override |
Destructor.
Definition at line 12 of file RPCGeometry.cc.
void RPCGeometry::add | ( | RPCRoll * | roll | ) |
Add a RPC roll to the Geometry.
Definition at line 52 of file RPCGeometry.cc.
References allRolls, GeomDet::geographicalId(), roll(), theDetIds, theDets, theMap, theRollIds, theRolls, theRollTypes, and RPCRoll::type().
Referenced by counter.Counter::register().
void RPCGeometry::add | ( | RPCChamber * | ch | ) |
Add a RPC roll to the Geometry.
Definition at line 63 of file RPCGeometry.cc.
References allChambers, chamber(), GeomDet::geographicalId(), theDetIds, theDets, and theMap.
Referenced by counter.Counter::register().
const RPCChamber * RPCGeometry::chamber | ( | RPCDetId | id | ) | const |
Definition at line 46 of file RPCGeometry.cc.
References idToDet().
Referenced by add(), RPCSeedPattern::extropolateStep(), geometryXMLparser.CSCAlignable::index(), MuonSimHitProducer::produce(), and RPCCosmicSeedrecHitFinder::setEdge().
const std::vector< const RPCChamber * > & RPCGeometry::chambers | ( | ) | const |
Return a vector of all RPC chambers.
Definition at line 42 of file RPCGeometry.cc.
References allChambers.
|
overridevirtual |
Returm a vector of all GeomDet DetIds (including those of GeomDetUnits)
Implements TrackingGeometry.
Definition at line 28 of file RPCGeometry.cc.
References theDetIds.
Referenced by RPCCosmicSeedrecHitFinder::setEdge().
|
overridevirtual |
Returm a vector of all GeomDet (including all GeomDetUnits)
Implements TrackingGeometry.
Definition at line 24 of file RPCGeometry.cc.
References theDets.
Referenced by RPCConeBuilder::buildCones(), CSCObjectMap::CSCObjectMap(), DTObjectMap::DTObjectMap(), RPCSynchronizer::getSimHitBx(), and RPCSynchronizer::getSimHitBxAndTimingForIRPC().
|
overridevirtual |
Return a vector of all det types.
Implements TrackingGeometry.
Definition at line 20 of file RPCGeometry.cc.
References theRollTypes.
|
overridevirtual |
Returm a vector of all GeomDetUnit DetIds.
Implements TrackingGeometry.
Definition at line 26 of file RPCGeometry.cc.
References theRollIds.
|
overridevirtual |
Returm a vector of all GeomDet.
Implements TrackingGeometry.
Definition at line 22 of file RPCGeometry.cc.
References theRolls.
Return the pointer to the GeomDet corresponding to a given DetId (valid also for GeomDetUnits)
Implements TrackingGeometry.
Definition at line 32 of file RPCGeometry.cc.
References relativeConstraints::geom, mps_fire::i, LogDebug, RPCDetId, and theMap.
Referenced by MuonRPCDetLayerGeometryBuilder::buildBarrelLayers(), MuonRPCDetLayerGeometryBuilder::buildLayer(), chamber(), idToDetUnit(), TracktoRPC::thePoints(), and TracktoRPC::ValidRPCSurface().
Return the pointer to the GeomDetUnit corresponding to a given DetId.
Implements TrackingGeometry.
Definition at line 30 of file RPCGeometry.cc.
References idToDet().
Referenced by GlobalHitsProdHist::fillMuon(), GlobalHitsAnalyzer::fillMuon(), GlobalHitsProducer::fillMuon(), RPCDigitizer::findDet(), IRPCDigitizer::findDet(), RPCSeedOverlapper::isShareHit(), MuonSimHitProducer::produce(), and roll().
Return a roll given its id.
Definition at line 50 of file RPCGeometry.cc.
References idToDetUnit().
Referenced by add(), PrimitiveConversion::convert_rpc(), EMTFSubsystemCollector::extractPrimitives(), AngleConverter::getGlobalEta(), AngleConverter::getProcessorPhi(), RPCtoDTTranslator::localX(), RPCtoDTTranslator::radialAngle(), RPCMonitorDigi::stripsInRoll(), and TracktoRPC::thePoints().
const std::vector< const RPCRoll * > & RPCGeometry::rolls | ( | ) | const |
Return a vector of all RPC rolls.
Definition at line 44 of file RPCGeometry.cc.
References allRolls.
Referenced by FWRecoGeometryESProducer::addRPCGeometry(), FWTGeoRecoGeometryESProducer::addRPCGeometry(), IRPCDigitizer::doAction(), RPCDigitizer::doAction(), RPCGeometryValidate::validateRPCChamberGeometry(), and RPCGeometryValidate::validateRPCStripsGeometry().
|
private |
Definition at line 80 of file RPCGeometry.h.
Referenced by add(), and chambers().
|
private |
Definition at line 79 of file RPCGeometry.h.
|
private |
Definition at line 74 of file RPCGeometry.h.
|
private |
Definition at line 71 of file RPCGeometry.h.
|
private |
Definition at line 77 of file RPCGeometry.h.
|
private |
Definition at line 73 of file RPCGeometry.h.
Referenced by add(), and detUnitIds().
|
private |
Definition at line 70 of file RPCGeometry.h.
Referenced by add(), and detUnits().
|
private |
Definition at line 72 of file RPCGeometry.h.
Referenced by add(), and detTypes().