#include <PixelRodBuilder.h>
Public Member Functions | |
PixelRod * | build (const GeometricDet *aRod, const TrackerGeometry *theGeomDetGeometry) |
PixelRodBuilder () |
A concrete builder for PixelRod
Definition at line 15 of file PixelRodBuilder.h.
PixelRodBuilder::PixelRodBuilder | ( | ) | [inline] |
Definition at line 17 of file PixelRodBuilder.h.
{};
PixelRod * PixelRodBuilder::build | ( | const GeometricDet * | aRod, |
const TrackerGeometry * | theGeomDetGeometry | ||
) |
Definition at line 7 of file PixelRodBuilder.cc.
References GeometricDet::components(), and TrackerGeometry::idToDet().
Referenced by PixelBarrelLayerBuilder::build().
{ vector<const GeometricDet*> allGeometricDets = aRod->components(); vector<const GeomDet*> theGeomDets; for(vector<const GeometricDet*>::iterator it=allGeometricDets.begin(); it!=allGeometricDets.end();it++){ const GeomDet* theGeomDet = theGeomDetGeometry->idToDet( (*it)->geographicalID() ); theGeomDets.push_back(theGeomDet); } return new PixelRod(theGeomDets); }