CMS 3D CMS Logo

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

#include <Phase2EndcapLayerDoubleDiskBuilder.h>

Public Member Functions

Phase2EndcapLayerDoubleDiskbuild (const GeometricDet *aPhase2EndcapLayerDoubleDisk, const TrackerGeometry *theGeomDetGeometry) __attribute__((cold))
 
 Phase2EndcapLayerDoubleDiskBuilder ()
 

Detailed Description

A concrete builder for Phase2EndcapLayerDoubleDisk

Definition at line 14 of file Phase2EndcapLayerDoubleDiskBuilder.h.

Constructor & Destructor Documentation

◆ Phase2EndcapLayerDoubleDiskBuilder()

Phase2EndcapLayerDoubleDiskBuilder::Phase2EndcapLayerDoubleDiskBuilder ( )
inline

Definition at line 16 of file Phase2EndcapLayerDoubleDiskBuilder.h.

16 {};

Member Function Documentation

◆ build()

Phase2EndcapLayerDoubleDisk * Phase2EndcapLayerDoubleDiskBuilder::build ( const GeometricDet aPhase2EndcapLayerDoubleDisk,
const TrackerGeometry theGeomDetGeometry 
)

Definition at line 7 of file Phase2EndcapLayerDoubleDiskBuilder.cc.

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

Referenced by GeometricSearchTrackerBuilder::build().

8  {
9  LogTrace("TkDetLayers") << "Phase2EndcapLayerDoubleDiskBuilder::build";
10  const auto& theSubDisks = aPhase2EndcapLayerDoubleDisk->components();
11  LogTrace("TkDetLayers") << "theSubDisks.size(): " << theSubDisks.size();
12 
14  vector<const Phase2EndcapSubDisk*> thePhase2EndcapSubDisks;
15  thePhase2EndcapSubDisks.reserve(theSubDisks.size());
16 
17  for (vector<const GeometricDet*>::const_iterator it = theSubDisks.begin(); it != theSubDisks.end(); it++) {
18  thePhase2EndcapSubDisks.push_back(myBuilder.build(*it, theGeomDetGeometry));
19  }
20 
21  return new Phase2EndcapLayerDoubleDisk(thePhase2EndcapSubDisks);
22 }
#define LogTrace(id)
ConstGeometricDetContainer & components()
Definition: GeometricDet.h:152
Phase2EndcapSubDisk * build(const GeometricDet *aPhase2EndcapSubDisk, const TrackerGeometry *theGeomDetGeometry) __attribute__((cold))