File indexing completed on 2024-04-06 12:28:46
0001 #include "Phase2EndcapLayerDoubleDiskBuilder.h"
0002 #include "Phase2EndcapSubDiskBuilder.h"
0003
0004 using namespace edm;
0005 using namespace std;
0006
0007 Phase2EndcapLayerDoubleDisk* Phase2EndcapLayerDoubleDiskBuilder::build(const GeometricDet* aPhase2EndcapLayerDoubleDisk,
0008 const TrackerGeometry* theGeomDetGeometry) {
0009 LogTrace("TkDetLayers") << "Phase2EndcapLayerDoubleDiskBuilder::build";
0010 const auto& theSubDisks = aPhase2EndcapLayerDoubleDisk->components();
0011 LogTrace("TkDetLayers") << "theSubDisks.size(): " << theSubDisks.size();
0012
0013 Phase2EndcapSubDiskBuilder myBuilder;
0014 vector<const Phase2EndcapSubDisk*> thePhase2EndcapSubDisks;
0015 thePhase2EndcapSubDisks.reserve(theSubDisks.size());
0016
0017 for (vector<const GeometricDet*>::const_iterator it = theSubDisks.begin(); it != theSubDisks.end(); it++) {
0018 thePhase2EndcapSubDisks.push_back(myBuilder.build(*it, theGeomDetGeometry));
0019 }
0020
0021 return new Phase2EndcapLayerDoubleDisk(thePhase2EndcapSubDisks);
0022 }