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:
56 
58 
59  // The chamber owns its Rolls
60  std::vector<const RPCRoll*> theRolls;
61 
62 };
63 #endif
void add(RPCRoll *rl)
Add Roll to the chamber which takes ownership.
Definition: RPCChamber.cc:48
const RPCRoll * roll(RPCDetId id) const
Return the Roll corresponding to the given id.
Definition: RPCChamber.cc:80
RPCDetId id() const
Return the RPCChamberId of this chamber.
Definition: RPCChamber.cc:33
const std::vector< const RPCRoll * > & rolls() const
Return the Rolls.
Definition: RPCChamber.cc:68
~RPCChamber() override
Destructor.
Definition: RPCChamber.cc:28
Definition: DetId.h:18
const GeomDet * component(DetId id) const override
Return the sub-component (roll) with a given id in this chamber.
Definition: RPCChamber.cc:62
SubDetector subDetector() const override
Which subdetector.
Definition: RPCChamber.h:30
std::vector< const RPCRoll * > theRolls
Definition: RPCChamber.h:60
std::vector< const GeomDet * > components() const override
Return the rolls in the chamber.
Definition: RPCChamber.cc:55
int nrolls() const
Retunr numbers of rolls.
Definition: RPCChamber.cc:74
RPCDetId theId
Definition: RPCChamber.h:57
RPCChamber(RPCDetId id, const ReferenceCountingPointer< BoundPlane > &plane)
Constructor.
Definition: RPCChamber.cc:20
bool operator==(const RPCChamber &ch) const
equal if the id is the same
Definition: RPCChamber.cc:41