CMS 3D CMS Logo

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 public:
23 
25  ~GEMSuperChamber() override;
26 
28  GEMDetId id() const;
29 
31  const std::vector<GEMDetId>& ids() const;
32 
33  // Which subdetector
34  SubDetector subDetector() const override { return GeomDetEnumerators::GEM; }
35 
37  bool operator==(const GEMSuperChamber& sch) const;
38 
40  void add(const GEMChamber* ch);
41 
43  std::vector<const GeomDet*> components() const override;
44 
46  const GeomDet* component(DetId id) const override;
47 
49  const GEMChamber* chamber(GEMDetId id) const;
50 
51  const GEMChamber* chamber(int layer) const;
52 
54  const std::vector<const GEMChamber*>& chambers() const;
55 
57  int nChambers() const;
58 
59  float computeDeltaPhi(const LocalPoint& position, const LocalVector& direction) const;
60 
61 private:
63 
64  // vector of chambers for a super chamber
65  std::vector<const GEMChamber*> chambers_;
66 };
67 #endif
Vector3DBase< float, LocalTag >
GeomDet::position
const Surface::PositionType & position() const
The position (origin of the R.F.)
Definition: GeomDet.h:43
GEMSuperChamber::detId_
GEMDetId detId_
Definition: GEMSuperChamber.h:62
GeomDetEnumerators::SubDetector
SubDetector
Definition: GeomDetEnumerators.h:10
GEMSuperChamber::add
void add(const GEMChamber *ch)
Add chamber to the super chamber which takes ownership.
Definition: GEMSuperChamber.cc:15
GEMSuperChamber::chambers
const std::vector< const GEMChamber * > & chambers() const
Return the chambers in the super chamber.
Definition: GEMSuperChamber.cc:23
GeomDet
Definition: GeomDet.h:27
GEMSuperChamber
Definition: GEMSuperChamber.h:19
GEMSuperChamber::ids
const std::vector< GEMDetId > & ids() const
Return the vector of GEMDetIds in this super chamber.
GEMSuperChamber::chamber
const GEMChamber * chamber(GEMDetId id) const
Return the chamber corresponding to the given id.
Definition: GEMSuperChamber.cc:27
GEMSuperChamber::nChambers
int nChambers() const
Return numbers of chambers.
Definition: GEMSuperChamber.cc:25
ReferenceCountingPointer
Definition: ReferenceCounted.h:60
GEMSuperChamber::computeDeltaPhi
float computeDeltaPhi(const LocalPoint &position, const LocalVector &direction) const
Definition: GEMSuperChamber.cc:41
DetId
Definition: DetId.h:17
GEMSuperChamber::components
std::vector< const GeomDet * > components() const override
Return the chambers in the super chamber.
Definition: GEMSuperChamber.cc:17
GEMSuperChamber::GEMSuperChamber
GEMSuperChamber(GEMDetId id, const ReferenceCountingPointer< BoundPlane > &plane)
constructor
Definition: GEMSuperChamber.cc:4
Point3DBase< float, LocalTag >
GEMSuperChamber::chambers_
std::vector< const GEMChamber * > chambers_
Definition: GEMSuperChamber.h:65
GEMSuperChamber::~GEMSuperChamber
~GEMSuperChamber() override
destructor
Definition: GEMSuperChamber.cc:9
GEMSuperChamber::component
const GeomDet * component(DetId id) const override
Return the sub-component (chamber) with a given id in this super chamber.
Definition: GEMSuperChamber.cc:21
GEMSuperChamber::operator==
bool operator==(const GEMSuperChamber &sch) const
equal if the id is the same
Definition: GEMSuperChamber.cc:13
GEMDetId
Definition: GEMDetId.h:18
GEMChamber
Definition: GEMChamber.h:19
GeomDet.h
GEMDetId.h
GeomDetEnumerators::GEM
Definition: GeomDetEnumerators.h:21
GEMSuperChamber::subDetector
SubDetector subDetector() const override
Which subdetector.
Definition: GEMSuperChamber.h:34
GEMSuperChamber::id
GEMDetId id() const
Return the GEMDetId of this super chamber.
Definition: GEMSuperChamber.cc:11