CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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
void add(RPCRoll *rl)
Add Roll to the chamber which takes ownership.
Definition: RPCChamber.cc:32
const RPCRoll * roll(RPCDetId id) const
Return the Roll corresponding to the given id.
Definition: RPCChamber.cc:44
RPCDetId id() const
Return the RPCChamberId of this chamber.
Definition: RPCChamber.cc:26
const std::vector< const RPCRoll * > & rolls() const
Return the Rolls.
Definition: RPCChamber.cc:40
const GeomDet * component(DetId id) const override
Return the sub-component (roll) with a given id in this chamber.
Definition: RPCChamber.cc:38
~RPCChamber() override
Destructor.
Definition: RPCChamber.cc:24
Definition: DetId.h:17
std::vector< const RPCRoll * > theRolls
Definition: RPCChamber.h:59
std::vector< const GeomDet * > components() const override
Return the rolls in the chamber.
Definition: RPCChamber.cc:34
int nrolls() const
Retunr numbers of rolls.
Definition: RPCChamber.cc:42
RPCDetId theId
Definition: RPCChamber.h:56
RPCChamber(RPCDetId id, const ReferenceCountingPointer< BoundPlane > &plane)
Constructor.
Definition: RPCChamber.cc:19
bool operator==(const RPCChamber &ch) const
equal if the id is the same
Definition: RPCChamber.cc:30
SubDetector subDetector() const override
Which subdetector.
Definition: RPCChamber.h:30