CMS 3D CMS Logo

PixelRodBuilder.cc
Go to the documentation of this file.
1 #include "PixelRodBuilder.h"
2 
3 using namespace edm;
4 using namespace std;
5 
6 PixelRod* PixelRodBuilder::build(const GeometricDet* aRod, const TrackerGeometry* theGeomDetGeometry) {
7  vector<const GeometricDet*> allGeometricDets = aRod->components();
8 
9  vector<const GeomDet*> theGeomDets;
10  for (vector<const GeometricDet*>::iterator it = allGeometricDets.begin(); it != allGeometricDets.end(); it++) {
11  const GeomDet* theGeomDet = theGeomDetGeometry->idToDet((*it)->geographicalID());
12  theGeomDets.push_back(theGeomDet);
13  }
14 
15  return new PixelRod(theGeomDets);
16 }
ConstGeometricDetContainer & components()
Definition: GeometricDet.h:139
PixelRod * build(const GeometricDet *aRod, const TrackerGeometry *theGeomDetGeometry) __attribute__((cold))
HLT enums.
const TrackerGeomDet * idToDet(DetId) const override