CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DTChamber.h
Go to the documentation of this file.
1 #ifndef DTGeometry_DTChamber_h
2 #define DTGeometry_DTChamber_h
3 
22 
23 class DTSuperLayer;
24 class DTLayer;
25 
26 class DTChamber : public GeomDet {
27 
28  public:
31 
33  virtual ~DTChamber();
34 
36  DTChamberId id() const;
37 
38  // Which subdetector
40 
42  bool operator==(const DTChamber& ch) const;
43 
45  void add(DTSuperLayer* sl);
46 
48  virtual std::vector< const GeomDet*> components() const;
49 
51  virtual const GeomDet* component(DetId id) const;
52 
54  const std::vector< const DTSuperLayer*>& superLayers() const;
55 
57  const DTSuperLayer* superLayer(DTSuperLayerId id) const;
58 
61  const DTSuperLayer* superLayer(int isl) const;
62 
64  const DTLayer* layer(DTLayerId id) const;
65 
66  private:
67 
69 
70  // The chamber owns its SL
71  std::vector<const DTSuperLayer*> theSLs;
72 
73 };
74 #endif
DTChamber(DTChamberId id, const ReferenceCountingPointer< BoundPlane > &plane)
Constructor.
Definition: DTChamber.cc:21
virtual std::vector< const GeomDet * > components() const
Return the superlayers in the chamber.
Definition: DTChamber.cc:47
const DTLayer * layer(DTLayerId id) const
Return the layer corresponding to the given id.
Definition: DTChamber.cc:82
virtual ~DTChamber()
Destructor.
Definition: DTChamber.cc:28
virtual SubDetector subDetector() const
Which subdetector.
Definition: DTChamber.h:39
bool operator==(const DTChamber &ch) const
equal if the id is the same
Definition: DTChamber.cc:39
const std::vector< const DTSuperLayer * > & superLayers() const
Return the superlayers in the chamber.
Definition: DTChamber.cc:62
DTChamberId id() const
Return the DTChamberId of this chamber.
Definition: DTChamber.cc:35
Definition: DetId.h:20
DTChamberId theId
Definition: DTChamber.h:68
std::vector< const DTSuperLayer * > theSLs
Definition: DTChamber.h:71
void add(DTSuperLayer *sl)
Add SL to the chamber which takes ownership.
Definition: DTChamber.cc:43
virtual const GeomDet * component(DetId id) const
Return the sub-component (SL or layer) with a given id in this chamber.
Definition: DTChamber.cc:52
const DTSuperLayer * superLayer(DTSuperLayerId id) const
Return the superlayer corresponding to the given id.
Definition: DTChamber.cc:67