13 vector<const GeometricDet*> theGeometricDetRods = aPhase2OTBarrelLayer->
components();
19 vector<const Phase2OTBarrelRod*> theInnerRods;
20 vector<const Phase2OTBarrelRod*> theOuterRods;
25 for (
unsigned int index=0;
index!=theGeometricDetRods.size();
index++) meanR+=theGeometricDetRods[
index]->positionBounds().perp();
26 if (theGeometricDetRods.size()!=0)
27 meanR/=(
double) theGeometricDetRods.size();
30 if(theGeometricDetRods[
index]->positionBounds().perp() < meanR)
31 theInnerRods.push_back(myPhase2OTBarrelRodBuilder.
build(theGeometricDetRods[
index],
32 theGeomDetGeometry) );
34 if(theGeometricDetRods[index]->positionBounds().perp() > meanR)
35 theOuterRods.push_back(myPhase2OTBarrelRodBuilder.
build(theGeometricDetRods[index],
36 theGeomDetGeometry) );
TBPLayer Phase2OTBarrelLayer
Phase2OTBarrelRod * build(const GeometricDet *thePhase2OTBarrelRod, const TrackerGeometry *theGeomDetGeometry) __attribute__((cold))
Phase2OTBarrelLayer * build(const GeometricDet *aPhase2OTBarrelLayer, const TrackerGeometry *theGeomDetGeometry) __attribute__((cold))
ConstGeometricDetContainer & components()