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.
3 #include "PixelBladeBuilder.h"
4 
5 using namespace edm;
6 using namespace std;
7 
9  const TrackerGeometry* theGeomDetGeometry){
10  vector<const GeometricDet*> theGeometricPanels = aPixelForwardLayer->components();
11  int panelsSize = theGeometricPanels.size();
12 
13  /*
14  for(vector<const GeometricDet*>::const_iterator it= theGeometricPanels.begin();
15  it!=theGeometricPanels.end();it++){
16 
17  edm::LogInfo(TkDetLayers) << "panel.phi(): " << (*it)->positionBounds().phi() << " , "
18  << "panel.z(): " << (*it)->positionBounds().z() << " , "
19  << "comp.size(): " << (*it)->components().size() ;
20  }
21  */
22 
23  //edm::LogInfo(TkDetLayers) << "pixelFwdLayer.panels().size(): " << panelsSize ;
24 
25  vector<const PixelBlade*> theBlades;
26  PixelBladeBuilder myBladeBuilder;
27 
28  for(int i=0; i< (panelsSize/2); i++){
29  theBlades.push_back( myBladeBuilder.build( theGeometricPanels[i],
30  theGeometricPanels[i+(panelsSize/2)],
31  theGeomDetGeometry ) );
32  }
33 
34  if ( aPixelForwardLayer->type()==GeometricDet::PixelEndCapPhase1 )
35  return new PixelForwardLayerPhase1(theBlades);
36  return new PixelForwardLayer(theBlades);
37 }
int i
Definition: DBlmapReader.cc:9
PixelBlade * build(const GeometricDet *geometricDetFrontPanel, const GeometricDet *geometricDetBackPanel, const TrackerGeometry *theGeomDetGeometry) __attribute__((cold))
ConstGeometricDetContainer & components()
Definition: GeometricDet.h:169
ForwardDetLayer * build(const GeometricDet *aPixelForwardLayer, const TrackerGeometry *theGeomDetGeometry) __attribute__((cold))
GeometricEnumType type() const
Definition: GeometricDet.h:135