CMS 3D CMS Logo

RPCChamber.h
Go to the documentation of this file.
1 #ifndef RPCGeometry_RPCChamber_h
2 #define RPCGeometry_RPCChamber_h
3 
16 
17 class RPCRoll;
18 
19 class RPCChamber : public GeomDet {
20 public:
24  ~RPCChamber() override;
25 
27  RPCDetId id() const;
28 
29  // Which subdetector
31 
33  bool operator==(const RPCChamber& ch) const;
34 
36  void add(RPCRoll* rl);
37 
39  std::vector<const GeomDet*> components() const override;
40 
42  const GeomDet* component(DetId id) const override;
43 
45  const RPCRoll* roll(RPCDetId id) const;
46 
47  const RPCRoll* roll(int isl) const;
48 
50  const std::vector<const RPCRoll*>& rolls() const;
51 
53  int nrolls() const;
54 
55 private:
57 
58  // The chamber owns its Rolls
59  std::vector<const RPCRoll*> theRolls;
60 };
61 #endif
RPCRoll
Definition: RPCRoll.h:12
GeomDetEnumerators::SubDetector
SubDetector
Definition: GeomDetEnumerators.h:10
RPCChamber::nrolls
int nrolls() const
Retunr numbers of rolls.
Definition: RPCChamber.cc:42
RPCChamber::component
const GeomDet * component(DetId id) const override
Return the sub-component (roll) with a given id in this chamber.
Definition: RPCChamber.cc:38
GeomDet
Definition: GeomDet.h:27
RPCChamber::~RPCChamber
~RPCChamber() override
Destructor.
Definition: RPCChamber.cc:24
RPCDetId
Definition: RPCDetId.h:16
RPCChamber::id
RPCDetId id() const
Return the RPCChamberId of this chamber.
Definition: RPCChamber.cc:26
RPCChamber::subDetector
SubDetector subDetector() const override
Which subdetector.
Definition: RPCChamber.h:30
ReferenceCountingPointer
Definition: ReferenceCounted.h:60
RPCChamber::rolls
const std::vector< const RPCRoll * > & rolls() const
Return the Rolls.
Definition: RPCChamber.cc:40
RPCChamber::components
std::vector< const GeomDet * > components() const override
Return the rolls in the chamber.
Definition: RPCChamber.cc:34
RPCChamber
Definition: RPCChamber.h:19
RPCChamber::operator==
bool operator==(const RPCChamber &ch) const
equal if the id is the same
Definition: RPCChamber.cc:30
DetId
Definition: DetId.h:17
RPCChamber::RPCChamber
RPCChamber(RPCDetId id, const ReferenceCountingPointer< BoundPlane > &plane)
Constructor.
Definition: RPCChamber.cc:19
RPCChamber::theRolls
std::vector< const RPCRoll * > theRolls
Definition: RPCChamber.h:59
RPCChamber::theId
RPCDetId theId
Definition: RPCChamber.h:56
RPCChamber::add
void add(RPCRoll *rl)
Add Roll to the chamber which takes ownership.
Definition: RPCChamber.cc:32
RPCChamber::roll
const RPCRoll * roll(RPCDetId id) const
Return the Roll corresponding to the given id.
Definition: RPCChamber.cc:44
RPCDetId.h
GeomDet.h
GeomDetEnumerators::RPCBarrel
Definition: GeomDetEnumerators.h:19