#include <PixelBarrelLayerBuilder.h>
A concrete builder for PixelBarrelLayer
Definition at line 15 of file PixelBarrelLayerBuilder.h.
PixelBarrelLayerBuilder::PixelBarrelLayerBuilder |
( |
| ) |
|
|
inline |
PixelBarrelLayer * PixelBarrelLayerBuilder::build |
( |
const GeometricDet * |
aPixelBarrelLayer, |
|
|
const TrackerGeometry * |
theGeomDetGeometry |
|
) |
| |
Definition at line 7 of file PixelBarrelLayerBuilder.cc.
References PixelRodBuilder::build(), GeometricDet::components(), and getHLTprescales::index.
Referenced by GeometricSearchTrackerBuilder::build().
13 vector<const GeometricDet*> theGeometricDetRods = aPixelBarrelLayer->
components();
19 vector<const PixelRod*> theInnerRods;
20 vector<const PixelRod*> 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(myPixelRodBuilder.
build(theGeometricDetRods[
index],
32 theGeomDetGeometry) );
34 if(theGeometricDetRods[index]->positionBounds().perp() > meanR)
35 theOuterRods.push_back(myPixelRodBuilder.
build(theGeometricDetRods[index],
36 theGeomDetGeometry) );
40 return new PixelBarrelLayer(theInnerRods,theOuterRods);
GeometricDetContainer & components()
PixelRod * build(const GeometricDet *aRod, const TrackerGeometry *theGeomDetGeometry)