CMS 3D CMS Logo

List of all members | Public Member Functions
TIDLayerBuilder Class Reference

#include <TIDLayerBuilder.h>

Public Member Functions

TIDLayerbuild (const GeometricDet *aTIDLayer, const TrackerGeometry *theGeomDetGeometry) __attribute__((cold))
 
 TIDLayerBuilder ()
 

Detailed Description

A concrete builder for TIDLayer

Definition at line 15 of file TIDLayerBuilder.h.

Constructor & Destructor Documentation

TIDLayerBuilder::TIDLayerBuilder ( )
inline

Definition at line 17 of file TIDLayerBuilder.h.

References build().

17 {};

Member Function Documentation

TIDLayer * TIDLayerBuilder::build ( const GeometricDet aTIDLayer,
const TrackerGeometry theGeomDetGeometry 
)

Definition at line 7 of file TIDLayerBuilder.cc.

References TIDRingBuilder::build(), and GeometricDet::components().

Referenced by GeometricSearchTrackerBuilder::build(), and TIDLayerBuilder().

9 {
10  vector<const GeometricDet*> theGeometricRings = aTIDLayer->components();
11  //edm::LogInfo(TkDetLayers) << "theGeometricRings.size(): " << theGeometricRings.size() ;
12 
13  TIDRingBuilder myBuilder;
14  vector<const TIDRing*> theTIDRings;
15 
16  for(vector<const GeometricDet*>::const_iterator it=theGeometricRings.begin();
17  it!=theGeometricRings.end();it++){
18  theTIDRings.push_back(myBuilder.build( *it,theGeomDetGeometry));
19  }
20 
21  return new TIDLayer(theTIDRings);
22 }
ConstGeometricDetContainer & components()
Definition: GeometricDet.h:176
TIDRing * build(const GeometricDet *aTIDRing, const TrackerGeometry *theGeomDetGeometry) __attribute__((cold))