CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 }
const TrackerGeomDet * idToDet(DetId) const override
TIBRing * build(const std::vector< const GeometricDet * > &detsInRing, const TrackerGeometry *theGeomDetGeometry) __attribute__((cold))