test
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 
16 
17 class RPCRoll;
18 
19 class RPCChamber : public GeomDet {
20 public:
24  virtual ~RPCChamber();
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  virtual std::vector< const GeomDet*> components() const;
40 
42  virtual const GeomDet* component(DetId id) const;
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
virtual std::vector< const GeomDet * > components() const
Return the rolls in the chamber.
Definition: RPCChamber.cc:55
const RPCRoll * roll(RPCDetId id) const
Return the Roll corresponding to the given id.
Definition: RPCChamber.cc:80
virtual const GeomDet * component(DetId id) const
Return the sub-component (roll) with a given id in this chamber.
Definition: RPCChamber.cc:62
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
Definition: DetId.h:18
virtual ~RPCChamber()
Destructor.
Definition: RPCChamber.cc:28
std::vector< const RPCRoll * > theRolls
Definition: RPCChamber.h:60
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
virtual SubDetector subDetector() const
Which subdetector.
Definition: RPCChamber.h:30
bool operator==(const RPCChamber &ch) const
equal if the id is the same
Definition: RPCChamber.cc:41