CMS 3D CMS Logo

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