#include <Geometry/RPCGeometry/interface/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. | |
virtual DetId | geographicalId () const |
Return the DetId of this 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 (int isl) const |
const RPCRoll * | roll (RPCDetId id) const |
Return the Roll corresponding to the given id. | |
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 |
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] |
Add Roll to the chamber which takes ownership.
Definition at line 53 of file RPCChamber.cc.
References theRolls.
Referenced by RPCGeometryBuilderFromDDD::buildGeometry().
00053 { 00054 theRolls.push_back(rl); 00055 }
std::vector< const GeomDet * > RPCChamber::components | ( | ) | const [virtual] |
DetId RPCChamber::geographicalId | ( | ) | const [virtual] |
Return the DetId of this chamber.
Implements GeomDet.
Definition at line 32 of file RPCChamber.cc.
References theId.
Referenced by RPCGeometry::add().
00033 { 00034 return theId; 00035 }
Return the RPCChamberId of this chamber.
Definition at line 38 of file RPCChamber.cc.
References theId.
Referenced by RPCGeometryServTest::analyze(), RPCSynchronizer::getSimHitBx(), and operator==().
00039 { 00040 return theId; 00041 }
const int RPCChamber::nrolls | ( | ) | const |
Retunr numbers of rolls.
Definition at line 78 of file RPCChamber.cc.
References theRolls.
Referenced by RPCGeometryServTest::analyze().
00079 { 00080 return theRolls.size(); 00081 }
bool RPCChamber::operator== | ( | const RPCChamber & | ch | ) | const |
Return the Roll corresponding to the given id.
Definition at line 84 of file RPCChamber.cc.
References theId.
Referenced by component().
00085 { 00086 if (id.chamberId()!=theId) return 0; // not in this Roll! 00087 return roll(id.roll()); 00088 }
const std::vector< const RPCRoll * > & RPCChamber::rolls | ( | ) | const |
Return the Rolls.
Definition at line 73 of file RPCChamber.cc.
References theRolls.
Referenced by RPCEfficiency::analyze(), RPCGeometryServTest::analyze(), RPCEfficiencyFromTrack::analyze(), MuonSegmentEff::beginJob(), RPCEfficiency::beginRun(), RPCEventSummary::endLuminosityBlock(), RPCDeadChannelTest::endLuminosityBlock(), RPCEfficiencySecond::endRun(), RPCSynchronizer::getSimHitBx(), and MuonSimHitProducer::produce().
00074 { 00075 return theRolls; 00076 }
virtual SubDetector RPCChamber::subDetector | ( | ) | const [inline, virtual] |
Which subdetector.
Implements GeomDet.
Definition at line 35 of file RPCChamber.h.
References GeomDetEnumerators::RPCBarrel.
00035 {return GeomDetEnumerators::RPCBarrel;}
RPCDetId RPCChamber::theId [private] |
std::vector<const RPCRoll*> RPCChamber::theRolls [private] |
Definition at line 65 of file RPCChamber.h.
Referenced by add(), components(), nrolls(), roll(), and rolls().