#include <RPCChamber.h>
Public Member Functions | |
void | add (RPCRoll *rl) |
Add Roll to the chamber which takes ownership. | |
virtual const GeomDet * | component (DetId id) const |
Return the sub-component (roll) with a given id in this chamber. | |
virtual std::vector< const GeomDet * > | components () const |
Return the rolls in the chamber. | |
RPCDetId | id () const |
Return the RPCChamberId of this chamber. | |
const int | nrolls () const |
Retunr numbers of rolls. | |
bool | operator== (const RPCChamber &ch) const |
equal if the id is the same | |
const RPCRoll * | roll (RPCDetId id) const |
Return the Roll corresponding to the given id. | |
const RPCRoll * | roll (int isl) const |
const std::vector< const RPCRoll * > & | rolls () const |
Return the Rolls. | |
RPCChamber (RPCDetId id, const ReferenceCountingPointer< BoundPlane > &plane) | |
Constructor. | |
virtual SubDetector | subDetector () const |
Which subdetector. | |
virtual | ~RPCChamber () |
Destructor. | |
Private Attributes | |
RPCDetId | theId |
std::vector< const RPCRoll * > | theRolls |
Model of a RPC chamber.
A chamber is a GeomDet. The chamber is composed by 2 or 3 Roll (GeomDetUnit).
Definition at line 21 of file RPCChamber.h.
RPCChamber::RPCChamber | ( | RPCDetId | id, |
const ReferenceCountingPointer< BoundPlane > & | plane | ||
) |
RPCChamber::~RPCChamber | ( | ) | [virtual] |
void RPCChamber::add | ( | RPCRoll * | rl | ) |
Add Roll to the chamber which takes ownership.
Definition at line 50 of file RPCChamber.cc.
References theRolls.
Referenced by RPCGeometryBuilderFromCondDB::build(), and RPCGeometryBuilderFromDDD::buildGeometry().
{ theRolls.push_back(rl); }
std::vector< const GeomDet * > RPCChamber::components | ( | ) | const [virtual] |
RPCDetId RPCChamber::id | ( | void | ) | const |
Return the RPCChamberId of this chamber.
Definition at line 35 of file RPCChamber.cc.
References theId.
Referenced by RPCGeometryServTest::analyze(), RPCSeedPattern::checkSegment(), RPCSynchronizer::getSimHitBx(), and operator==().
{ return theId; }
const int RPCChamber::nrolls | ( | ) | const |
Retunr numbers of rolls.
Definition at line 75 of file RPCChamber.cc.
References theRolls.
Referenced by RPCGeometryServTest::analyze().
{ return theRolls.size(); }
bool RPCChamber::operator== | ( | const RPCChamber & | ch | ) | const |
const RPCRoll * RPCChamber::roll | ( | int | isl | ) | const |
Return the Roll corresponding to the given id.
Definition at line 81 of file RPCChamber.cc.
References theId.
Referenced by component().
const std::vector< const RPCRoll * > & RPCChamber::rolls | ( | ) | const |
Return the Rolls.
Definition at line 70 of file RPCChamber.cc.
References theRolls.
Referenced by RPCGeometryServTest::analyze(), RPCMonitorDigi::beginRun(), RPCEfficiency::beginRun(), RPCDqmClient::endRun(), RPCEfficiencySecond::endRun(), rpcdqmclient::clientTools::getMEs(), RPCSynchronizer::getSimHitBx(), ObjectMap::ObjectMap(), ObjectMap2::ObjectMap2(), ObjectMap2CSC::ObjectMap2CSC(), ObjectMapCSC::ObjectMapCSC(), and MuonSimHitProducer::produce().
{ return theRolls; }
virtual SubDetector RPCChamber::subDetector | ( | ) | const [inline, virtual] |
Which subdetector.
Implements GeomDet.
Definition at line 32 of file RPCChamber.h.
References GeomDetEnumerators::RPCBarrel.
{return GeomDetEnumerators::RPCBarrel;}
RPCDetId RPCChamber::theId [private] |
Definition at line 59 of file RPCChamber.h.
std::vector<const RPCRoll*> RPCChamber::theRolls [private] |
Definition at line 62 of file RPCChamber.h.
Referenced by add(), components(), nrolls(), roll(), and rolls().