00001 #include "RecoTracker/TkDetLayers/interface/PixelForwardLayerBuilder.h" 00002 #include "RecoTracker/TkDetLayers/interface/PixelBladeBuilder.h" 00003 00004 using namespace edm; 00005 using namespace std; 00006 00007 PixelForwardLayer* PixelForwardLayerBuilder::build(const GeometricDet* aPixelForwardLayer, 00008 const TrackerGeometry* theGeomDetGeometry){ 00009 vector<const GeometricDet*> theGeometricPanels = aPixelForwardLayer->components(); 00010 int panelsSize = theGeometricPanels.size(); 00011 00012 /* 00013 for(vector<const GeometricDet*>::const_iterator it= theGeometricPanels.begin(); 00014 it!=theGeometricPanels.end();it++){ 00015 00016 edm::LogInfo(TkDetLayers) << "panel.phi(): " << (*it)->positionBounds().phi() << " , " 00017 << "panel.z(): " << (*it)->positionBounds().z() << " , " 00018 << "comp.size(): " << (*it)->components().size() ; 00019 } 00020 */ 00021 00022 //edm::LogInfo(TkDetLayers) << "pixelFwdLayer.panels().size(): " << panelsSize ; 00023 00024 vector<const PixelBlade*> theBlades; 00025 PixelBladeBuilder myBladeBuilder; 00026 00027 for(int i=0; i< (panelsSize/2); i++){ 00028 theBlades.push_back( myBladeBuilder.build( theGeometricPanels[i], 00029 theGeometricPanels[i+(panelsSize/2)], 00030 theGeomDetGeometry ) ); 00031 } 00032 00033 return new PixelForwardLayer(theBlades); 00034 }