#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... | |
virtual const DetIdContainer & | detIds () const override |
Returm a vector of all GeomDet DetIds (including those of GeomDetUnits) More... | |
virtual const DetContainer & | dets () const override |
Returm a vector of all GeomDet (including all GeomDetUnits) More... | |
virtual const DetTypeContainer & | detTypes () const override |
Return a vector of all det types. More... | |
virtual const DetIdContainer & | detUnitIds () const override |
Returm a vector of all GeomDetUnit DetIds. More... | |
virtual const DetUnitContainer & | detUnits () const override |
Returm a vector of all GeomDetUnit. More... | |
virtual const GeomDet * | idToDet (DetId) const override |
virtual const GeomDetUnit * | 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... | |
virtual | ~RPCGeometry () |
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 |
DetUnitContainer | theRolls |
DetTypeContainer | theRollTypes |
Additional Inherited Members | |
Public Types inherited from TrackingGeometry | |
typedef std::vector< GeomDet const * > | DetContainer |
typedef std::vector< DetId > | DetIdContainer |
typedef std::vector < GeomDetType const * > | DetTypeContainer |
typedef std::vector < GeomDetUnit const * > | DetUnitContainer |
typedef std::unordered_map < unsigned int, GeomDet const * > | mapIdToDet |
typedef std::unordered_map < unsigned int, GeomDetUnit const * > | mapIdToDetUnit |
The model of the geometry of RPC.
Definition at line 22 of file RPCGeometry.h.
RPCGeometry::RPCGeometry | ( | ) |
Default constructor.
Implementation of the Model for RPC Geometry
Definition at line 10 of file RPCGeometry.cc.
|
virtual |
Destructor.
Definition at line 13 of file RPCGeometry.cc.
void RPCGeometry::add | ( | RPCRoll * | roll | ) |
Add a RPC roll to the Geometry.
Definition at line 81 of file RPCGeometry.cc.
References allRolls, GeomDet::geographicalId(), roll(), theDetIds, theDets, theMap, theRollIds, theRolls, theRollTypes, and RPCRoll::type().
Referenced by RPCGeometryBuilderFromDDD::buildGeometry(), and counter.Counter::register().
void RPCGeometry::add | ( | RPCChamber * | ch | ) |
Add a RPC roll to the Geometry.
Definition at line 94 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 71 of file RPCGeometry.cc.
References idToDet().
Referenced by add(), CSCMotherboardME3141RPC::createRPCRollLUT(), RPCSeedPattern::extropolateStep(), CSCMotherboardME3141RPC::hasRE31andRE41(), geometryXMLparser.CSCAlignable::index(), L1TMuonEndCapTrackProducer::produce(), MuonSimHitProducer::produce(), CSCMotherboardME3141RPC::retrieveRPCDigis(), and CSCMotherboardME3141RPC::run().
const std::vector< const RPCChamber * > & RPCGeometry::chambers | ( | ) | const |
Return a vector of all RPC chambers.
Definition at line 63 of file RPCGeometry.cc.
References allChambers.
|
overridevirtual |
Returm a vector of all GeomDet DetIds (including those of GeomDetUnits)
Implements TrackingGeometry.
Definition at line 43 of file RPCGeometry.cc.
References theDetIds.
|
overridevirtual |
Returm a vector of all GeomDet (including all GeomDetUnits)
Implements TrackingGeometry.
Definition at line 33 of file RPCGeometry.cc.
References theDets.
Referenced by RPCSynchronizer::getSimHitBx().
|
overridevirtual |
Return a vector of all det types.
Implements TrackingGeometry.
Definition at line 23 of file RPCGeometry.cc.
References theRollTypes.
|
overridevirtual |
Returm a vector of all GeomDetUnit DetIds.
Implements TrackingGeometry.
Definition at line 38 of file RPCGeometry.cc.
References theRollIds.
|
overridevirtual |
Returm a vector of all GeomDetUnit.
Implements TrackingGeometry.
Definition at line 28 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 53 of file RPCGeometry.cc.
References relativeConstraints::geom, i, LogDebug, RPCDetId, and theMap.
Referenced by MuonRPCDetLayerGeometryBuilder::buildBarrelLayers(), MuonRPCDetLayerGeometryBuilder::buildLayer(), chamber(), and idToDetUnit().
|
overridevirtual |
Return the pointer to the GeomDetUnit corresponding to a given DetId.
Implements TrackingGeometry.
Definition at line 48 of file RPCGeometry.cc.
References idToDet().
Referenced by GlobalHitsAnalyzer::fillMuon(), GlobalHitsProdHist::fillMuon(), GlobalHitsProducer::fillMuon(), RPCDigitizer::findDet(), MuonSimHitProducer::produce(), and roll().
Return a roll given its id.
Definition at line 75 of file RPCGeometry.cc.
References idToDetUnit().
Referenced by add().
const std::vector< const RPCRoll * > & RPCGeometry::rolls | ( | ) | const |
Return a vector of all RPC rolls.
Definition at line 67 of file RPCGeometry.cc.
References allRolls.
Referenced by FWRecoGeometryESProducer::addRPCGeometry(), FWTGeoRecoGeometryESProducer::addRPCGeometry(), and RPCDigitizer::doAction().
|
private |
Definition at line 84 of file RPCGeometry.h.
Referenced by add(), and chambers().
|
private |
Definition at line 83 of file RPCGeometry.h.
|
private |
Definition at line 78 of file RPCGeometry.h.
|
private |
Definition at line 75 of file RPCGeometry.h.
|
private |
Definition at line 81 of file RPCGeometry.h.
|
private |
Definition at line 77 of file RPCGeometry.h.
Referenced by add(), and detUnitIds().
|
private |
Definition at line 74 of file RPCGeometry.h.
Referenced by add(), and detUnits().
|
private |
Definition at line 76 of file RPCGeometry.h.
Referenced by add(), and detTypes().