CMS 3D CMS Logo

List of all members | Public Member Functions
Phase2EndcapLayerBuilder Class Reference

#include <Phase2EndcapLayerBuilder.h>

Public Member Functions

Phase2EndcapLayerbuild (const GeometricDet *aPhase2EndcapLayer, const TrackerGeometry *theGeomDetGeometry, const bool isOuterTracker) __attribute__((cold))
 
 Phase2EndcapLayerBuilder ()
 

Detailed Description

A concrete builder for Phase2EndcapLayer

Definition at line 15 of file Phase2EndcapLayerBuilder.h.

Constructor & Destructor Documentation

Phase2EndcapLayerBuilder::Phase2EndcapLayerBuilder ( )
inline

Definition at line 17 of file Phase2EndcapLayerBuilder.h.

References build().

17 {};

Member Function Documentation

Phase2EndcapLayer * Phase2EndcapLayerBuilder::build ( const GeometricDet aPhase2EndcapLayer,
const TrackerGeometry theGeomDetGeometry,
const bool  isOuterTracker 
)

Definition at line 7 of file Phase2EndcapLayerBuilder.cc.

References Phase2EndcapRingBuilder::build(), GeometricDet::components(), and LogTrace.

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

10 {
11  LogTrace("TkDetLayers") << "Phase2EndcapLayerBuilder::build";
12  vector<const GeometricDet*> theGeometricRings = aPhase2EndcapLayer->components();
13  LogTrace("TkDetLayers") << "theGeometricRings.size(): " << theGeometricRings.size() ;
14 
15  Phase2EndcapRingBuilder myBuilder;
16  vector<const Phase2EndcapRing*> thePhase2EndcapRings;
17 
18  for(vector<const GeometricDet*>::const_iterator it=theGeometricRings.begin();
19  it!=theGeometricRings.end();it++){
20  // if we are in the phaseII OT, it will use the brothers to build pt modules
21  // if we are in the phaseII pixel detector, it will not
22  thePhase2EndcapRings.push_back(myBuilder.build( *it,theGeomDetGeometry,isOuterTracker ));
23  }
24 
25  return new Phase2EndcapLayer(thePhase2EndcapRings,isOuterTracker);
26 }
ConstGeometricDetContainer & components()
Definition: GeometricDet.h:176
Phase2EndcapRing * build(const GeometricDet *aPhase2EndcapRing, const TrackerGeometry *theGeomDetGeometry, const bool useBrothers=true) __attribute__((cold))
#define LogTrace(id)