CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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();
10  it!=detsInRing.end();it++){
11 
12  const GeomDet* theGeomDet = theGeomDetGeometry->idToDet( (*it)->geographicalID() );
13  theGeomDets.push_back(theGeomDet);
14  }
15 
16  return new TIBRing(theGeomDets);
17 }
TIBRing * build(const std::vector< const GeometricDet * > &detsInRing, const TrackerGeometry *theGeomDetGeometry) __attribute__((cold))
virtual const TrackerGeomDet * idToDet(DetId) const