CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
PixelForwardLayerBuilder.cc
Go to the documentation of this file.
2 #include "PixelBladeBuilder.h"
3 
4 using namespace edm;
5 using namespace std;
6 
8  const TrackerGeometry* theGeomDetGeometry){
9  vector<const GeometricDet*> theGeometricPanels = aPixelForwardLayer->components();
10  int panelsSize = theGeometricPanels.size();
11 
12  /*
13  for(vector<const GeometricDet*>::const_iterator it= theGeometricPanels.begin();
14  it!=theGeometricPanels.end();it++){
15 
16  edm::LogInfo(TkDetLayers) << "panel.phi(): " << (*it)->positionBounds().phi() << " , "
17  << "panel.z(): " << (*it)->positionBounds().z() << " , "
18  << "comp.size(): " << (*it)->components().size() ;
19  }
20  */
21 
22  //edm::LogInfo(TkDetLayers) << "pixelFwdLayer.panels().size(): " << panelsSize ;
23 
24  vector<const PixelBlade*> theBlades;
25  PixelBladeBuilder myBladeBuilder;
26 
27  for(int i=0; i< (panelsSize/2); i++){
28  theBlades.push_back( myBladeBuilder.build( theGeometricPanels[i],
29  theGeometricPanels[i+(panelsSize/2)],
30  theGeomDetGeometry ) );
31  }
32 
33  return new PixelForwardLayer(theBlades);
34 }
int i
Definition: DBlmapReader.cc:9
PixelForwardLayer * build(const GeometricDet *aPixelForwardLayer, const TrackerGeometry *theGeomDetGeometry)
PixelBlade * build(const GeometricDet *geometricDetFrontPanel, const GeometricDet *geometricDetBackPanel, const TrackerGeometry *theGeomDetGeometry)
GeometricDetContainer & components()
Definition: GeometricDet.h:163