CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_3/src/RecoTracker/TkDetLayers/src/PixelRodBuilder.cc

Go to the documentation of this file.
00001 #include "PixelRodBuilder.h"
00002 
00003 using namespace edm;
00004 using namespace std;
00005 
00006 
00007 PixelRod* PixelRodBuilder::build(const GeometricDet* aRod,
00008                                  const TrackerGeometry* theGeomDetGeometry)
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 }