CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions
Phase2OTEndcapLayerBuilder Class Reference

#include <Phase2OTEndcapLayerBuilder.h>

Public Member Functions

Phase2OTEndcapLayerbuild (const GeometricDet *aPhase2OTEndcapLayer, const TrackerGeometry *theGeomDetGeometry) __attribute__((cold))
 
 Phase2OTEndcapLayerBuilder ()
 

Detailed Description

A concrete builder for Phase2OTEndcapLayer

Definition at line 15 of file Phase2OTEndcapLayerBuilder.h.

Constructor & Destructor Documentation

Phase2OTEndcapLayerBuilder::Phase2OTEndcapLayerBuilder ( )
inline

Definition at line 17 of file Phase2OTEndcapLayerBuilder.h.

17 {};

Member Function Documentation

Phase2OTEndcapLayer * Phase2OTEndcapLayerBuilder::build ( const GeometricDet aPhase2OTEndcapLayer,
const TrackerGeometry theGeomDetGeometry 
)

Definition at line 7 of file Phase2OTEndcapLayerBuilder.cc.

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

Referenced by GeometricSearchTrackerBuilder::build().

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