Skip to content

Commit

Permalink
Update SGSelector.h
Browse files Browse the repository at this point in the history
  • Loading branch information
abylinkin authored Mar 11, 2024
1 parent a9223f3 commit e0dd321
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions PWGUD/Core/SGSelector.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,14 @@ class SGSelector
if (!udhelpers::cleanFITA(bc, diffCuts.maxFITtime(), diffCuts.FITAmpLimits())) {
if (gA)
newbc = bc;
if (!gA && std::abs(static_cast<long long>(bc.globalBC() - oldbc.globalBC())) < std::abs(static_cast<long long>(newbc.globalBC() - oldbc.globalBC())))
if (!gA && std::abs(static_cast<int64_t>(bc.globalBC() - oldbc.globalBC())) < std::abs(static_cast<int64_t>(newbc.globalBC() - oldbc.globalBC())))
newbc = bc;
gA = false;
}
if (!udhelpers::cleanFITC(bc, diffCuts.maxFITtime(), diffCuts.FITAmpLimits())) {
if (gC)
newbc = bc;
if (!gC && std::abs(static_cast<long long>(bc.globalBC() - oldbc.globalBC())) < std::abs(static_cast<long long>(newbc.globalBC() - oldbc.globalBC())))
if (!gC && std::abs(static_cast<int64_t>(bc.globalBC() - oldbc.globalBC())) < std::abs(static_cast<int64_t>(newbc.globalBC() - oldbc.globalBC())))
newbc = bc;
gC = false;
}
Expand Down

0 comments on commit e0dd321

Please sign in to comment.