26 for (std::vector<const DTSuperLayer*>::const_iterator isl =
theSLs.begin(); isl !=
theSLs.end(); ++isl)
39 return std::vector<const GeomDet*>(
theSLs.begin(),
theSLs.end());
44 if (lId.
layer() == 0) {
60 for (
auto theSL :
theSLs) {
61 if (theSL->id().superLayer() == isl)
bool operator==(const DTChamber &ch) const
equal if the id is the same
DTChamberId id() const
Return the DTChamberId of this chamber.
const GeomDet * component(DetId id) const override
Return the sub-component (SL or layer) with a given id in this chamber.
const DTSuperLayer * superLayer(const DTSuperLayerId &id) const
Return the superlayer corresponding to the given id.
std::vector< const GeomDet * > components() const override
Return the superlayers in the chamber.
const std::vector< const DTSuperLayer * > & superLayers() const
Return the superlayers in the chamber.
std::vector< const DTSuperLayer * > theSLs
~DTChamber() override
Destructor.
int layer() const
Return the layer number.
void add(DTSuperLayer *sl)
Add SL to the chamber which takes ownership.
DTChamber(const DTChamberId &id, const ReferenceCountingPointer< BoundPlane > &plane)
Constructor.
const DTLayer * layer(const DTLayerId &id) const
Return the layer corresponding to the given id.