CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions
PixelForwardLayerBuilder Class Reference

#include <PixelForwardLayerBuilder.h>

Public Member Functions

PixelForwardLayerbuild (const GeometricDet *aPixelForwardLayer, const TrackerGeometry *theGeomDetGeometry)
 
 PixelForwardLayerBuilder ()
 

Detailed Description

A concrete builder for PixelForwardLayer

Definition at line 15 of file PixelForwardLayerBuilder.h.

Constructor & Destructor Documentation

PixelForwardLayerBuilder::PixelForwardLayerBuilder ( )
inline

Definition at line 17 of file PixelForwardLayerBuilder.h.

17 {};

Member Function Documentation

PixelForwardLayer * PixelForwardLayerBuilder::build ( const GeometricDet aPixelForwardLayer,
const TrackerGeometry theGeomDetGeometry 
)

Definition at line 7 of file PixelForwardLayerBuilder.cc.

References PixelBladeBuilder::build(), GeometricDet::components(), and i.

Referenced by GeometricSearchTrackerBuilder::build().

8  {
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
PixelBlade * build(const GeometricDet *geometricDetFrontPanel, const GeometricDet *geometricDetBackPanel, const TrackerGeometry *theGeomDetGeometry)
GeometricDetContainer & components()
Definition: GeometricDet.h:163