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  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, isOuterTracker));
22  }
23 
24  return new Phase2EndcapLayer(thePhase2EndcapRings, isOuterTracker);
25 }
Phase2EndcapLayer
Definition: Phase2EndcapLayer.h:15
edm
HLT enums.
Definition: AlignableModifier.h:19
GeometricDet::components
ConstGeometricDetContainer & components()
Definition: GeometricDet.h:139
Phase2EndcapRingBuilder
Definition: Phase2EndcapRingBuilder.h:14
Phase2EndcapRingBuilder.h
Phase2EndcapLayerBuilder.h
GeometricDet
Definition: GeometricDet.h:30
Phase2EndcapRingBuilder::build
Phase2EndcapRing * build(const GeometricDet *aPhase2EndcapRing, const TrackerGeometry *theGeomDetGeometry, const bool useBrothers=true) __attribute__((cold))
Definition: Phase2EndcapRingBuilder.cc:7
GeomDetEnumerators::isOuterTracker
bool isOuterTracker(GeomDetEnumerators::SubDetector m)
Definition: GeomDetEnumerators.cc:78
Phase2EndcapLayerBuilder::build
Phase2EndcapLayer * build(const GeometricDet *aPhase2EndcapLayer, const TrackerGeometry *theGeomDetGeometry, const bool isOuterTracker) __attribute__((cold))
Definition: Phase2EndcapLayerBuilder.cc:7
std
Definition: JetResolutionObject.h:76
LogTrace
#define LogTrace(id)
Definition: MessageLogger.h:671
TrackerGeometry
Definition: TrackerGeometry.h:14