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() );
30 if( fabs( (*it)->positionBounds().z() ) < fabs(meanZ))
31 innerGeomDets.push_back(theGeomDet);
33 if( fabs( (*it)->positionBounds().z() ) > fabs(meanZ))
34 outerGeomDets.push_back(theGeomDet);
40 return new TIDRing(innerGeomDets,outerGeomDets);
TIDRing * build(const GeometricDet *aTIDRing, const TrackerGeometry *theGeomDetGeometry)
virtual const GeomDet * idToDet(DetId) const
GeometricDetContainer & components()