#include <RecoTracker/TkDetLayers/interface/PixelRodBuilder.h>
Public Member Functions | |
PixelRod * | build (const GeometricDet *aRod, const TrackerGeometry *theGeomDetGeometry) |
PixelRodBuilder () |
Definition at line 14 of file PixelRodBuilder.h.
PixelRodBuilder::PixelRodBuilder | ( | ) | [inline] |
PixelRod * PixelRodBuilder::build | ( | const GeometricDet * | aRod, | |
const TrackerGeometry * | theGeomDetGeometry | |||
) |
Definition at line 7 of file PixelRodBuilder.cc.
References GeometricDet::components(), TrackerGeometry::idToDet(), and it.
Referenced by PixelBarrelLayerBuilder::build().
00009 { 00010 vector<const GeometricDet*> allGeometricDets = aRod->components(); 00011 00012 vector<const GeomDet*> theGeomDets; 00013 for(vector<const GeometricDet*>::iterator it=allGeometricDets.begin(); 00014 it!=allGeometricDets.end();it++){ 00015 const GeomDet* theGeomDet = theGeomDetGeometry->idToDet( (*it)->geographicalID() ); 00016 theGeomDets.push_back(theGeomDet); 00017 } 00018 00019 return new PixelRod(theGeomDets); 00020 }