Skip to content

Commit 3c6a2e8

Browse files
committed
Fix Megalinter
1 parent b5492b1 commit 3c6a2e8

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

DPG/Tasks/AOTTrack/tagAndProbeDmesons.cxx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@
3232
#include "Tools/ML/MlResponse.h"
3333
#include <TPDGCode.h>
3434

35+
#include <algorithm>
36+
#include <string>
37+
#include <vector>
38+
3539
using namespace o2;
3640
using namespace o2::framework;
3741
using namespace o2::framework::expressions;
@@ -734,7 +738,7 @@ struct TagTwoProngDisplacedVertices {
734738
} else if (fillTopoVarsTable == 3 && !TESTBIT(isSignal, aod::tagandprobe::SignalFlags::BkgFromNoHf)) { // only background excluding tracks from other HF decays
735739
fillTable = false;
736740
}
737-
float pseudoRndm = trackFirst.pt() * 1000. - (int64_t)(trackFirst.pt() * 1000);
741+
float pseudoRndm = trackFirst.pt() * 1000. - static_cast<int64_t>(trackFirst.pt() * 1000);
738742
if (ptTag < ptTagMaxForDownsampling && pseudoRndm >= downsamplingForTopoVarTable) {
739743
fillTable = false;
740744
}
@@ -899,7 +903,7 @@ struct TagTwoProngDisplacedVertices {
899903
} else if (fillTopoVarsTable == 3 && !TESTBIT(isSignal, aod::tagandprobe::SignalFlags::BkgFromNoHf)) { // only background excluding tracks from other HF decays
900904
fillTable = false;
901905
}
902-
float pseudoRndm = trackPos.pt() * 1000. - (int64_t)(trackPos.pt() * 1000);
906+
float pseudoRndm = trackPos.pt() * 1000. - static_cast<int64_t>(trackPos.pt() * 1000);
903907
if (ptTag < ptTagMaxForDownsampling && pseudoRndm >= downsamplingForTopoVarTable) {
904908
fillTable = false;
905909
}

0 commit comments

Comments
 (0)