#include <RPCGeometry.h>
Public Member Functions | |
void | add (RPCRoll *roll) |
Add a RPC roll to the Geometry. | |
void | add (RPCChamber *ch) |
Add a RPC roll to the Geometry. | |
const RPCChamber * | chamber (RPCDetId id) const |
const std::vector< RPCChamber * > & | chambers () const |
Return a vector of all RPC chambers. | |
virtual const DetIdContainer & | detIds () const |
Returm a vector of all GeomDet DetIds (including those of GeomDetUnits) | |
virtual const DetContainer & | dets () const |
Returm a vector of all GeomDet (including all GeomDetUnits) | |
virtual const DetTypeContainer & | detTypes () const |
Return a vector of all det types. | |
virtual const DetIdContainer & | detUnitIds () const |
Returm a vector of all GeomDetUnit DetIds. | |
virtual const DetUnitContainer & | detUnits () const |
Returm a vector of all GeomDetUnit. | |
virtual const GeomDet * | idToDet (DetId) const |
virtual const GeomDetUnit * | idToDetUnit (DetId) const |
Return the pointer to the GeomDetUnit corresponding to a given DetId. | |
const RPCRoll * | roll (RPCDetId id) const |
Return a roll given its id. | |
const std::vector< RPCRoll * > & | rolls () const |
Return a vector of all RPC rolls. | |
RPCGeometry () | |
Default constructor. | |
virtual | ~RPCGeometry () |
Destructor. | |
Private Attributes | |
std::vector< RPCChamber * > | allChambers |
std::vector< RPCRoll * > | allRolls |
DetIdContainer | theDetIds |
DetContainer | theDets |
mapIdToDet | theMap |
DetIdContainer | theRollIds |
DetUnitContainer | theRolls |
DetTypeContainer | theRollTypes |
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.
{}
RPCGeometry::~RPCGeometry | ( | ) | [virtual] |
Destructor.
Definition at line 13 of file RPCGeometry.cc.
{ // delete all the chamber associated to the geometry //for (std::vector<RPCChamber*>::const_iterator ich = allChambers.begin(); // ich != allChambers.end(); ++ich){ // delete (*ich); //} }
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().
{ theDets.push_back(roll); allRolls.push_back(roll); theRolls.push_back(roll); theRollIds.push_back(roll->geographicalId()); theDetIds.push_back(roll->geographicalId()); GeomDetType* _t = const_cast<GeomDetType*>(&roll->type()); theRollTypes.push_back(_t); theMap.insert(std::pair<DetId,GeomDetUnit*> (roll->geographicalId(),roll)); }
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.
{ allChambers.push_back(chamber); theDets.push_back(chamber); theDetIds.push_back(chamber->geographicalId()); theMap.insert(std::pair<DetId,GeomDet*> (chamber->geographicalId(),chamber)); }
const RPCChamber * RPCGeometry::chamber | ( | RPCDetId | id | ) | const |
Definition at line 71 of file RPCGeometry.cc.
References idToDet().
Referenced by add(), RPCSeedPattern::extropolateStep(), and MuonSimHitProducer::produce().
{ return dynamic_cast<const RPCChamber*>(idToDet(id.chamberId())); }
const std::vector< RPCChamber * > & RPCGeometry::chambers | ( | ) | const |
Return a vector of all RPC chambers.
Definition at line 63 of file RPCGeometry.cc.
References allChambers.
{ return allChambers; }
const RPCGeometry::DetIdContainer & RPCGeometry::detIds | ( | ) | const [virtual] |
Returm a vector of all GeomDet DetIds (including those of GeomDetUnits)
Implements TrackingGeometry.
Definition at line 43 of file RPCGeometry.cc.
References theDetIds.
{ return theDetIds; }
const RPCGeometry::DetContainer & RPCGeometry::dets | ( | ) | const [virtual] |
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().
{ return theDets; }
const RPCGeometry::DetTypeContainer & RPCGeometry::detTypes | ( | ) | const [virtual] |
Return a vector of all det types.
Implements TrackingGeometry.
Definition at line 23 of file RPCGeometry.cc.
References theRollTypes.
{ return theRollTypes; }
const RPCGeometry::DetIdContainer & RPCGeometry::detUnitIds | ( | ) | const [virtual] |
Returm a vector of all GeomDetUnit DetIds.
Implements TrackingGeometry.
Definition at line 38 of file RPCGeometry.cc.
References theRollIds.
{ return theRollIds; }
const RPCGeometry::DetUnitContainer & RPCGeometry::detUnits | ( | ) | const [virtual] |
Returm a vector of all GeomDetUnit.
Implements TrackingGeometry.
Definition at line 28 of file RPCGeometry.cc.
References theRolls.
{ return 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(), chamber(), and idToDetUnit().
const GeomDetUnit * RPCGeometry::idToDetUnit | ( | DetId | ) | const [virtual] |
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 GlobalHitsProdHist::fillMuon(), GlobalHitsAnalyzer::fillMuon(), GlobalHitsProducer::fillMuon(), MuonSimHitsValidAnalyzer::fillRPC(), RPCDigitizer::findDet(), MuonSimHitProducer::produce(), and roll().
{ return dynamic_cast<const GeomDetUnit*>(idToDet(id)); }
Return a roll given its id.
Definition at line 75 of file RPCGeometry.cc.
References idToDetUnit().
Referenced by add().
{ return dynamic_cast<const RPCRoll*>(idToDetUnit(id)); }
const std::vector< RPCRoll * > & RPCGeometry::rolls | ( | ) | const |
Return a vector of all RPC rolls.
Definition at line 67 of file RPCGeometry.cc.
References allRolls.
Referenced by FWTGeoRecoGeometryESProducer::addRPCGeometry(), FWRecoGeometryESProducer::addRPCGeometry(), and RPCDigitizer::doAction().
{ return allRolls; }
std::vector<RPCChamber*> RPCGeometry::allChambers [private] |
Definition at line 84 of file RPCGeometry.h.
Referenced by add(), and chambers().
std::vector<RPCRoll*> RPCGeometry::allRolls [private] |
Definition at line 83 of file RPCGeometry.h.
DetIdContainer RPCGeometry::theDetIds [private] |
Definition at line 78 of file RPCGeometry.h.
DetContainer RPCGeometry::theDets [private] |
Definition at line 75 of file RPCGeometry.h.
mapIdToDet RPCGeometry::theMap [private] |
Definition at line 81 of file RPCGeometry.h.
DetIdContainer RPCGeometry::theRollIds [private] |
Definition at line 77 of file RPCGeometry.h.
Referenced by add(), and detUnitIds().
DetUnitContainer RPCGeometry::theRolls [private] |
Definition at line 74 of file RPCGeometry.h.
Referenced by add(), and detUnits().
DetTypeContainer RPCGeometry::theRollTypes [private] |
Definition at line 76 of file RPCGeometry.h.
Referenced by add(), and detTypes().