33 : theFrontDets(innerDets.begin(), innerDets.
end()), theBackDets(outerDets.begin(), outerDets.
end()) {
46 LogDebug(
"TkDetLayers") <<
"DEBUG INFO for CompositeTECWedge"
48 <<
"TECWedge z, perp,innerRadius,outerR: " << this->
position().
z() <<
" , "
53 LogDebug(
"TkDetLayers") <<
"frontDet phi,z,r: " << (*it)->surface().position().phi() <<
" , "
54 << (*it)->surface().position().z() <<
" , " << (*it)->surface().position().perp();
58 LogDebug(
"TkDetLayers") <<
"backDet phi,z,r: " << (*it)->surface().phi() <<
" , " << (*it)->surface().position().z()
59 <<
" , " << (*it)->surface().position().perp();
67 throw DetLayerException(
"CompositeTECWedge doesn't have GeometricSearchDet components");
73 edm::LogError(
"TkDetLayers") <<
"temporary dummy implementation of CompositeTECWedge::compatible()!!";
74 return pair<bool, TrajectoryStateOnSurface>();
80 std::vector<DetGroup>&
result)
const {
85 std::vector<DetGroup> closestResult;
88 LogDebug(
"TkDetLayers") <<
"in CompositeTECWedge::groupedCompatibleDets,closestResult.size(): "
89 << closestResult.size();
91 if (closestResult.empty())
99 std::vector<DetGroup> nextResult;
119 if (!frontPath.first)
129 LogDebug(
"TkDetLayers") <<
"in TECWedge,front crossing r,z,phi: (" << gFrontPoint.perp() <<
"," << gFrontPoint.z()
130 <<
"," << gFrontPoint.phi() <<
")";
132 LogDebug(
"TkDetLayers") <<
"in TECWedge,back crossing r,z,phi: (" << gBackPoint.perp() <<
"," << gBackPoint.z() <<
","
133 << gBackPoint.phi() <<
")" << endl;
154 if (frontDist < backDist) {
165 vector<DetGroup>&
result)
const {
168 LogDebug(
"TkDetLayers") <<
"in CompositeTECWedge,adding GeomDet at r,z,phi: ("
182 bool checkClosest)
const {
188 int negStartIndex = closestIndex - 1;
189 int posStartIndex = closestIndex + 1;
193 posStartIndex = closestIndex;
195 negStartIndex = closestIndex;
200 for (
int idet = negStartIndex; idet >= 0; idet--) {
207 for (
int idet = posStartIndex; idet < static_cast<int>(sWedge.size()); idet++) {
220 auto closeDist =
std::abs((myDets.front()->toLocal(startPos)).
x());
221 for (
unsigned int i = 1;
i < myDets.size();
i++) {
223 if (dist < closeDist) {