7 vector<const GeometricDet*> theGeometricDets = aTIDRing->
components();
10 vector<const GeomDet*> innerGeomDets;
11 vector<const GeomDet*> outerGeomDets;
15 for (vector<const GeometricDet*>::const_iterator it = theGeometricDets.begin(); it != theGeometricDets.end(); it++) {
16 meanZ = meanZ + (*it)->positionBounds().z();
18 meanZ = meanZ / theGeometricDets.size();
21 for (vector<const GeometricDet*>::const_iterator it = theGeometricDets.begin(); it != theGeometricDets.end(); it++) {
22 const GeomDet* theGeomDet = theGeomDetGeometry->
idToDet((*it)->geographicalId());
25 innerGeomDets.push_back(theGeomDet);
28 outerGeomDets.push_back(theGeomDet);
34 return new TIDRing(innerGeomDets, outerGeomDets);
ConstGeometricDetContainer & components()
Abs< T >::type abs(const T &t)
const TrackerGeomDet * idToDet(DetId) const override
TIDRing * build(const GeometricDet *aTIDRing, const TrackerGeometry *theGeomDetGeometry) __attribute__((cold))