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

ForwardDetLayerbuild (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

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

Definition at line 8 of file PixelForwardLayerBuilder.cc.

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

Referenced by GeometricSearchTrackerBuilder::build().

9  {
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)
GeometricDetContainer & components()
Definition: GeometricDet.h:163
GeometricEnumType type() const
Definition: GeometricDet.h:129