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);