File indexing completed on 2023-03-17 11:22:51
0001 #include "PixelRodBuilder.h"
0002
0003 using namespace edm;
0004 using namespace std;
0005
0006 PixelRod* PixelRodBuilder::build(const GeometricDet* aRod, const TrackerGeometry* theGeomDetGeometry) {
0007 vector<const GeometricDet*> allGeometricDets = aRod->components();
0008
0009 vector<const GeomDet*> theGeomDets;
0010 for (vector<const GeometricDet*>::iterator it = allGeometricDets.begin(); it != allGeometricDets.end(); it++) {
0011 const GeomDet* theGeomDet = theGeomDetGeometry->idToDet((*it)->geographicalId());
0012 theGeomDets.push_back(theGeomDet);
0013 }
0014
0015 return new PixelRod(theGeomDets);
0016 }