10 vector<const GeometricDet*> theGeometricDetPetals = aTECLayer->
components();
11 vector<const TECPetal*> theInnerPetals;
12 vector<const TECPetal*> theOuterPetals;
16 double meanZ = ( theGeometricDetPetals.front()->positionBounds().z() +
17 theGeometricDetPetals.back()->positionBounds().z() )/2;
22 for(vector<const GeometricDet*>::const_iterator it=theGeometricDetPetals.begin();
23 it!=theGeometricDetPetals.end();it++){
25 if( fabs((*it)->positionBounds().z()) < fabs(meanZ) )
26 theInnerPetals.push_back(myPetalBuilder.
build(*it,theGeomDetGeometry));
28 if( fabs((*it)->positionBounds().z()) > fabs(meanZ) )
29 theOuterPetals.push_back(myPetalBuilder.
build(*it,theGeomDetGeometry));
32 return new TECLayer(theInnerPetals,theOuterPetals);
TECLayer * build(const GeometricDet *aTECLayer, const TrackerGeometry *theGeomDetGeometry) __attribute__((cold))
ConstGeometricDetContainer & components()
TECPetal * build(const GeometricDet *aTECPetal, const TrackerGeometry *theGeomDetGeometry) __attribute__((cold))