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 14 of file PixelRodBuilder.h.

Constructor & Destructor Documentation

◆ PixelRodBuilder()

PixelRodBuilder::PixelRodBuilder ( )
inline

Definition at line 16 of file PixelRodBuilder.h.

16 {};

Member Function Documentation

◆ build()

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

Definition at line 6 of file PixelRodBuilder.cc.

6  {
7  vector<const GeometricDet*> allGeometricDets = aRod->components();
8 
9  vector<const GeomDet*> theGeomDets;
10  for (vector<const GeometricDet*>::iterator it = allGeometricDets.begin(); it != allGeometricDets.end(); it++) {
11  const GeomDet* theGeomDet = theGeomDetGeometry->idToDet((*it)->geographicalId());
12  theGeomDets.push_back(theGeomDet);
13  }
14 
15  return new PixelRod(theGeomDets);
16 }

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

Referenced by PixelBarrelLayerBuilder::build().

TrackerGeometry::idToDet
const TrackerGeomDet * idToDet(DetId) const override
Definition: TrackerGeometry.cc:193
GeomDet
Definition: GeomDet.h:27
GeometricDet::components
ConstGeometricDetContainer & components()
Definition: GeometricDet.h:150
PixelRod
Definition: PixelRod.h:11