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 useBrothers) __attribute__((cold))
 
 Phase2EndcapLayerBuilder ()
 

Detailed Description

A concrete builder for Phase2EndcapLayer

Definition at line 14 of file Phase2EndcapLayerBuilder.h.

Constructor & Destructor Documentation

◆ Phase2EndcapLayerBuilder()

Phase2EndcapLayerBuilder::Phase2EndcapLayerBuilder ( )
inline

Definition at line 16 of file Phase2EndcapLayerBuilder.h.

16 {};

Member Function Documentation

◆ build()

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

Definition at line 7 of file Phase2EndcapLayerBuilder.cc.

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

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

Referenced by GeometricSearchTrackerBuilder::build().

Phase2EndcapLayer
Definition: Phase2EndcapLayer.h:15
GeometricDet::components
ConstGeometricDetContainer & components()
Definition: GeometricDet.h:149
Phase2EndcapRingBuilder
Definition: Phase2EndcapRingBuilder.h:14
Phase2EndcapRingBuilder::build
Phase2EndcapRing * build(const GeometricDet *aPhase2EndcapRing, const TrackerGeometry *theGeomDetGeometry, const bool useBrothers=true) __attribute__((cold))
Definition: Phase2EndcapRingBuilder.cc:8
LogTrace
#define LogTrace(id)
Definition: MessageLogger.h:234