CMS 3D CMS Logo

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

#include <PixelBladeBuilder.h>

Public Member Functions

PixelBlade * build (const GeometricDet *geometricDetFrontPanel, const GeometricDet *geometricDetBackPanel, const TrackerGeometry *theGeomDetGeometry) __attribute__((cold))
 
 PixelBladeBuilder ()
 

Detailed Description

A concrete builder for PixelBlade

Definition at line 15 of file PixelBladeBuilder.h.

Constructor & Destructor Documentation

PixelBladeBuilder::PixelBladeBuilder ( )
inline

Definition at line 17 of file PixelBladeBuilder.h.

17 {};

Member Function Documentation

PixelBlade * PixelBladeBuilder::build ( const GeometricDet geometricDetFrontPanel,
const GeometricDet geometricDetBackPanel,
const TrackerGeometry theGeomDetGeometry 
)

Definition at line 10 of file PixelBladeBuilder.cc.

References GeometricDet::components(), and TrackerGeometry::idToDet().

Referenced by PixelForwardLayerBuilder::build().

13 {
14  vector<const GeometricDet*> frontGeometricDets = geometricDetFrontPanel->components();
15  vector<const GeometricDet*> backGeometricDets = geometricDetBackPanel->components();
16 
17  vector<const GeomDet*> theFrontGeomDets;
18  vector<const GeomDet*> theBackGeomDets;
19 
20  for(vector<const GeometricDet*>::iterator it=frontGeometricDets.begin();
21  it!=frontGeometricDets.end();it++){
22  const GeomDet* theGeomDet = theGeomDetGeometry->idToDet( (*it)->geographicalID() );
23  theFrontGeomDets.push_back(theGeomDet);
24  }
25 
26  for(vector<const GeometricDet*>::iterator it=backGeometricDets.begin();
27  it!=backGeometricDets.end();it++){
28  const GeomDet* theGeomDet = theGeomDetGeometry->idToDet( (*it)->geographicalID() );
29  theBackGeomDets.push_back(theGeomDet);
30  }
31 
32  //edm::LogInfo(TkDetLayers) << "FrontGeomDet.size(): " << theFrontGeomDets.size() ;
33  //edm::LogInfo(TkDetLayers) << "BackGeomDet.size(): " << theBackGeomDets.size() ;
34 
35  return new PixelBlade(theFrontGeomDets,theBackGeomDets);
36 }
ConstGeometricDetContainer & components()
Definition: GeometricDet.h:169
virtual const TrackerGeomDet * idToDet(DetId) const