CMS 3D CMS Logo

ME0Layer.h
Go to the documentation of this file.
1 #ifndef Geometry_GEMGeometry_ME0Layer_h
2 #define Geometry_GEMGeometry_ME0Layer_h
3 
6 
7 class ME0EtaPartition;
8 
9 class ME0Layer : public GeomDet {
10 public:
13 
15  ~ME0Layer() override;
16 
18  ME0DetId id() const;
19 
20  // Which subdetector
21  SubDetector subDetector() const override { return GeomDetEnumerators::ME0; }
22 
24  bool operator==(const ME0Layer& ch) const;
25 
27  void add(const ME0EtaPartition* roll);
28 
30  std::vector<const GeomDet*> components() const override;
31 
33  const GeomDet* component(DetId id) const override;
34 
36  const ME0EtaPartition* etaPartition(ME0DetId id) const;
37 
38  const ME0EtaPartition* etaPartition(int isl) const;
39 
41  const std::vector<const ME0EtaPartition*>& etaPartitions() const;
42 
44  int nEtaPartitions() const;
45 
46 private:
48 
49  // vector of eta partitions for a layer
50  std::vector<const ME0EtaPartition*> etaPartitions_;
51 };
52 #endif
ME0Layer::add
void add(const ME0EtaPartition *roll)
Add EtaPartition to the layer which takes ownership.
Definition: ME0Layer.cc:15
GeomDetEnumerators::SubDetector
SubDetector
Definition: GeomDetEnumerators.h:10
ME0Layer::etaPartitions
const std::vector< const ME0EtaPartition * > & etaPartitions() const
Return the eta partitions.
Definition: ME0Layer.cc:23
ME0Layer::components
std::vector< const GeomDet * > components() const override
Return the rolls in the layer.
Definition: ME0Layer.cc:17
GeomDet
Definition: GeomDet.h:27
ME0Layer::~ME0Layer
~ME0Layer() override
Destructor.
Definition: ME0Layer.cc:9
ME0DetId.h
ME0Layer::component
const GeomDet * component(DetId id) const override
Return the sub-component (roll) with a given id in this layer.
Definition: ME0Layer.cc:21
ME0Layer::id
ME0DetId id() const
Return the ME0DetId of this layer.
Definition: ME0Layer.cc:11
ReferenceCountingPointer
Definition: ReferenceCounted.h:60
ME0Layer::subDetector
SubDetector subDetector() const override
Which subdetector.
Definition: ME0Layer.h:21
ME0Layer::etaPartition
const ME0EtaPartition * etaPartition(ME0DetId id) const
Return the eta partition corresponding to the given id.
Definition: ME0Layer.cc:27
DetId
Definition: DetId.h:17
ME0Layer::detId_
ME0DetId detId_
Definition: ME0Layer.h:47
ME0Layer
Definition: ME0Layer.h:9
ME0DetId
Definition: ME0DetId.h:16
ME0Layer::nEtaPartitions
int nEtaPartitions() const
Retunr numbers of eta partitions.
Definition: ME0Layer.cc:25
ME0Layer::etaPartitions_
std::vector< const ME0EtaPartition * > etaPartitions_
Definition: ME0Layer.h:50
GeomDet.h
ME0Layer::operator==
bool operator==(const ME0Layer &ch) const
equal if the id is the same
Definition: ME0Layer.cc:13
GeomDetEnumerators::ME0
Definition: GeomDetEnumerators.h:22
ME0Layer::ME0Layer
ME0Layer(ME0DetId id, const ReferenceCountingPointer< BoundPlane > &plane)
Constructor.
Definition: ME0Layer.cc:5
ME0EtaPartition
Definition: ME0EtaPartition.h:12