Skip to content

Commit 4ffef41

Browse files
authored
[PWGLF] Fix compilation warnings (AliceO2Group#8921)
1 parent 55c2257 commit 4ffef41

File tree

8 files changed

+15
-20
lines changed

8 files changed

+15
-20
lines changed

PWGLF/TableProducer/Common/spvector.cxx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -432,11 +432,6 @@ struct spvector {
432432
qxZDCC = qxZDCC / sumC;
433433
qyZDCC = qyZDCC / sumC;
434434
}
435-
} else {
436-
qxZDCA = qxZDCA;
437-
qxZDCC = qxZDCC;
438-
qyZDCA = qyZDCA;
439-
qyZDCC = qyZDCC;
440435
}
441436
if (sumA <= 1e-4 || sumC <= 1e-4) {
442437
qxZDCA = 0.0;

PWGLF/TableProducer/Nuspex/hypKfTreeCreator.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ struct hypKfTreeCreator {
514514
}
515515
//___________________________________________________________________________________________________________________________________________________________
516516

517-
void fillCandidate(hyperNucleus& cand, hyperNucleus& hypDaughter, aod::HypKfHypNuc const& hypNuc, aod::HypKfHypNucs const&, aod::HypKfColls const&, aod::HypKfTracks const&, aod::HypKfDaughtAdds const&, aod::HypKfSubDs const&)
517+
void fillCandidate(hyperNucleus& cand, hyperNucleus& /*hypDaughter*/, aod::HypKfHypNuc const& hypNuc, aod::HypKfHypNucs const&, aod::HypKfColls const&, aod::HypKfTracks const&, aod::HypKfDaughtAdds const&, aod::HypKfSubDs const&)
518518
{
519519
cand.daughterTracks.clear();
520520
cand.subDaughterMassVec.clear();

PWGLF/TableProducer/Resonances/resonanceInitializer.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1042,7 +1042,7 @@ struct ResonanceInitializer {
10421042
LOGF(info, "Bz set to %f for run: ", dBz, mRunNumber);
10431043
}
10441044

1045-
void processDummy(ResoRun2Events const& collisions)
1045+
void processDummy(ResoRun2Events const& /*collisions*/)
10461046
{
10471047
}
10481048
PROCESS_SWITCH(ResonanceInitializer, processDummy, "Process for dummy", true);

PWGLF/TableProducer/Strangeness/cascadeflow.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ struct cascadeFlow {
375375
if (coll.selection_bit(o2::aod::evsel::kNoCollInRofStandard))
376376
isNoCollInRofStd = 1;
377377
// TVX in TRD
378-
bool isTVXinTRD = 0;
378+
// bool isTVXinTRD = 0;
379379
// if (coll.alias_bit(kTVXinTRD)) isTVXinTRD = 1;
380380

381381
analysisSample(coll.centFT0C(),

PWGLF/TableProducer/Strangeness/sigma0builder.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,7 @@ struct sigma0builder {
617617
auto arrMom = std::array{pVecPhotons, pVecLambda};
618618
float SigmaMass = RecoDecay::m(arrMom, std::array{o2::constants::physics::MassPhoton, o2::constants::physics::MassLambda0});
619619
float SigmapT = RecoDecay::pt(array{gamma.px() + lambda.px(), gamma.py() + lambda.py()});
620-
float SigmaY = TMath::Abs(RecoDecay::y(std::array{gamma.px() + lambda.px(), gamma.py() + lambda.py(), gamma.pz() + lambda.pz()}, o2::constants::physics::MassSigma0));
620+
// float SigmaY = TMath::Abs(RecoDecay::y(std::array{gamma.px() + lambda.px(), gamma.py() + lambda.py(), gamma.pz() + lambda.pz()}, o2::constants::physics::MassSigma0));
621621
histos.fill(HIST("h3dMassSigmasBeforeSel"), coll.centFT0C(), SigmapT, SigmaMass);
622622

623623
if (!processSigmaCandidate(lambda, gamma)) // applying selection for reconstruction

PWGLF/Tasks/Nuspex/he3FromHypertritonMap.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ struct he3FromHypertritonMap {
8383
registryMC.add("hyperHe4Ptgen", "hyperHe4PtGen", HistType::kTH1F, {{nbin_pt, min_pt, max_pt, "p_{T} (GeV/c)"}});
8484
}
8585

86-
void processMC(aod::McParticles const& mcParticles, const MCTracks& tracks)
86+
void processMC(aod::McParticles const& /*mcParticles*/, const MCTracks& tracks)
8787
{
8888
for (const auto& track : tracks) {
8989
if (!track.has_mcParticle()) {

PWGLF/Tasks/Resonances/lambdav2.cxx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ struct lambdav2 {
273273
using ResoV0s = aod::V0Datas;
274274

275275
// void processData(EventCandidates::iterator const& collision, AllTrackCandidates const&, ResoV0s const& V0s, aod::BCs const&)
276-
void processData(EventCandidates::iterator const& collision, AllTrackCandidates const& tracks, ResoV0s const& V0s, aod::BCs const&)
276+
void processData(EventCandidates::iterator const& collision, AllTrackCandidates const& tracks, ResoV0s const& /*V0s*/, aod::BCs const&)
277277
{
278278

279279
if (!collision.sel8()) {
@@ -303,8 +303,8 @@ struct lambdav2 {
303303
auto qxZDCC = collision.qxZDCC();
304304
auto qyZDCA = collision.qyZDCA();
305305
auto qyZDCC = collision.qyZDCC();
306-
auto psiZDCC = collision.psiZDCC();
307-
auto psiZDCA = collision.psiZDCA();
306+
// auto psiZDCC = collision.psiZDCC();
307+
// auto psiZDCA = collision.psiZDCA();
308308

309309
histos.fill(HIST("hCentrality"), centrality);
310310

@@ -350,12 +350,12 @@ struct lambdav2 {
350350
auto ux = TMath::Cos(GetPhiInRange(track.phi()));
351351
auto uy = TMath::Sin(GetPhiInRange(track.phi()));
352352

353-
auto uxQxp = ux * qxZDCA;
354-
auto uyQyp = uy * qyZDCA;
355-
auto uxyQxyp = uxQxp + uyQyp;
356-
auto uxQxt = ux * qxZDCC;
357-
auto uyQyt = uy * qyZDCC;
358-
auto uxyQxyt = uxQxt + uyQyt;
353+
// auto uxQxp = ux * qxZDCA;
354+
// auto uyQyp = uy * qyZDCA;
355+
// auto uxyQxyp = uxQxp + uyQyp;
356+
// auto uxQxt = ux * qxZDCC;
357+
// auto uyQyt = uy * qyZDCC;
358+
// auto uxyQxyt = uxQxt + uyQyt;
359359
auto oddv1 = ux * (qxZDCA - qxZDCC) + uy * (qyZDCA - qyZDCC);
360360
auto evenv1 = ux * (qxZDCA + qxZDCC) + uy * (qyZDCA + qyZDCC);
361361

PWGLF/Tasks/Strangeness/hStrangeCorrelation.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ struct correlateStrangeness {
453453
}
454454
}
455455

456-
void fillCorrelationsHadron(aod::TriggerTracks const& triggers, aod::AssocHadrons const& assocs, bool mixing, float pvz, float mult, int indexAssoc)
456+
void fillCorrelationsHadron(aod::TriggerTracks const& triggers, aod::AssocHadrons const& assocs, bool mixing, float pvz, float mult, int /*indexAssoc*/)
457457
{
458458

459459
for (auto& triggerTrack : triggers) {

0 commit comments

Comments
 (0)