19 #include <boost/function.hpp> 20 #include <boost/bind.hpp> 40 vector<BarrelDetLayer const*> thePxlBarLayers;
41 vector<BarrelDetLayer const*> theTIBLayers;
42 vector<BarrelDetLayer const*> theTOBLayers;
43 vector<ForwardDetLayer const*> theNegPxlFwdLayers;
44 vector<ForwardDetLayer const*> thePosPxlFwdLayers;
45 vector<ForwardDetLayer const*> theNegTIDLayers;
46 vector<ForwardDetLayer const*> thePosTIDLayers;
47 vector<ForwardDetLayer const*> theNegTECLayers;
48 vector<ForwardDetLayer const*> thePosTECLayers;
50 vector<const GeometricDet*> theGeometricDetLayers = theGeometricTracker->
components();
51 for(vector<const GeometricDet*>::const_iterator it=theGeometricDetLayers.begin();
52 it!=theGeometricDetLayers.end(); it++){
55 vector<const GeometricDet*> thePxlBarGeometricDetLayers = (*it)->components();
56 for(vector<const GeometricDet*>::const_iterator it2=thePxlBarGeometricDetLayers.begin();
57 it2!=thePxlBarGeometricDetLayers.end(); it2++){
58 thePxlBarLayers.push_back( aPixelBarrelLayerBuilder.
build(*it2,theGeomDetGeometry) );
63 vector<const GeometricDet*> thePxlBarGeometricDetLayers = (*it)->components();
64 for(vector<const GeometricDet*>::const_iterator it2=thePxlBarGeometricDetLayers.begin();
65 it2!=thePxlBarGeometricDetLayers.end(); it2++){
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(); it2++){
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(); it2++){
82 theTIBLayers.push_back( aTIBLayerBuilder.
build(*it2,theGeomDetGeometry) );
87 vector<const GeometricDet*> theTOBGeometricDetLayers = (*it)->components();
88 for(vector<const GeometricDet*>::const_iterator it2=theTOBGeometricDetLayers.begin();
89 it2!=theTOBGeometricDetLayers.end(); it2++){
90 theTOBLayers.push_back( aTOBLayerBuilder.
build(*it2,theGeomDetGeometry) );
95 vector<const GeometricDet*> theTOBGeometricDetLayers = (*it)->components();
96 for(vector<const GeometricDet*>::const_iterator it2=theTOBGeometricDetLayers.begin();
97 it2!=theTOBGeometricDetLayers.end(); it2++){
98 theTOBLayers.push_back( aPhase2OTBarrelLayerBuilder.
build(*it2,theGeomDetGeometry) );
103 vector<const GeometricDet*> thePxlFwdGeometricDetLayers = (*it)->components();
104 for(vector<const GeometricDet*>::const_iterator it2=thePxlFwdGeometricDetLayers.begin();
105 it2!=thePxlFwdGeometricDetLayers.end(); it2++){
106 if((*it2)->positionBounds().z() < 0)
107 theNegPxlFwdLayers.push_back( aPixelForwardLayerBuilder.
build(*it2,theGeomDetGeometry) );
108 if((*it2)->positionBounds().z() > 0)
109 thePosPxlFwdLayers.push_back( aPixelForwardLayerBuilder.
build(*it2,theGeomDetGeometry) );
114 vector<const GeometricDet*> thePxlFwdGeometricDetLayers = (*it)->components();
115 for(vector<const GeometricDet*>::const_iterator it2=thePxlFwdGeometricDetLayers.begin();
116 it2!=thePxlFwdGeometricDetLayers.end(); it2++){
117 if((*it2)->positionBounds().z() < 0)
118 theNegPxlFwdLayers.push_back( aPhase1PixelForwardLayerBuilder.
build(*it2,theGeomDetGeometry) );
119 if((*it2)->positionBounds().z() > 0)
120 thePosPxlFwdLayers.push_back( aPhase1PixelForwardLayerBuilder.
build(*it2,theGeomDetGeometry) );
125 vector<const GeometricDet*> thePxlFwdGeometricDetLayers = (*it)->components();
126 for(vector<const GeometricDet*>::const_iterator it2=thePxlFwdGeometricDetLayers.begin();
127 it2!=thePxlFwdGeometricDetLayers.end(); it2++){
131 if((*it2)->positionBounds().z() < 0){
133 theNegPxlFwdLayers.push_back( aPhase1PixelForwardLayerBuilder.
build(*it2,theGeomDetGeometry) );
135 theNegPxlFwdLayers.push_back( aPhase2EndcapLayerBuilder.
build(*it2,theGeomDetGeometry,
false) );
136 }
else if((*it2)->positionBounds().z() > 0){
138 thePosPxlFwdLayers.push_back( aPhase1PixelForwardLayerBuilder.
build(*it2,theGeomDetGeometry) );
140 thePosPxlFwdLayers.push_back( aPhase2EndcapLayerBuilder.
build(*it2,theGeomDetGeometry,
false) );
142 edm::LogError(
"TkDetLayers") <<
"In PixelPhase2EndCap the disks are neither PixelPhase2FullDisk nor PixelPhase2ReducedDisk nor PixelPhase2TDRDisk...";
149 vector<const GeometricDet*> theTIDGeometricDetLayers = (*it)->components();
150 for(vector<const GeometricDet*>::const_iterator it2=theTIDGeometricDetLayers.begin();
151 it2!=theTIDGeometricDetLayers.end(); it2++){
152 if((*it2)->positionBounds().z() < 0)
153 theNegTIDLayers.push_back( aTIDLayerBuilder.
build(*it2,theGeomDetGeometry) );
154 if((*it2)->positionBounds().z() > 0)
155 thePosTIDLayers.push_back( aTIDLayerBuilder.
build(*it2,theGeomDetGeometry) );
160 vector<const GeometricDet*> theTIDGeometricDetLayers = (*it)->components();
161 for(vector<const GeometricDet*>::const_iterator it2=theTIDGeometricDetLayers.begin();
162 it2!=theTIDGeometricDetLayers.end(); it2++){
163 if((*it2)->positionBounds().z() < 0)
164 theNegTIDLayers.push_back( aPhase2EndcapLayerBuilder.
build(*it2,theGeomDetGeometry,
true) );
165 if((*it2)->positionBounds().z() > 0)
166 thePosTIDLayers.push_back( aPhase2EndcapLayerBuilder.
build(*it2,theGeomDetGeometry,
true) );
171 vector<const GeometricDet*> theTECGeometricDetLayers = (*it)->components();
172 for(vector<const GeometricDet*>::const_iterator it2=theTECGeometricDetLayers.begin();
173 it2!=theTECGeometricDetLayers.end(); it2++){
174 if((*it2)->positionBounds().z() < 0)
175 theNegTECLayers.push_back( aTECLayerBuilder.
build(*it2,theGeomDetGeometry) );
176 if((*it2)->positionBounds().z() > 0)
177 thePosTECLayers.push_back( aTECLayerBuilder.
build(*it2,theGeomDetGeometry) );
186 theNegPxlFwdLayers,theNegTIDLayers,theNegTECLayers,
187 thePosPxlFwdLayers,thePosTIDLayers,thePosTECLayers, tTopo);
TIBLayer * build(const GeometricDet *aTIBLayer, const TrackerGeometry *theGeomDetGeometry) __attribute__((cold))
TOBLayer * build(const GeometricDet *aTOBLayer, const TrackerGeometry *theGeomDetGeometry) __attribute__((cold))
TECLayer * build(const GeometricDet *aTECLayer, const TrackerGeometry *theGeomDetGeometry) __attribute__((cold))
PixelBarrelLayer * build(const GeometricDet *aPixelBarrelLayer, const TrackerGeometry *theGeomDetGeometry) __attribute__((cold))
TIDLayer * build(const GeometricDet *aTIDLayer, const TrackerGeometry *theGeomDetGeometry) __attribute__((cold))
Phase2OTBarrelLayer * build(const GeometricDet *aPhase2OTBarrelLayer, const TrackerGeometry *theGeomDetGeometry) __attribute__((cold))
ConstGeometricDetContainer & components()
GeometricSearchTracker * build(const GeometricDet *theGeometricTracker, const TrackerGeometry *theGeomDetGeometry, const TrackerTopology *tTopo) __attribute__((cold))
ForwardDetLayer * build(const GeometricDet *aPixelForwardLayer, const TrackerGeometry *theGeomDetGeometry) __attribute__((cold))
Phase2EndcapLayer * build(const GeometricDet *aPhase2EndcapLayer, const TrackerGeometry *theGeomDetGeometry, const bool isOuterTracker) __attribute__((cold))