9 vector<const GeometricDet*> theGeometricDets = aPhase2OTECRing->
components();
13 vector<const GeomDet*> innerGeomDets;
14 vector<const GeomDet*> outerGeomDets;
15 vector<const GeomDet*> innerGeomDetBrothers;
16 vector<const GeomDet*> outerGeomDetBrothers;
20 for(vector<const GeometricDet*>::const_iterator it=theGeometricDets.begin();
21 it!=theGeometricDets.end();it++){
22 meanZ = meanZ + (*it)->positionBounds().z();
24 meanZ = meanZ/theGeometricDets.size();
28 for(vector<const GeometricDet*>::const_iterator it=theGeometricDets.begin();
29 it!=theGeometricDets.end();it++,counter++){
33 const GeomDet* theGeomDet = theGeomDetGeometry->
idToDet( (*it)->geographicalID() );
36 innerGeomDets.push_back(theGeomDet);
39 outerGeomDets.push_back(theGeomDet);
43 const GeomDet* theGeomDet = theGeomDetGeometry->
idToDet( (*it)->geographicalID() );
46 innerGeomDetBrothers.push_back(theGeomDet);
49 outerGeomDetBrothers.push_back(theGeomDet);
56 return new Phase2OTECRing(innerGeomDets,outerGeomDets,innerGeomDetBrothers,outerGeomDetBrothers);
ConstGeometricDetContainer & components()
Phase2OTECRing * build(const GeometricDet *aPhase2OTECRing, const TrackerGeometry *theGeomDetGeometry) __attribute__((cold))
Abs< T >::type abs(const T &t)
static std::atomic< unsigned int > counter
virtual const TrackerGeomDet * idToDet(DetId) const