CMS 3D CMS Logo

Phase2EndcapSingleRingBuilder.cc
Go to the documentation of this file.
4 
5 using namespace edm;
6 using namespace std;
7 
9  const TrackerGeometry* theGeomDetGeometry) {
10  vector<const GeometricDet*> allGeometricDets = aPhase2EndcapSingleRing->components();
11  vector<const GeometricDet*> compGeometricDets;
12  vector<const GeomDet*> allDets;
13 
14  for (vector<const GeometricDet*>::const_iterator compGeometricDets = allGeometricDets.begin();
15  compGeometricDets != allGeometricDets.end();
16  compGeometricDets++) {
17  const GeomDet* theGeomDet = theGeomDetGeometry->idToDet((*compGeometricDets)->geographicalId());
18  allDets.push_back(theGeomDet);
19  }
20 
21  LogDebug("TkDetLayers") << "Phase2EndcapSingleRingBuilder with #Modules: " << allGeometricDets.size() << std::endl;
22 
23  return new Phase2EndcapSingleRing(allDets);
24 }
Phase2EndcapSingleRing * build(const GeometricDet *aPhase2EndcapSingleRing, const TrackerGeometry *theGeomDetGeometry) __attribute__((cold))
ConstGeometricDetContainer & components()
Definition: GeometricDet.h:154
const TrackerGeomDet * idToDet(DetId) const override
HLT enums.
#define LogDebug(id)