9 vector<const GeometricDet*> theGeometricDets = aTIDRing->
components();
13 vector<const GeomDet*> innerGeomDets;
14 vector<const GeomDet*> outerGeomDets;
18 for(vector<const GeometricDet*>::const_iterator it=theGeometricDets.begin();
19 it!=theGeometricDets.end();it++){
20 meanZ = meanZ + (*it)->positionBounds().z();
22 meanZ = meanZ/theGeometricDets.size();
25 for(vector<const GeometricDet*>::const_iterator it=theGeometricDets.begin();
26 it!=theGeometricDets.end();it++){
28 const GeomDet* theGeomDet = theGeomDetGeometry->
idToDet( (*it)->geographicalID() );
31 innerGeomDets.push_back(theGeomDet);
34 outerGeomDets.push_back(theGeomDet);
40 return new TIDRing(innerGeomDets,outerGeomDets);
ConstGeometricDetContainer & components()
Abs< T >::type abs(const T &t)
TIDRing * build(const GeometricDet *aTIDRing, const TrackerGeometry *theGeomDetGeometry) __attribute__((cold))
const TrackerGeomDet * idToDet(DetId) const override