CMS 3D CMS Logo

PixelRodBuilder.cc

Go to the documentation of this file.
00001 #include "RecoTracker/TkDetLayers/interface/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 }

Generated on Tue Jun 9 17:45:47 2009 for CMSSW by  doxygen 1.5.4