CMS 3D CMS Logo

Phase2EndcapLayerBuilder.cc
Go to the documentation of this file.
3 
4 using namespace edm;
5 using namespace std;
6 
8  const TrackerGeometry* theGeomDetGeometry,
9  const bool useBrothers) {
10  LogTrace("TkDetLayers") << "Phase2EndcapLayerBuilder::build";
11  vector<const GeometricDet*> theGeometricRings = aPhase2EndcapLayer->components();
12  LogTrace("TkDetLayers") << "theGeometricRings.size(): " << theGeometricRings.size();
13 
14  Phase2EndcapRingBuilder myBuilder;
15  vector<const Phase2EndcapRing*> thePhase2EndcapRings;
16 
17  for (vector<const GeometricDet*>::const_iterator it = theGeometricRings.begin(); it != theGeometricRings.end();
18  it++) {
19  // if we are in the phaseII OT, it will use the brothers to build pt modules
20  // if we are in the phaseII pixel detector, it will not
21  thePhase2EndcapRings.push_back(myBuilder.build(*it, theGeomDetGeometry, useBrothers));
22  }
23 
24  return new Phase2EndcapLayer(thePhase2EndcapRings, useBrothers);
25 }
Phase2EndcapLayer * build(const GeometricDet *aPhase2EndcapLayer, const TrackerGeometry *theGeomDetGeometry, const bool useBrothers) __attribute__((cold))
#define LogTrace(id)
ConstGeometricDetContainer & components()
Definition: GeometricDet.h:152
Phase2EndcapRing * build(const GeometricDet *aPhase2EndcapRing, const TrackerGeometry *theGeomDetGeometry, const bool useBrothers=true) __attribute__((cold))
HLT enums.