CMS 3D CMS Logo

Public Member Functions

PixelRodBuilder Class Reference

#include <PixelRodBuilder.h>

List of all members.

Public Member Functions

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

Detailed Description

A concrete builder for PixelRod

Definition at line 15 of file PixelRodBuilder.h.


Constructor & Destructor Documentation

PixelRodBuilder::PixelRodBuilder ( ) [inline]

Definition at line 17 of file PixelRodBuilder.h.

{};

Member Function Documentation

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

Definition at line 7 of file PixelRodBuilder.cc.

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

Referenced by PixelBarrelLayerBuilder::build().

{
  vector<const GeometricDet*> allGeometricDets = aRod->components();  

  vector<const GeomDet*> theGeomDets;
  for(vector<const GeometricDet*>::iterator it=allGeometricDets.begin();
        it!=allGeometricDets.end();it++){
    const GeomDet* theGeomDet = theGeomDetGeometry->idToDet( (*it)->geographicalID() );
    theGeomDets.push_back(theGeomDet);
  }
  
  return new PixelRod(theGeomDets);
}