CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
PixelRodBuilder.cc
Go to the documentation of this file.
1 #include "PixelRodBuilder.h"
2 
3 using namespace edm;
4 using namespace std;
5 
6 
7 PixelRod* PixelRodBuilder::build(const GeometricDet* aRod,
8  const TrackerGeometry* theGeomDetGeometry)
9 {
10  vector<const GeometricDet*> allGeometricDets = aRod->components();
11 
12  vector<const GeomDet*> theGeomDets;
13  for(vector<const GeometricDet*>::iterator it=allGeometricDets.begin();
14  it!=allGeometricDets.end();it++){
15  const GeomDet* theGeomDet = theGeomDetGeometry->idToDet( (*it)->geographicalID() );
16  theGeomDets.push_back(theGeomDet);
17  }
18 
19  return new PixelRod(theGeomDets);
20 }
virtual const GeomDet * idToDet(DetId) const
GeometricDetContainer & components()
Definition: GeometricDet.h:163
PixelRod * build(const GeometricDet *aRod, const TrackerGeometry *theGeomDetGeometry)