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 }
TrackerGeometry::idToDet
const TrackerGeomDet * idToDet(DetId) const override
Definition: TrackerGeometry.cc:193
GeomDet
Definition: GeomDet.h:27
PixelRodBuilder::build
PixelRod * build(const GeometricDet *aRod, const TrackerGeometry *theGeomDetGeometry) __attribute__((cold))
Definition: PixelRodBuilder.cc:6
edm
HLT enums.
Definition: AlignableModifier.h:19
GeometricDet::components
ConstGeometricDetContainer & components()
Definition: GeometricDet.h:149
GeometricDet
Definition: GeometricDet.h:31
PixelRod
Definition: PixelRod.h:11
PixelRodBuilder.h
std
Definition: JetResolutionObject.h:76
TrackerGeometry
Definition: TrackerGeometry.h:14