CMS 3D CMS Logo

GEMStation.h
Go to the documentation of this file.
1 #ifndef Geometry_GEMGeometry_GEMStation_h
2 #define Geometry_GEMGeometry_GEMStation_h
3 
16 
17 class GEMSuperChamber;
18 
19 class GEMStation {
20 public:
22  GEMStation(int region, int station);
23 
25  ~GEMStation();
26 
28  std::vector<GEMDetId> ids() const;
29 
31  bool operator==(const GEMStation& st) const;
32 
34  void add(GEMRing* ring);
35 
37  std::vector<const GeomDet*> components() const;
38 
40  const GeomDet* component(DetId id) const;
41 
43  const GEMSuperChamber* superChamber(GEMDetId id) const;
44 
46  std::vector<const GEMSuperChamber*> superChambers() const;
47 
49  const GEMRing* ring(int ring) const;
50 
52  const std::vector<const GEMRing*>& rings() const;
53 
55  int nRings() const;
56 
58  void setName(std::string name);
59 
61  const std::string getName() const;
62 
64  int region() const;
65 
67  int station() const;
68 
69 private:
70  int region_;
71  int station_;
72 
73  // vector of rings for a station
74  std::vector<const GEMRing*> rings_;
76 };
77 #endif
GEMStation::rings_
std::vector< const GEMRing * > rings_
Definition: GEMStation.h:74
GEMStation::~GEMStation
~GEMStation()
destructor
Definition: GEMStation.cc:9
GeomDet
Definition: GeomDet.h:27
GEMStation::name_
std::string name_
Definition: GEMStation.h:75
GEMStation::setName
void setName(std::string name)
Set the station name.
Definition: GEMStation.cc:66
GEMSuperChamber
Definition: GEMSuperChamber.h:19
GEMStation::operator==
bool operator==(const GEMStation &st) const
equal if the id is the same
Definition: GEMStation.cc:20
GEMStation::GEMStation
GEMStation(int region, int station)
constructor
Definition: GEMStation.cc:7
GEMStation::nRings
int nRings() const
Return numbers of rings for this station.
Definition: GEMStation.cc:64
GEMStation::superChambers
std::vector< const GEMSuperChamber * > superChambers() const
Return the super chambers in the region.
Definition: GEMStation.cc:44
GEMStation::component
const GeomDet * component(DetId id) const
Return the sub-component (super chamber) with a given id in this station.
Definition: GEMStation.cc:33
DetId
Definition: DetId.h:17
GEMRing.h
GEMStation::superChamber
const GEMSuperChamber * superChamber(GEMDetId id) const
Return the chamber corresponding to the given id.
Definition: GEMStation.cc:38
GEMStation
Definition: GEMStation.h:19
GEMStation::rings
const std::vector< const GEMRing * > & rings() const
Return the rings in the station.
Definition: GEMStation.cc:62
GEMStation::station_
int station_
Definition: GEMStation.h:71
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
GEMRing
Definition: GEMRing.h:18
GEMStation::region_
int region_
Definition: GEMStation.h:70
GEMStation::station
int station() const
Get the station.
Definition: GEMStation.cc:72
GEMDetId
Definition: GEMDetId.h:17
GEMStation::components
std::vector< const GeomDet * > components() const
Return the super chambers in the station.
Definition: GEMStation.cc:24
GeomDet.h
GEMDetId.h
GEMStation::add
void add(GEMRing *ring)
Add ring to the station which takes ownership.
Definition: GEMStation.cc:22
GEMStation::getName
const std::string getName() const
Set the station name.
Definition: GEMStation.cc:68
GEMStation::region
int region() const
Get the region.
Definition: GEMStation.cc:70
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
GEMStation::ring
const GEMRing * ring(int ring) const
Get a ring.
Definition: GEMStation.cc:53
GEMStation::ids
std::vector< GEMDetId > ids() const
Return the vector of GEMDetIds in this station.
Definition: GEMStation.cc:11