Skip to content

Commit 55c2257

Browse files
authored
[PWGCF] Fix compilation warnings (AliceO2Group#8916)
1 parent b154c3a commit 55c2257

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

PWGCF/FemtoUniverse/Tasks/femtoUniversePairTaskTrackNucleus.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ struct femtoUniversePairTaskTrackNucleus {
497497
/// \param pairType describes charge of correlation pair (plus-plus (1), minus-minus (2), plus-minus (3), minus-plus (4))
498498
/// \param fillQA enables filling of QA histograms
499499
template <bool isMC, typename PartitionType, typename PartType>
500-
void doSameEvent(PartitionType groupTrack, PartitionType groupNucleus, PartType parts, float magFieldTesla, int multCol, int pairType, bool fillQA)
500+
void doSameEvent(PartitionType groupTrack, PartitionType groupNucleus, PartType parts, float magFieldTesla, int multCol, int pairType, bool /*fillQA*/)
501501
{
502502
for (auto& part : groupTrack) {
503503
if (!IsParticleNSigma((int8_t)1, part.p(), trackCuts.getNsigmaTPC(part, o2::track::PID::Proton), trackCuts.getNsigmaTOF(part, o2::track::PID::Proton), trackCuts.getNsigmaTPC(part, o2::track::PID::Pion), trackCuts.getNsigmaTOF(part, o2::track::PID::Pion), trackCuts.getNsigmaTPC(part, o2::track::PID::Kaon), trackCuts.getNsigmaTOF(part, o2::track::PID::Kaon), trackCuts.getNsigmaTPC(part, o2::track::PID::Deuteron), trackCuts.getNsigmaTOF(part, o2::track::PID::Deuteron), part.tpcSignal())) {

PWGCF/Flow/TableProducer/zdcQVectors.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ struct ZdcQVectors {
456456
} else if (hist->InheritsFrom("TProfile")) {
457457
TProfile* h = reinterpret_cast<TProfile*>(hist);
458458
TString name = h->GetName();
459-
int bin;
459+
int bin{};
460460
if (name.Contains("mean_vx"))
461461
bin = h->GetXaxis()->FindBin(v[0]);
462462
if (name.Contains("mean_vy"))

PWGCF/Flow/Tasks/FlowRunbyRun.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ struct FlowRunbyRun {
268268
for (auto& track : tracks) {
269269
TH1sList[runNumber][hPhi]->Fill(track.phi());
270270
TH1sList[runNumber][hEta]->Fill(track.eta());
271-
bool WithinPtPOI = (cfgCutPtPOIMin < track.pt()) && (track.pt() < cfgCutPtPOIMax); // within POI pT range
271+
// bool WithinPtPOI = (cfgCutPtPOIMin < track.pt()) && (track.pt() < cfgCutPtPOIMax); // within POI pT range
272272
bool WithinPtRef = (cfgCutPtRefMin < track.pt()) && (track.pt() < cfgCutPtRefMax); // within RF pT range
273273
if (WithinPtRef) {
274274
fGFW->Fill(track.eta(), 1, track.phi(), wacc * weff, 1);

PWGCF/Flow/Tasks/flowSP.cxx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -353,12 +353,12 @@ struct FlowSP {
353353
auto ux = std::cos(phi);
354354
auto uy = std::sin(phi);
355355

356-
auto uxQxA = ux * qxA;
357-
auto uyQyA = uy * qyA;
358-
auto uxyQxyA = uxQxA + uyQyA;
359-
auto uxQxC = ux * qxC;
360-
auto uyQyC = uy * qyC;
361-
auto uxyQxyC = uxQxC + uyQyC;
356+
// auto uxQxA = ux * qxA;
357+
// auto uyQyA = uy * qyA;
358+
// auto uxyQxyA = uxQxA + uyQyA;
359+
// auto uxQxC = ux * qxC;
360+
// auto uyQyC = uy * qyC;
361+
// auto uxyQxyC = uxQxC + uyQyC;
362362

363363
auto oddv1 = ux * (qxA - qxC) + uy * (qyA - qyC);
364364
auto evenv1 = ux * (qxA + qxC) + uy * (qyA + qyC);

PWGCF/TwoParticleCorrelations/Tasks/corrSparse.cxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ struct CorrSparse {
7070

7171
// fill multiple histograms
7272
template <typename TCollision, typename TTracks>
73-
void fillYield(TCollision collision, float centrality, TTracks tracks) // function to fill the yield and etaphi histograms.
73+
void fillYield(TCollision /*collision*/, float /*centrality*/, TTracks tracks) // function to fill the yield and etaphi histograms.
7474
{
7575
registry.fill(HIST("Nch"), tracks.size());
7676
for (auto const& track1 : tracks) {
@@ -83,7 +83,7 @@ struct CorrSparse {
8383
}
8484

8585
template <typename TCollision>
86-
bool fillCollision(TCollision collision, float centrality)
86+
bool fillCollision(TCollision collision, float /*centrality*/)
8787
{
8888

8989
if (!collision.sel8()) {
@@ -153,7 +153,7 @@ struct CorrSparse {
153153
pair{bindingOnVtxAndMult, 5, -1, &cache}; // indicates that 5 events should be mixed and under/overflow (-1) to be ignored
154154

155155
// the process for filling the mixed events
156-
void processMixed(AodCollisions const& collisions, AodTracks const& tracks)
156+
void processMixed(AodCollisions const& /*collisions*/, AodTracks const& /*tracks*/)
157157
{
158158
for (auto const& [collision1, tracks1, collision2, tracks2] : pair) {
159159

0 commit comments

Comments
 (0)