CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 ( )
inline

Definition at line 16 of file TIBRingBuilder.h.

16 {};

Member Function Documentation

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

Definition at line 6 of file TIBRingBuilder.cc.

References TrackerGeometry::idToDet().

Referenced by TIBLayerBuilder::build().

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 }
const TrackerGeomDet * idToDet(DetId) const override