CMS 3D CMS Logo

List of all members | Public Member Functions
PixelRodBuilder Class Reference

#include <PixelRodBuilder.h>

Public Member Functions

PixelRodbuild (const GeometricDet *aRod, const TrackerGeometry *theGeomDetGeometry) __attribute__((cold))
 
 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.

References build().

17 {};

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(), and PixelRodBuilder().

9 {
10  vector<const GeometricDet*> allGeometricDets = aRod->components();
11 
12  vector<const GeomDet*> theGeomDets;
13  for(vector<const GeometricDet*>::iterator it=allGeometricDets.begin();
14  it!=allGeometricDets.end();it++){
15  const GeomDet* theGeomDet = theGeomDetGeometry->idToDet( (*it)->geographicalID() );
16  theGeomDets.push_back(theGeomDet);
17  }
18 
19  return new PixelRod(theGeomDets);
20 }
ConstGeometricDetContainer & components()
Definition: GeometricDet.h:176
const TrackerGeomDet * idToDet(DetId) const