CMS 3D CMS Logo

List of all members | Public Member Functions
Phase2EndcapSubDiskBuilder Class Reference

#include <Phase2EndcapSubDiskBuilder.h>

Public Member Functions

Phase2EndcapSubDiskbuild (const GeometricDet *aPhase2EndcapSubDisk, const TrackerGeometry *theGeomDetGeometry) __attribute__((cold))
 
 Phase2EndcapSubDiskBuilder ()
 

Detailed Description

A concrete builder for Phase2EndcapSubDisk

Definition at line 14 of file Phase2EndcapSubDiskBuilder.h.

Constructor & Destructor Documentation

◆ Phase2EndcapSubDiskBuilder()

Phase2EndcapSubDiskBuilder::Phase2EndcapSubDiskBuilder ( )
inline

Definition at line 16 of file Phase2EndcapSubDiskBuilder.h.

16 {};

Member Function Documentation

◆ build()

Phase2EndcapSubDisk * Phase2EndcapSubDiskBuilder::build ( const GeometricDet aPhase2EndcapSubDisk,
const TrackerGeometry theGeomDetGeometry 
)

Definition at line 7 of file Phase2EndcapSubDiskBuilder.cc.

References Phase2EndcapSingleRingBuilder::build(), GeometricDet::components(), ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, and LogTrace.

Referenced by Phase2EndcapLayerDoubleDiskBuilder::build().

8  {
9  LogTrace("TkDetLayers") << "Phase2EndcapSubDiskBuilder::build";
10  vector<const GeometricDet*> theGeometricRings = aPhase2EndcapSubDisk->components();
11  LogTrace("TkDetLayers") << "theGeometricRings.size(): " << theGeometricRings.size();
12 
14  vector<const Phase2EndcapSingleRing*> thePhase2EndcapSingleRings;
15 
16  for (vector<const GeometricDet*>::const_iterator it = theGeometricRings.begin(); it != theGeometricRings.end();
17  it++) {
18  // if we are in the phaseII OT, it will use the brothers to build pt modules
19  // if we are in the phaseII pixel detector, it will not
20  thePhase2EndcapSingleRings.push_back(myBuilder.build(*it, theGeomDetGeometry));
21  }
22 
23  return new Phase2EndcapSubDisk(thePhase2EndcapSingleRings);
24 }
Phase2EndcapSingleRing * build(const GeometricDet *aPhase2EndcapSingleRing, const TrackerGeometry *theGeomDetGeometry) __attribute__((cold))
#define LogTrace(id)
ConstGeometricDetContainer & components()
Definition: GeometricDet.h:158