CMS 3D CMS Logo

TIDLayerBuilder.cc
Go to the documentation of this file.
1 #include "TIDLayerBuilder.h"
2 #include "TIDRingBuilder.h"
3 
4 using namespace edm;
5 using namespace std;
6 
7 TIDLayer* TIDLayerBuilder::build(const GeometricDet* aTIDLayer, const TrackerGeometry* theGeomDetGeometry) {
8  vector<const GeometricDet*> theGeometricRings = aTIDLayer->components();
9  //edm::LogInfo(TkDetLayers) << "theGeometricRings.size(): " << theGeometricRings.size() ;
10 
11  TIDRingBuilder myBuilder;
12  vector<const TIDRing*> theTIDRings;
13 
14  for (vector<const GeometricDet*>::const_iterator it = theGeometricRings.begin(); it != theGeometricRings.end();
15  it++) {
16  theTIDRings.push_back(myBuilder.build(*it, theGeomDetGeometry));
17  }
18 
19  return new TIDLayer(theTIDRings);
20 }
TIDLayer * build(const GeometricDet *aTIDLayer, const TrackerGeometry *theGeomDetGeometry) __attribute__((cold))
ConstGeometricDetContainer & components()
Definition: GeometricDet.h:152
TIDRing * build(const GeometricDet *aTIDRing, const TrackerGeometry *theGeomDetGeometry) __attribute__((cold))
HLT enums.