From 2e7a72bc4610c95de9539ff6f325acb2f8316e7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADt=20Ku=C4=8Dera?= Date: Wed, 10 Jul 2024 11:22:03 +0200 Subject: [PATCH] PWGCF: Fix compilation warnings --- PWGCF/EbyEFluctuations/Tasks/FactorialMomentsTask.cxx | 6 ++++-- PWGCF/FemtoWorld/Core/FemtoWorldPhiSelection.h | 8 ++++---- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/PWGCF/EbyEFluctuations/Tasks/FactorialMomentsTask.cxx b/PWGCF/EbyEFluctuations/Tasks/FactorialMomentsTask.cxx index 3afd93f4c90..22544d23fe8 100644 --- a/PWGCF/EbyEFluctuations/Tasks/FactorialMomentsTask.cxx +++ b/PWGCF/EbyEFluctuations/Tasks/FactorialMomentsTask.cxx @@ -203,8 +203,9 @@ struct FactorialMoments { for (auto const& h : mHistArrReset) { h->Reset(); } + countTracks = {0, 0, 0, 0, 0}; - fqEvent = {{{{0, 0, 0, 0, 0, 0}}}}; + fqEvent = {{{{{0, 0, 0, 0, 0, 0}}}}}; binConEvent = {{{0, 0, 0, 0, 0}}}; for (auto const& track : tracks) { @@ -255,12 +256,13 @@ struct FactorialMoments { histos.fill(HIST("mVertexY"), coll.posY()); histos.fill(HIST("mVertexZ"), coll.posZ()); histos.fill(HIST("mCentFT0M"), coll.centRun2V0M()); + for (auto const& h : mHistArrReset) { h->Reset(); } countTracks = {0, 0, 0, 0, 0}; - fqEvent = {{{{0, 0, 0, 0, 0, 0}}}}; + fqEvent = {{{{{0, 0, 0, 0, 0, 0}}}}}; binConEvent = {{{0, 0, 0, 0, 0}}}; for (auto const& track : tracks) { diff --git a/PWGCF/FemtoWorld/Core/FemtoWorldPhiSelection.h b/PWGCF/FemtoWorld/Core/FemtoWorldPhiSelection.h index e6581daaa13..39040d70ec0 100644 --- a/PWGCF/FemtoWorld/Core/FemtoWorldPhiSelection.h +++ b/PWGCF/FemtoWorld/Core/FemtoWorldPhiSelection.h @@ -388,7 +388,7 @@ void FemtoWorldPhiSelection::initPhi(HistogramRegistry* registry) } template -bool FemtoWorldPhiSelection::isSelectedMinimal(C const& col, V const& v0, T const& posTrack, T const& negTrack) +bool FemtoWorldPhiSelection::isSelectedMinimal(C const& /*col*/, V const& v0, T const& posTrack, T const& negTrack) { const auto signPos = posTrack.sign(); const auto signNeg = negTrack.sign(); @@ -460,7 +460,7 @@ bool FemtoWorldPhiSelection::isSelectedMinimal(C const& col, V const& v0, T cons } template -void FemtoWorldPhiSelection::fillPhiQA(C const& col, V const& v0, T const& posTrack, T const& negTrack) +void FemtoWorldPhiSelection::fillPhiQA(C const& /*col*/, V const& v0, T const& posTrack, T const& negTrack) { const auto signPos = posTrack.sign(); const auto signNeg = negTrack.sign(); @@ -510,7 +510,7 @@ void FemtoWorldPhiSelection::fillPhiQA(C const& col, V const& v0, T const& posTr } template -void FemtoWorldPhiSelection::fillPhiQAMass(C const& col, V const& MassPhi, T const& posTrack, T const& negTrack, P const& ConfInvMassLowLimit, P const& ConfInvMassUpLimit) +void FemtoWorldPhiSelection::fillPhiQAMass(C const& /*col*/, V const& MassPhi, T const& posTrack, T const& negTrack, P const& /*ConfInvMassLowLimit*/, P const& /*ConfInvMassUpLimit*/) { const auto signPos = posTrack.sign(); const auto signNeg = negTrack.sign(); @@ -652,7 +652,7 @@ void FemtoWorldPhiSelection::fillQA(C const& /*col*/, V const& /*v0*/, T const& } template -void FemtoWorldPhiSelection::fillQAPhi(C const& col, V const& v0, T const& posTrack, T const& negTrack) +void FemtoWorldPhiSelection::fillQAPhi(C const& /*col*/, V const& v0, T const& posTrack, T const& negTrack) { if (mHistogramRegistry) { mHistogramRegistry->fill(HIST(o2::aod::femtoworldparticle::ParticleTypeName[part]) + HIST("/hPtPhi"), v0.pt());