00001 #include "TIDLayerBuilder.h" 00002 #include "TIDRingBuilder.h" 00003 00004 using namespace edm; 00005 using namespace std; 00006 00007 TIDLayer* TIDLayerBuilder::build(const GeometricDet* aTIDLayer, 00008 const TrackerGeometry* theGeomDetGeometry) 00009 { 00010 vector<const GeometricDet*> theGeometricRings = aTIDLayer->components(); 00011 //edm::LogInfo(TkDetLayers) << "theGeometricRings.size(): " << theGeometricRings.size() ; 00012 00013 TIDRingBuilder myBuilder; 00014 vector<const TIDRing*> theTIDRings; 00015 00016 for(vector<const GeometricDet*>::const_iterator it=theGeometricRings.begin(); 00017 it!=theGeometricRings.end();it++){ 00018 theTIDRings.push_back(myBuilder.build( *it,theGeomDetGeometry)); 00019 } 00020 00021 return new TIDLayer(theTIDRings); 00022 }