CMS 3D CMS Logo

GEMChamber.h
Go to the documentation of this file.
1 #ifndef GEMGeometry_GEMChamber_h
2 #define GEMGeometry_GEMChamber_h
3 
16 
17 class GEMEtaPartition;
18 
19 class GEMChamber : public GeomDet {
20 public:
23 
25  virtual ~GEMChamber();
26 
28  GEMDetId id() const;
29 
30  // Which subdetector
32 
34  bool operator==(const GEMChamber& ch) const;
35 
37  void add(GEMEtaPartition* roll);
38 
40  virtual std::vector<const GeomDet*> components() const;
41 
43  virtual const GeomDet* component(DetId id) const;
44 
46  const GEMEtaPartition* etaPartition(GEMDetId id) const;
47 
48  const GEMEtaPartition* etaPartition(int isl) const;
49 
51  const std::vector<const GEMEtaPartition*>& etaPartitions() const;
52 
54  int nEtaPartitions() const;
55 
56 private:
57 
59 
60  // vector of eta partitions for a chamber
61  std::vector<const GEMEtaPartition*> etaPartitions_;
62 
63 };
64 #endif
bool operator==(const GEMChamber &ch) const
equal if the id is the same
Definition: GEMChamber.cc:23
GEMDetId detId_
Definition: GEMChamber.h:58
std::vector< const GEMEtaPartition * > etaPartitions_
Definition: GEMChamber.h:61
GEMDetId id() const
Return the GEMDetId of this chamber.
Definition: GEMChamber.cc:19
GEMChamber(GEMDetId id, const ReferenceCountingPointer< BoundPlane > &plane)
Constructor.
Definition: GEMChamber.cc:11
virtual ~GEMChamber()
Destructor.
Definition: GEMChamber.cc:17
virtual SubDetector subDetector() const
Which subdetector.
Definition: GEMChamber.h:31
void add(GEMEtaPartition *roll)
Add EtaPartition to the chamber which takes ownership.
Definition: GEMChamber.cc:27
const std::vector< const GEMEtaPartition * > & etaPartitions() const
Return the eta partitions.
Definition: GEMChamber.cc:39
virtual const GeomDet * component(DetId id) const
Return the sub-component (roll) with a given id in this chamber.
Definition: GEMChamber.cc:35
Definition: DetId.h:18
virtual std::vector< const GeomDet * > components() const
Return the rolls in the chamber.
Definition: GEMChamber.cc:31
const GEMEtaPartition * etaPartition(GEMDetId id) const
Return the eta partition corresponding to the given id.
Definition: GEMChamber.cc:47
int nEtaPartitions() const
Retunr numbers of eta partitions.
Definition: GEMChamber.cc:43