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 isOuterTracker)
10 {
11  LogTrace("TkDetLayers") << "Phase2EndcapLayerBuilder::build";
12  vector<const GeometricDet*> theGeometricRings = aPhase2EndcapLayer->components();
13  LogTrace("TkDetLayers") << "theGeometricRings.size(): " << theGeometricRings.size() ;
14 
15  Phase2EndcapRingBuilder myBuilder;
16  vector<const Phase2EndcapRing*> thePhase2EndcapRings;
17 
18  for(vector<const GeometricDet*>::const_iterator it=theGeometricRings.begin();
19  it!=theGeometricRings.end();it++){
20  // if we are in the phaseII OT, it will use the brothers to build pt modules
21  // if we are in the phaseII pixel detector, it will not
22  thePhase2EndcapRings.push_back(myBuilder.build( *it,theGeomDetGeometry,isOuterTracker ));
23  }
24 
25  return new Phase2EndcapLayer(thePhase2EndcapRings,isOuterTracker);
26 }
ConstGeometricDetContainer & components()
Definition: GeometricDet.h:176
Phase2EndcapRing * build(const GeometricDet *aPhase2EndcapRing, const TrackerGeometry *theGeomDetGeometry, const bool useBrothers=true) __attribute__((cold))
#define LogTrace(id)
HLT enums.
Phase2EndcapLayer * build(const GeometricDet *aPhase2EndcapLayer, const TrackerGeometry *theGeomDetGeometry, const bool isOuterTracker) __attribute__((cold))