Skip to content

Commit d62e672

Browse files
authored
Fix o2 liner + Mega linter errors
1 parent bef1785 commit d62e672

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

PWGCF/TwoParticleCorrelations/Tasks/longrangecorrDerived.cxx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@
6060
#include <cstdio>
6161
#include <string>
6262
#include <vector>
63+
#include <utility>
6364

6465
using namespace o2;
6566
using namespace o2::framework;
@@ -227,9 +228,9 @@ struct LongrangecorrDerived {
227228
using MixedBinning = FlexibleBinningPolicy<std::tuple<decltype(getMultiplicity)>, aod::lrcorrcolltable::Zvtx, decltype(getMultiplicity)>;
228229
MixedBinning binningOnVtxAndMult{{getMultiplicity}, {axisVtxZME, axisMultME}, true};
229230
auto tracksTuple = std::make_tuple(std::forward<TrackTypes>(tracks)...);
230-
using tA = std::tuple_element<0, decltype(tracksTuple)>::type;
231-
using tB = std::tuple_element<std::tuple_size_v<decltype(tracksTuple)> - 1, decltype(tracksTuple)>::type;
232-
Pair<TCollision, tA, tB, MixedBinning> pairs{binningOnVtxAndMult, cfgNmixedevent, -1, col, tracksTuple, &cache};
231+
using TupleAtrack = std::tuple_element<0, decltype(tracksTuple)>::type;
232+
using TupleBtrack = std::tuple_element<std::tuple_size_v<decltype(tracksTuple)> - 1, decltype(tracksTuple)>::type;
233+
Pair<TCollision, TupleAtrack, TupleBtrack, MixedBinning> pairs{binningOnVtxAndMult, cfgNmixedevent, -1, col, tracksTuple, &cache};
233234
for (auto it = pairs.begin(); it != pairs.end(); it++) {
234235
auto& [col1, tracks1, col2, tracks2] = *it;
235236
float eventweight = 1.0f / it.currentWindowNeighbours();

0 commit comments

Comments
 (0)