CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
RPCChamber.h
Go to the documentation of this file.
1 #ifndef RPCGeometry_RPCChamber_h
2 #define RPCGeometry_RPCChamber_h
3 
18 
19 class RPCRoll;
20 
21 class RPCChamber : public GeomDet {
22 public:
26  virtual ~RPCChamber();
27 
29  RPCDetId id() const;
30 
31  // Which subdetector
33 
35  bool operator==(const RPCChamber& ch) const;
36 
38  void add(RPCRoll* rl);
39 
41  virtual std::vector< const GeomDet*> components() const;
42 
44  virtual const GeomDet* component(DetId id) const;
45 
47  const RPCRoll* roll(RPCDetId id) const;
48 
49  const RPCRoll* roll(int isl) const;
50 
52  const std::vector<const RPCRoll*>& rolls() const;
53 
55  int nrolls() const;
56 
57 private:
58 
60 
61  // The chamber owns its Rolls
62  std::vector<const RPCRoll*> theRolls;
63 
64 };
65 #endif
void add(RPCRoll *rl)
Add Roll to the chamber which takes ownership.
Definition: RPCChamber.cc:50
virtual std::vector< const GeomDet * > components() const
Return the rolls in the chamber.
Definition: RPCChamber.cc:57
const RPCRoll * roll(RPCDetId id) const
Return the Roll corresponding to the given id.
Definition: RPCChamber.cc:82
virtual const GeomDet * component(DetId id) const
Return the sub-component (roll) with a given id in this chamber.
Definition: RPCChamber.cc:64
RPCDetId id() const
Return the RPCChamberId of this chamber.
Definition: RPCChamber.cc:35
const std::vector< const RPCRoll * > & rolls() const
Return the Rolls.
Definition: RPCChamber.cc:70
Definition: DetId.h:20
virtual ~RPCChamber()
Destructor.
Definition: RPCChamber.cc:30
std::vector< const RPCRoll * > theRolls
Definition: RPCChamber.h:62
int nrolls() const
Retunr numbers of rolls.
Definition: RPCChamber.cc:76
RPCDetId theId
Definition: RPCChamber.h:59
RPCChamber(RPCDetId id, const ReferenceCountingPointer< BoundPlane > &plane)
Constructor.
Definition: RPCChamber.cc:22
virtual SubDetector subDetector() const
Which subdetector.
Definition: RPCChamber.h:32
bool operator==(const RPCChamber &ch) const
equal if the id is the same
Definition: RPCChamber.cc:43