CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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,
8  const TrackerGeometry* theGeomDetGeometry)
9 {
10  vector<const GeometricDet*> theGeometricRings = aTIDLayer->components();
11  //edm::LogInfo(TkDetLayers) << "theGeometricRings.size(): " << theGeometricRings.size() ;
12 
13  TIDRingBuilder myBuilder;
14  vector<const TIDRing*> theTIDRings;
15 
16  for(vector<const GeometricDet*>::const_iterator it=theGeometricRings.begin();
17  it!=theGeometricRings.end();it++){
18  theTIDRings.push_back(myBuilder.build( *it,theGeomDetGeometry));
19  }
20 
21  return new TIDLayer(theTIDRings);
22 }
TIDRing * build(const GeometricDet *aTIDRing, const TrackerGeometry *theGeomDetGeometry)
GeometricDetContainer & components()
Definition: GeometricDet.h:163
TIDLayer * build(const GeometricDet *aTIDLayer, const TrackerGeometry *theGeomDetGeometry)