37 vector<BarrelDetLayer const *> thePxlBarLayers;
38 vector<BarrelDetLayer const *> theTIBLayers;
39 vector<BarrelDetLayer const *> theTOBLayers;
40 vector<ForwardDetLayer const *> theNegPxlFwdLayers;
41 vector<ForwardDetLayer const *> thePosPxlFwdLayers;
42 vector<ForwardDetLayer const *> theNegTIDLayers;
43 vector<ForwardDetLayer const *> thePosTIDLayers;
44 vector<ForwardDetLayer const *> theNegTECLayers;
45 vector<ForwardDetLayer const *> thePosTECLayers;
48 vector<const GeometricDet *> theGeometricDetLayers = theGeometricTracker->
components();
49 for (vector<const GeometricDet *>::const_iterator it = theGeometricDetLayers.begin();
50 it != theGeometricDetLayers.end();
53 vector<const GeometricDet *> thePxlBarGeometricDetLayers = (*it)->components();
54 for (vector<const GeometricDet *>::const_iterator it2 = thePxlBarGeometricDetLayers.begin();
55 it2 != thePxlBarGeometricDetLayers.end();
57 thePxlBarLayers.push_back(aPixelBarrelLayerBuilder.
build(*it2, theGeomDetGeometry));
62 vector<const GeometricDet *> thePxlBarGeometricDetLayers = (*it)->components();
63 for (vector<const GeometricDet *>::const_iterator it2 = thePxlBarGeometricDetLayers.begin();
64 it2 != thePxlBarGeometricDetLayers.end();
66 thePxlBarLayers.push_back(aPixelBarrelLayerBuilder.
build(*it2, theGeomDetGeometry));
71 vector<const GeometricDet *> thePxlBarGeometricDetLayers = (*it)->components();
72 for (vector<const GeometricDet *>::const_iterator it2 = thePxlBarGeometricDetLayers.begin();
73 it2 != thePxlBarGeometricDetLayers.end();
75 thePxlBarLayers.push_back(aPixelBarrelLayerBuilder.
build(*it2, theGeomDetGeometry));
80 vector<const GeometricDet *> theTIBGeometricDetLayers = (*it)->components();
81 for (vector<const GeometricDet *>::const_iterator it2 = theTIBGeometricDetLayers.begin();
82 it2 != theTIBGeometricDetLayers.end();
84 theTIBLayers.push_back(aTIBLayerBuilder.
build(*it2, theGeomDetGeometry));
89 vector<const GeometricDet *> theTOBGeometricDetLayers = (*it)->components();
90 for (vector<const GeometricDet *>::const_iterator it2 = theTOBGeometricDetLayers.begin();
91 it2 != theTOBGeometricDetLayers.end();
93 theTOBLayers.push_back(aTOBLayerBuilder.
build(*it2, theGeomDetGeometry));
98 vector<const GeometricDet *> theTOBGeometricDetLayers = (*it)->components();
100 for (vector<const GeometricDet *>::const_iterator it2 = theTOBGeometricDetLayers.begin();
101 it2 != theTOBGeometricDetLayers.end();
103 theTOBLayers.push_back(aPhase2OTBarrelLayerBuilder.
build(*it2, theGeomDetGeometry, useBrothers));
108 vector<const GeometricDet *> thePxlFwdGeometricDetLayers = (*it)->components();
109 for (vector<const GeometricDet *>::const_iterator it2 = thePxlFwdGeometricDetLayers.begin();
110 it2 != thePxlFwdGeometricDetLayers.end();
112 if ((*it2)->positionBounds().z() < 0)
113 theNegPxlFwdLayers.push_back(aPixelForwardLayerBuilder.
build(*it2, theGeomDetGeometry));
114 if ((*it2)->positionBounds().z() > 0)
115 thePosPxlFwdLayers.push_back(aPixelForwardLayerBuilder.
build(*it2, theGeomDetGeometry));
120 vector<const GeometricDet *> thePxlFwdGeometricDetLayers = (*it)->components();
121 for (vector<const GeometricDet *>::const_iterator it2 = thePxlFwdGeometricDetLayers.begin();
122 it2 != thePxlFwdGeometricDetLayers.end();
124 if ((*it2)->positionBounds().z() < 0)
125 theNegPxlFwdLayers.push_back(aPhase1PixelForwardLayerBuilder.
build(*it2, theGeomDetGeometry));
126 if ((*it2)->positionBounds().z() > 0)
127 thePosPxlFwdLayers.push_back(aPhase1PixelForwardLayerBuilder.
build(*it2, theGeomDetGeometry));
132 vector<const GeometricDet *> thePxlFwdGeometricDetLayers = (*it)->components();
133 for (vector<const GeometricDet *>::const_iterator it2 = thePxlFwdGeometricDetLayers.begin();
134 it2 != thePxlFwdGeometricDetLayers.end();
138 if ((*it2)->positionBounds().z() < 0) {
141 theNegPxlFwdLayers.push_back(aPhase1PixelForwardLayerBuilder.
build(*it2, theGeomDetGeometry));
143 theNegPxlFwdLayers.push_back(aPhase2EndcapLayerBuilder.
build(*it2, theGeomDetGeometry,
false));
144 }
else if ((*it2)->positionBounds().z() > 0) {
147 thePosPxlFwdLayers.push_back(aPhase1PixelForwardLayerBuilder.
build(*it2, theGeomDetGeometry));
149 thePosPxlFwdLayers.push_back(aPhase2EndcapLayerBuilder.
build(*it2, theGeomDetGeometry,
false));
151 edm::LogError(
"TkDetLayers") <<
"In PixelPhase2EndCap the disks are neither PixelPhase2FullDisk nor "
152 "PixelPhase2ReducedDisk nor PixelPhase2TDRDisk...";
158 vector<const GeometricDet *> theTIDGeometricDetLayers = (*it)->components();
159 for (vector<const GeometricDet *>::const_iterator it2 = theTIDGeometricDetLayers.begin();
160 it2 != theTIDGeometricDetLayers.end();
162 if ((*it2)->positionBounds().z() < 0)
163 theNegTIDLayers.push_back(aTIDLayerBuilder.
build(*it2, theGeomDetGeometry));
164 if ((*it2)->positionBounds().z() > 0)
165 thePosTIDLayers.push_back(aTIDLayerBuilder.
build(*it2, theGeomDetGeometry));
170 vector<const GeometricDet *> theTIDGeometricDetLayers = (*it)->components();
173 for (vector<const GeometricDet *>::const_iterator it2 = theTIDGeometricDetLayers.begin();
174 it2 != theTIDGeometricDetLayers.end();
176 if ((*it2)->positionBounds().z() < 0)
177 theNegTIDLayers.push_back(aPhase2EndcapLayerBuilder.
build(*it2, theGeomDetGeometry, useBrothers));
178 if ((*it2)->positionBounds().z() > 0)
179 thePosTIDLayers.push_back(aPhase2EndcapLayerBuilder.
build(*it2, theGeomDetGeometry, useBrothers));
184 vector<const GeometricDet *> theTECGeometricDetLayers = (*it)->components();
185 for (vector<const GeometricDet *>::const_iterator it2 = theTECGeometricDetLayers.begin();
186 it2 != theTECGeometricDetLayers.end();
188 if ((*it2)->positionBounds().z() < 0)
189 theNegTECLayers.push_back(aTECLayerBuilder.
build(*it2, theGeomDetGeometry));
190 if ((*it2)->positionBounds().z() > 0)
191 thePosTECLayers.push_back(aTECLayerBuilder.
build(*it2, theGeomDetGeometry));
221 std::vector<const BarrelDetLayer *>
barrel;
223 auto p = dynamic_cast<const BarrelDetLayer *>(
e);
228 std::vector<const ForwardDetLayer *> backward;
230 auto p = dynamic_cast<const ForwardDetLayer *>(
e);
232 backward.push_back(
p);
235 std::vector<const ForwardDetLayer *> forward;
237 auto p = dynamic_cast<const ForwardDetLayer *>(
e);
239 forward.push_back(
p);
244 return theSearchTrack;