CMS 3D CMS Logo

TIBRingBuilder.cc
Go to the documentation of this file.
1 #include "TIBRingBuilder.h"
2 
3 using namespace edm;
4 using namespace std;
5 
6 TIBRing* TIBRingBuilder::build(const vector<const GeometricDet*>& detsInRing,
7  const TrackerGeometry* theGeomDetGeometry) {
8  vector<const GeomDet*> theGeomDets;
9  for (vector<const GeometricDet*>::const_iterator it = detsInRing.begin(); it != detsInRing.end(); it++) {
10  const GeomDet* theGeomDet = theGeomDetGeometry->idToDet((*it)->geographicalID());
11  theGeomDets.push_back(theGeomDet);
12  }
13 
14  return new TIBRing(theGeomDets);
15 }
TrackerGeometry::idToDet
const TrackerGeomDet * idToDet(DetId) const override
Definition: TrackerGeometry.cc:193
GeomDet
Definition: GeomDet.h:27
TIBRing
Definition: TIBRing.h:12
edm
HLT enums.
Definition: AlignableModifier.h:19
TIBRingBuilder.h
std
Definition: JetResolutionObject.h:76
TIBRingBuilder::build
TIBRing * build(const std::vector< const GeometricDet * > &detsInRing, const TrackerGeometry *theGeomDetGeometry) __attribute__((cold))
Definition: TIBRingBuilder.cc:6
TrackerGeometry
Definition: TrackerGeometry.h:14