19 for (DetContainer::iterator it =
theDets.begin(), ed =
theDets.end(); it != ed; ++it)
delete const_cast<GeomDet*>(*it);
20 for (DetTypeContainer::iterator it =
theDetTypes.begin(), ed =
theDetTypes.end(); it != ed; ++it)
delete const_cast<GeomDetType*>(*it);
47 switch(
id.subdetId()){
67 edm::LogError(
"TrackerGeometry")<<
"ERROR - I was expecting a Tracker Subdetector, I got a "<<
id.subdetId();
131 edm::LogError(
"TrackerGeometry")<<
"Invalid DetID: no GeomDetUnit associated";
142 edm::LogError(
"TrackerGeometry")<<
"Invalid DetID: no GeomDet associated";
std::vector< GeomDetType const * > DetTypeContainer
void addDet(GeomDet const *p)
TrackerGeometry(GeometricDet const *gd=0)
DetIdContainer theDetUnitIds
DetUnitContainer theDetUnits
uint32_t rawId() const
get the raw id
virtual const DetUnitContainer & detUnits() const
Returm a vector of all GeomDetUnit.
void addDetUnit(GeomDetUnit const *p)
virtual const DetIdContainer & detIds() const
Returm a vector of all GeomDet DetIds (including those of GeomDetUnits)
mapIdToDetUnit theMapUnit
const DetContainer & detsTEC() const
DetTypeContainer theDetTypes
virtual ~TrackerGeometry()
void addType(GeomDetType const *p)
virtual const DetTypeContainer & detTypes() const
Return a vector of all det types.
const DetContainer & detsPXB() const
GeometricDet const * trackerDet() const
DetId geographicalId() const
The label of this GeomDet.
virtual const GeomDet * idToDet(DetId) const
const DetContainer & detsTIB() const
void addDetUnitId(DetId p)
virtual const GeomDetUnit * idToDetUnit(DetId) const
Return the pointer to the GeomDetUnit corresponding to a given DetId.
virtual const DetIdContainer & detUnitIds() const
Returm a vector of all GeomDetUnit DetIds.
const DetContainer & detsPXF() const
const DetContainer & detsTOB() const
std::vector< GeomDet const * > DetContainer
std::vector< GeomDetUnit const * > DetUnitContainer
GeometricDet const * theTrackerDet
virtual const DetContainer & dets() const
Returm a vector of all GeomDet (including all GeomDetUnits)
const DetContainer & detsTID() const
std::vector< DetId > DetIdContainer