CMS 3D CMS Logo

List of all members | Public Member Functions
TIBRingBuilder Class Reference

#include <TIBRingBuilder.h>

Public Member Functions

TIBRingbuild (const std::vector< const GeometricDet * > &detsInRing, const TrackerGeometry *theGeomDetGeometry) __attribute__((cold))
 
 TIBRingBuilder ()
 

Detailed Description

A concrete builder for TIBRing

Definition at line 14 of file TIBRingBuilder.h.

Constructor & Destructor Documentation

◆ TIBRingBuilder()

TIBRingBuilder::TIBRingBuilder ( )
inline

Definition at line 16 of file TIBRingBuilder.h.

16 {};

Member Function Documentation

◆ build()

TIBRing * TIBRingBuilder::build ( const std::vector< const GeometricDet * > &  detsInRing,
const TrackerGeometry theGeomDetGeometry 
)

Definition at line 6 of file TIBRingBuilder.cc.

7  {
8  vector<const GeomDet*> theGeomDets;
9  for (vector<const GeometricDet*>::const_iterator it = detsInRing.begin(); it != detsInRing.end(); it++) {
10  const GeomDet* theGeomDet = theGeomDetGeometry->idToDet((*it)->geographicalId());
11  theGeomDets.push_back(theGeomDet);
12  }
13 
14  return new TIBRing(theGeomDets);
15 }

References TrackerGeometry::idToDet().

Referenced by TIBLayerBuilder::build().

TrackerGeometry::idToDet
const TrackerGeomDet * idToDet(DetId) const override
Definition: TrackerGeometry.cc:193
GeomDet
Definition: GeomDet.h:27
TIBRing
Definition: TIBRing.h:12