CMS 3D CMS Logo

Phase2EndcapLayerDoubleDiskBuilder.cc
Go to the documentation of this file.
3 
4 using namespace edm;
5 using namespace std;
6 
8  const TrackerGeometry* theGeomDetGeometry) {
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 }
Phase2EndcapLayerDoubleDisk * build(const GeometricDet *aPhase2EndcapLayerDoubleDisk, const TrackerGeometry *theGeomDetGeometry) __attribute__((cold))
#define LogTrace(id)
ConstGeometricDetContainer & components()
Definition: GeometricDet.h:154
HLT enums.
Phase2EndcapSubDisk * build(const GeometricDet *aPhase2EndcapSubDisk, const TrackerGeometry *theGeomDetGeometry) __attribute__((cold))