CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
GEMSuperChamber.h
Go to the documentation of this file.
1 #ifndef Geometry_GEMGeometry_GEMSuperChamber_h
2 #define Geometry_GEMGeometry_GEMSuperChamber_h
3 
16 
17 class GEMChamber;
18 
19 class GEMSuperChamber : public GeomDet
20 {
21  public:
24 
27 
29  GEMDetId id() const;
30 
32  const std::vector<GEMDetId>& ids() const;
33 
34  // Which subdetector
36 
38  bool operator==(const GEMSuperChamber& sch) const;
39 
41  void add(GEMChamber* ch);
42 
44  virtual std::vector<const GeomDet*> components() const;
45 
47  virtual const GeomDet* component(DetId id) const;
48 
50  const GEMChamber* chamber(GEMDetId id) const;
51 
52  const GEMChamber* chamber(int layer) const;
53 
55  const std::vector<const GEMChamber*>& chambers() const;
56 
58  int nChambers() const;
59 
60  private:
61 
63 
64  // vector of chambers for a super chamber
65  std::vector<const GEMChamber*> chambers_;
66 
67 };
68 #endif
const GEMChamber * chamber(GEMDetId id) const
Return the chamber corresponding to the given id.
void add(GEMChamber *ch)
Add chamber to the super chamber which takes ownership.
virtual const GeomDet * component(DetId id) const
Return the sub-component (chamber) with a given id in this super chamber.
bool operator==(const GEMSuperChamber &sch) const
equal if the id is the same
~GEMSuperChamber()
destructor
virtual SubDetector subDetector() const
Which subdetector.
Definition: DetId.h:18
const std::vector< GEMDetId > & ids() const
Return the vector of GEMDetIds in this super chamber.
int nChambers() const
Return numbers of chambers.
GEMDetId id() const
Return the GEMDetId of this super chamber.
virtual std::vector< const GeomDet * > components() const
Return the chambers in the super chamber.
const std::vector< const GEMChamber * > & chambers() const
Return the chambers in the super chamber.
GEMSuperChamber(GEMDetId id, const ReferenceCountingPointer< BoundPlane > &plane)
constructor
std::vector< const GEMChamber * > chambers_