29 for (std::vector<const DTSuperLayer*>::const_iterator isl=
theSLs.begin();
30 isl!=
theSLs.end(); ++isl)
delete (*isl);
48 return std::vector<const GeomDet*>(
theSLs.begin(),
theSLs.end());
68 if (
id.chamberId()!=
theId)
return 0;
74 for (std::vector<const DTSuperLayer*>::const_iterator
i =
theSLs.begin();
76 if ((*i)->id().superLayer()==isl)
return (*
i);
DTChamber(DTChamberId id, const ReferenceCountingPointer< BoundPlane > &plane)
Constructor.
virtual std::vector< const GeomDet * > components() const
Return the superlayers in the chamber.
const DTLayer * layer(DTLayerId id) const
Return the layer corresponding to the given id.
virtual ~DTChamber()
Destructor.
int layer() const
Return the layer number.
bool operator==(const DTChamber &ch) const
equal if the id is the same
const std::vector< const DTSuperLayer * > & superLayers() const
Return the superlayers in the chamber.
DTChamberId id() const
Return the DTChamberId of this chamber.
std::vector< const DTSuperLayer * > theSLs
void add(DTSuperLayer *sl)
Add SL to the chamber which takes ownership.
virtual const GeomDet * component(DetId id) const
Return the sub-component (SL or layer) with a given id in this chamber.
const DTSuperLayer * superLayer(DTSuperLayerId id) const
Return the superlayer corresponding to the given id.