Skip to content
Snippets Groups Projects
Commit eaf61e57 authored by Marco Cattaneo's avatar Marco Cattaneo
Browse files

Merge branch 'removeUpgrade-2016' into '2016-patches'

Complete the removal of upgrade detectors

See merge request !674

(cherry picked from commit 34d92fe1)

f0151608 Complete the removal of upgrade detectors
parent acff659c
No related branches found
No related tags found
1 merge request!678Complete the removal of upgrade detectors
...@@ -116,17 +116,17 @@ namespace TaggingHelpers ...@@ -116,17 +116,17 @@ namespace TaggingHelpers
// stations for the upgrade clone detection? // stations for the upgrade clone detection?
while (h1.end() != it && h2.end() != jt) { while (h1.end() != it && h2.end() != jt) {
if (*it < *jt) { if (*it < *jt) {
if (it->isVelo() || it->isVP()) ++nVelo1; if (it->isVelo()) ++nVelo1;
else if (it->isIT() || it->isOT()) ++nT1; else if (it->isIT() || it->isOT()) ++nT1;
++it; ++it;
} else if (*jt < *it) { } else if (*jt < *it) {
if (jt->isVelo() || jt->isVP()) ++nVelo2; if (jt->isVelo()) ++nVelo2;
else if (jt->isIT() || jt->isOT()) ++nT2; else if (jt->isIT() || jt->isOT()) ++nT2;
++jt; ++jt;
} else { } else {
++nCommon; ++nCommon;
// common LHCb ID // common LHCb ID
if (it->isVelo() || it->isVP()) { if (it->isVelo()) {
++nVelo1; ++nVelo1;
++nVelo2; ++nVelo2;
++nVeloCommon; ++nVeloCommon;
...@@ -141,13 +141,13 @@ namespace TaggingHelpers ...@@ -141,13 +141,13 @@ namespace TaggingHelpers
} }
// consume any hits potentially remaining in track 1 // consume any hits potentially remaining in track 1
while (h1.end() != it) { while (h1.end() != it) {
if (it->isVelo() || it->isVP()) ++nVelo1; if (it->isVelo()) ++nVelo1;
else if (it->isIT() || it->isOT()) ++nT1; else if (it->isIT() || it->isOT()) ++nT1;
++it; ++it;
} }
// consume any hits potentially remaining in track 2 // consume any hits potentially remaining in track 2
while (h2.end() != jt) { while (h2.end() != jt) {
if (jt->isVelo() || jt->isVP()) ++nVelo2; if (jt->isVelo()) ++nVelo2;
else if (jt->isIT() || jt->isOT()) ++nT2; else if (jt->isIT() || jt->isOT()) ++nT2;
++jt; ++jt;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment