23 TIDRing::TIDRing(std::vector<const GeomDet*>& innerDets, std::vector<const GeomDet*>& outerDets)
25 theFrontDets(innerDets.begin(), innerDets.
end()),
26 theBackDets(outerDets.begin(), outerDets.
end()) {
42 LogDebug(
"TkDetLayers") <<
"DEBUG INFO for TIDRing";
44 LogDebug(
"TkDetLayers") <<
"frontDet phi,z,r: " << (*it)->surface().position().phi() <<
" , "
45 << (*it)->surface().position().z() <<
" , " << (*it)->surface().position().perp();
49 LogDebug(
"TkDetLayers") <<
"backDet phi,z,r: " << (*it)->surface().position().phi() <<
" , "
50 << (*it)->surface().position().z() <<
" , " << (*it)->surface().position().perp();
63 edm::LogError(
"TkDetLayers") <<
"temporary dummy implementation of TIDRing::compatible()!!";
64 return pair<bool, TrajectoryStateOnSurface>();
70 std::vector<DetGroup>&
result)
const {
76 std::vector<DetGroup> closestResult;
78 if (closestResult.empty())
85 vector<DetGroup> nextResult;
104 if (!frontPath.first)
124 if (frontDist < backDist) {
135 vector<DetGroup>&
result)
const {
147 bool checkClosest)
const {
153 int negStartIndex = closestIndex - 1;
154 int posStartIndex = closestIndex + 1;
158 posStartIndex = closestIndex;
160 negStartIndex = closestIndex;
167 int half = sLayer.size() / 2;
168 for (
int idet = negStartIndex; idet >= negStartIndex - half; idet--) {
176 for (
int idet = posStartIndex; idet < posStartIndex + half; idet++) {