11 vector<const GeometricDet*> theGeometricWedges = aTECPetal->
components();
14 vector<const TECWedge*> theInnerWedges;
15 vector<const TECWedge*> theOuterWedges;
17 double meanZ = ( theGeometricWedges[0]->positionBounds().z() +
18 theGeometricWedges[1]->positionBounds().z() )/2;
23 for(vector<const GeometricDet*>::const_iterator it=theGeometricWedges.begin();
24 it!=theGeometricWedges.end();it++){
25 if( fabs((*it)->positionBounds().z()) < fabs(meanZ) )
26 theInnerWedges.push_back(myWedgeBuilder.
build(*it,theGeomDetGeometry));
28 if( fabs((*it)->positionBounds().z()) > fabs(meanZ) )
29 theOuterWedges.push_back(myWedgeBuilder.
build(*it,theGeomDetGeometry));
35 return new CompositeTECPetal(theInnerWedges,theOuterWedges);
TECWedge * build(const GeometricDet *aTECWedge, const TrackerGeometry *theGeomDetGeometry)
TECPetal * build(const GeometricDet *aTECPetal, const TrackerGeometry *theGeomDetGeometry)
GeometricDetContainer & components()