36 vector<BarrelDetLayer const*> thePxlBarLayers;
37 vector<BarrelDetLayer const*> theTIBLayers;
38 vector<BarrelDetLayer const*> theTOBLayers;
39 vector<ForwardDetLayer const*> theNegPxlFwdLayers;
40 vector<ForwardDetLayer const*> thePosPxlFwdLayers;
41 vector<ForwardDetLayer const*> theNegTIDLayers;
42 vector<ForwardDetLayer const*> thePosTIDLayers;
43 vector<ForwardDetLayer const*> theNegTECLayers;
44 vector<ForwardDetLayer const*> thePosTECLayers;
47 vector<const GeometricDet*> theGeometricDetLayers = theGeometricTracker->
components();
48 for (vector<const GeometricDet*>::const_iterator it = theGeometricDetLayers.begin();
49 it != theGeometricDetLayers.end();
52 vector<const GeometricDet*> thePxlBarGeometricDetLayers = (*it)->components();
53 for (vector<const GeometricDet*>::const_iterator it2 = thePxlBarGeometricDetLayers.begin();
54 it2 != thePxlBarGeometricDetLayers.end();
56 thePxlBarLayers.push_back(aPixelBarrelLayerBuilder.
build(*it2, theGeomDetGeometry));
61 vector<const GeometricDet*> thePxlBarGeometricDetLayers = (*it)->components();
62 for (vector<const GeometricDet*>::const_iterator it2 = thePxlBarGeometricDetLayers.begin();
63 it2 != thePxlBarGeometricDetLayers.end();
65 thePxlBarLayers.push_back(aPixelBarrelLayerBuilder.
build(*it2, theGeomDetGeometry));
70 vector<const GeometricDet*> thePxlBarGeometricDetLayers = (*it)->components();
71 for (vector<const GeometricDet*>::const_iterator it2 = thePxlBarGeometricDetLayers.begin();
72 it2 != thePxlBarGeometricDetLayers.end();
74 thePxlBarLayers.push_back(aPixelBarrelLayerBuilder.
build(*it2, theGeomDetGeometry));
79 vector<const GeometricDet*> theTIBGeometricDetLayers = (*it)->components();
80 for (vector<const GeometricDet*>::const_iterator it2 = theTIBGeometricDetLayers.begin();
81 it2 != theTIBGeometricDetLayers.end();
83 theTIBLayers.push_back(aTIBLayerBuilder.
build(*it2, theGeomDetGeometry));
88 vector<const GeometricDet*> theTOBGeometricDetLayers = (*it)->components();
89 for (vector<const GeometricDet*>::const_iterator it2 = theTOBGeometricDetLayers.begin();
90 it2 != theTOBGeometricDetLayers.end();
92 theTOBLayers.push_back(aTOBLayerBuilder.
build(*it2, theGeomDetGeometry));
97 vector<const GeometricDet*> theTOBGeometricDetLayers = (*it)->components();
99 for (vector<const GeometricDet*>::const_iterator it2 = theTOBGeometricDetLayers.begin();
100 it2 != theTOBGeometricDetLayers.end();
102 theTOBLayers.push_back(aPhase2OTBarrelLayerBuilder.
build(*it2, theGeomDetGeometry, useBrothers));
107 vector<const GeometricDet*> thePxlFwdGeometricDetLayers = (*it)->components();
108 for (vector<const GeometricDet*>::const_iterator it2 = thePxlFwdGeometricDetLayers.begin();
109 it2 != thePxlFwdGeometricDetLayers.end();
111 if ((*it2)->positionBounds().z() < 0)
112 theNegPxlFwdLayers.push_back(aPixelForwardLayerBuilder.
build(*it2, theGeomDetGeometry));
113 if ((*it2)->positionBounds().z() > 0)
114 thePosPxlFwdLayers.push_back(aPixelForwardLayerBuilder.
build(*it2, theGeomDetGeometry));
119 vector<const GeometricDet*> thePxlFwdGeometricDetLayers = (*it)->components();
120 for (vector<const GeometricDet*>::const_iterator it2 = thePxlFwdGeometricDetLayers.begin();
121 it2 != thePxlFwdGeometricDetLayers.end();
123 if ((*it2)->positionBounds().z() < 0)
124 theNegPxlFwdLayers.push_back(aPhase1PixelForwardLayerBuilder.
build(*it2, theGeomDetGeometry));
125 if ((*it2)->positionBounds().z() > 0)
126 thePosPxlFwdLayers.push_back(aPhase1PixelForwardLayerBuilder.
build(*it2, theGeomDetGeometry));
131 vector<const GeometricDet*> thePxlFwdGeometricDetLayers = (*it)->components();
132 for (vector<const GeometricDet*>::const_iterator it2 = thePxlFwdGeometricDetLayers.begin();
133 it2 != thePxlFwdGeometricDetLayers.end();
137 if ((*it2)->positionBounds().z() < 0) {
140 theNegPxlFwdLayers.push_back(aPhase1PixelForwardLayerBuilder.
build(*it2, theGeomDetGeometry));
142 theNegPxlFwdLayers.push_back(aPhase2EndcapLayerBuilder.
build(*it2, theGeomDetGeometry,
false));
143 }
else if ((*it2)->positionBounds().z() > 0) {
146 thePosPxlFwdLayers.push_back(aPhase1PixelForwardLayerBuilder.
build(*it2, theGeomDetGeometry));
148 thePosPxlFwdLayers.push_back(aPhase2EndcapLayerBuilder.
build(*it2, theGeomDetGeometry,
false));
150 edm::LogError(
"TkDetLayers") <<
"In PixelPhase2EndCap the disks are neither PixelPhase2FullDisk nor "
151 "PixelPhase2ReducedDisk nor PixelPhase2TDRDisk...";
157 vector<const GeometricDet*> theTIDGeometricDetLayers = (*it)->components();
158 for (vector<const GeometricDet*>::const_iterator it2 = theTIDGeometricDetLayers.begin();
159 it2 != theTIDGeometricDetLayers.end();
161 if ((*it2)->positionBounds().z() < 0)
162 theNegTIDLayers.push_back(aTIDLayerBuilder.
build(*it2, theGeomDetGeometry));
163 if ((*it2)->positionBounds().z() > 0)
164 thePosTIDLayers.push_back(aTIDLayerBuilder.
build(*it2, theGeomDetGeometry));
169 vector<const GeometricDet*> theTIDGeometricDetLayers = (*it)->components();
172 for (vector<const GeometricDet*>::const_iterator it2 = theTIDGeometricDetLayers.begin();
173 it2 != theTIDGeometricDetLayers.end();
175 if ((*it2)->positionBounds().z() < 0)
176 theNegTIDLayers.push_back(aPhase2EndcapLayerBuilder.
build(*it2, theGeomDetGeometry, useBrothers));
177 if ((*it2)->positionBounds().z() > 0)
178 thePosTIDLayers.push_back(aPhase2EndcapLayerBuilder.
build(*it2, theGeomDetGeometry, useBrothers));
183 vector<const GeometricDet*> theTECGeometricDetLayers = (*it)->components();
184 for (vector<const GeometricDet*>::const_iterator it2 = theTECGeometricDetLayers.begin();
185 it2 != theTECGeometricDetLayers.end();
187 if ((*it2)->positionBounds().z() < 0)
188 theNegTECLayers.push_back(aTECLayerBuilder.
build(*it2, theGeomDetGeometry));
189 if ((*it2)->positionBounds().z() > 0)
190 thePosTECLayers.push_back(aTECLayerBuilder.
build(*it2, theGeomDetGeometry));