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 15 of file TIBRingBuilder.h.

Constructor & Destructor Documentation

TIBRingBuilder::TIBRingBuilder ( )
inline

Definition at line 17 of file TIBRingBuilder.h.

References build().

17 {};

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

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