Skip to content

Commit 8aa0c32

Browse files
authored
[PWGDQ] Fix compilation warnings (#8569)
1 parent 68228ac commit 8aa0c32

File tree

2 files changed

+12
-13
lines changed

2 files changed

+12
-13
lines changed

PWGDQ/Tasks/dqEfficiency_withAssoc.cxx

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -538,8 +538,8 @@ struct AnalysisTrackSelection {
538538
}
539539
}
540540
} // end loop over cuts
541-
} // end loop over MC signals
542-
} // end if (filterMap > 0)
541+
} // end loop over MC signals
542+
} // end if (filterMap > 0)
543543

544544
// count the number of associations per track
545545
if (filterMap > 0) {
@@ -811,7 +811,7 @@ struct AnalysisMuonSelection {
811811
}
812812
}
813813
} // end loop over cuts
814-
} // end loop over MC signals
814+
} // end loop over MC signals
815815

816816
// count the number of associations per track
817817
if (event.isEventSelected_bit(1)) {
@@ -1236,7 +1236,7 @@ struct AnalysisSameEventPairing {
12361236
// NOTE: In the numbering scheme for the map key, we use the number of barrel cuts in the barrel-track selection task
12371237
fTrackHistNames[fNCutsBarrel + icut * fNPairCuts + iPairCut] = names;
12381238
} // end loop (pair cuts)
1239-
} // end if (pair cuts)
1239+
} // end if (pair cuts)
12401240

12411241
// assign hist directories for the MC matched pairs for each (track cut,MCsignal) combination
12421242
if (!sigNamesStr.IsNull()) {
@@ -1314,7 +1314,7 @@ struct AnalysisSameEventPairing {
13141314
histNames += Form("%s;%s;%s;", names[0].Data(), names[1].Data(), names[2].Data());
13151315
fMuonHistNames[fNCutsMuon + icut * fNCutsMuon + iPairCut] = names;
13161316
} // end loop (pair cuts)
1317-
} // end if (pair cuts)
1317+
} // end if (pair cuts)
13181318

13191319
// assign hist directories for pairs matched to MC signals for each (muon cut, MCrec signal) combination
13201320
if (!sigNamesStr.IsNull()) {
@@ -1343,7 +1343,7 @@ struct AnalysisSameEventPairing {
13431343
}
13441344
}
13451345
} // end loop over cuts
1346-
} // end if (muonCutsStr)
1346+
} // end if (muonCutsStr)
13471347

13481348
// Add histogram classes for each specified MCsignal at the generator level
13491349
// TODO: create a std::vector of hist classes to be used at Fill time, to avoid using Form in the process function
@@ -1739,8 +1739,8 @@ struct AnalysisSameEventPairing {
17391739
} // end loop (pair cuts)
17401740
}
17411741
} // end loop (cuts)
1742-
} // end loop over pairs of track associations
1743-
} // end loop over events
1742+
} // end loop over pairs of track associations
1743+
} // end loop over events
17441744
}
17451745

17461746
// Preslice<ReducedMCTracks> perReducedMcEvent = aod::reducedtrackMC::reducedMCeventId;
@@ -1789,8 +1789,8 @@ struct AnalysisSameEventPairing {
17891789
fHistMan->FillHistClass(Form("MCTruthGenPair_%s", sig.GetName()), VarManager::fgValues);
17901790
}
17911791
} // end loop over MC signals
1792-
} // end loop over pairs
1793-
} // end loop over events
1792+
} // end loop over pairs
1793+
} // end loop over events
17941794
}
17951795
} // end runMCGen
17961796

@@ -1979,7 +1979,6 @@ struct AnalysisDileptonTrack {
19791979
DefineHistograms(fHistMan, fHistNamesDileptonTrack[icut], fConfigHistogramSubgroups.value.data()); // define dilepton-track histograms
19801980
DefineHistograms(fHistMan, fHistNamesDileptons[icut], "barrel,vertexing"); // define dilepton histograms
19811981
std::vector<TString> mcHistNames;
1982-
int isig = 0;
19831982
for (auto& sig : fRecMCSignals) {
19841983
mcHistNames.push_back(Form("DileptonTrackMCMatched_%s_%s_%s", tempStr.Data(), fConfigTrackCut.value.data(), sig.GetName()));
19851984
DefineHistograms(fHistMan, mcHistNames[mcHistNames.size() - 1], fConfigHistogramSubgroups.value.data());

PWGDQ/Tasks/quarkoniaToHyperons.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1272,7 +1272,7 @@ struct quarkoniaToHyperons {
12721272
}
12731273

12741274
template <typename TV0>
1275-
void analyseV0Candidate(TV0 v0, float pt, float centrality, uint64_t selMap, std::vector<bool>& selK0ShortIndices, std::vector<bool>& selLambdaIndices, std::vector<bool>& selAntiLambdaIndices, int v0TableOffset)
1275+
void analyseV0Candidate(TV0 v0, float pt, float /*centrality*/, uint64_t selMap, std::vector<bool>& selK0ShortIndices, std::vector<bool>& selLambdaIndices, std::vector<bool>& selAntiLambdaIndices, int v0TableOffset)
12761276
// precalculate this information so that a check is one mask operation, not many
12771277
{
12781278
bool passK0ShortSelections = false;
@@ -1940,7 +1940,7 @@ struct quarkoniaToHyperons {
19401940

19411941
auto cascadeMC = cascade.cascMCCore_as<soa::Join<aod::CascMCCores, aod::CascMCCollRefs>>();
19421942

1943-
float ptmc = RecoDecay::sqrtSumOfSquares(cascadeMC.pxMC(), cascadeMC.pyMC());
1943+
// float ptmc = RecoDecay::sqrtSumOfSquares(cascadeMC.pxMC(), cascadeMC.pyMC());
19441944
float ymc = 1e-3;
19451945
if (TMath::Abs(cascadeMC.pdgCode()) == 3312)
19461946
ymc = RecoDecay::y(std::array{cascadeMC.pxMC(), cascadeMC.pyMC(), cascadeMC.pzMC()}, o2::constants::physics::MassXiMinus);

0 commit comments

Comments
 (0)