CMS 3D CMS Logo

PixelRodBuilder Class Reference

A concrete builder for PixelRod. More...

#include <RecoTracker/TkDetLayers/interface/PixelRodBuilder.h>

List of all members.

Public Member Functions

PixelRodbuild (const GeometricDet *aRod, const TrackerGeometry *theGeomDetGeometry)
 PixelRodBuilder ()


Detailed Description

A concrete builder for PixelRod.

Definition at line 14 of file PixelRodBuilder.h.


Constructor & Destructor Documentation

PixelRodBuilder::PixelRodBuilder (  )  [inline]

Definition at line 16 of file PixelRodBuilder.h.

00016 {};


Member Function Documentation

PixelRod * PixelRodBuilder::build ( const GeometricDet aRod,
const TrackerGeometry theGeomDetGeometry 
)

Definition at line 7 of file PixelRodBuilder.cc.

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

Referenced by PixelBarrelLayerBuilder::build().

00009 {
00010   vector<const GeometricDet*> allGeometricDets = aRod->components();  
00011 
00012   vector<const GeomDet*> theGeomDets;
00013   for(vector<const GeometricDet*>::iterator it=allGeometricDets.begin();
00014         it!=allGeometricDets.end();it++){
00015     const GeomDet* theGeomDet = theGeomDetGeometry->idToDet( (*it)->geographicalID() );
00016     theGeomDets.push_back(theGeomDet);
00017   }
00018   
00019   return new PixelRod(theGeomDets);
00020 }


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:30:03 2009 for CMSSW by  doxygen 1.5.4