File indexing completed on 2023-03-17 11:22:52
0001 #include "TIBRingBuilder.h"
0002
0003 using namespace edm;
0004 using namespace std;
0005
0006 TIBRing* TIBRingBuilder::build(const vector<const GeometricDet*>& detsInRing,
0007 const TrackerGeometry* theGeomDetGeometry) {
0008 vector<const GeomDet*> theGeomDets;
0009 for (vector<const GeometricDet*>::const_iterator it = detsInRing.begin(); it != detsInRing.end(); it++) {
0010 const GeomDet* theGeomDet = theGeomDetGeometry->idToDet((*it)->geographicalId());
0011 theGeomDets.push_back(theGeomDet);
0012 }
0013
0014 return new TIBRing(theGeomDets);
0015 }