Skip to content

Commit 927ab79

Browse files
vkuceraalibuild
andauthored
[PWGLF] Fix compilation warnings (#8386)
Co-authored-by: ALICE Builder <alibuild@users.noreply.github.com>
1 parent 2d7f0ee commit 927ab79

File tree

15 files changed

+54
-55
lines changed

15 files changed

+54
-55
lines changed

PWGLF/TableProducer/Common/spvector.cxx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -422,11 +422,6 @@ struct spvector {
422422
qxZDCC = qxZDCC / sumC;
423423
qyZDCC = qyZDCC / sumC;
424424
}
425-
} else {
426-
qxZDCA = qxZDCA;
427-
qxZDCC = qxZDCC;
428-
qyZDCA = qyZDCA;
429-
qyZDCC = qyZDCC;
430425
}
431426
if (sumA <= 1e-4 || sumC <= 1e-4) {
432427
qxZDCA = 0.0;

PWGLF/TableProducer/Nuspex/he3HadronFemto.cxx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,13 +82,13 @@ namespace
8282
constexpr double betheBlochDefault[1][6]{{-1.e32, -1.e32, -1.e32, -1.e32, -1.e32, -1.e32}};
8383
static const std::vector<std::string> betheBlochParNames{"p0", "p1", "p2", "p3", "p4", "resolution"};
8484

85-
constexpr float he3Mass = o2::constants::physics::MassHelium3;
86-
constexpr float protonMass = o2::constants::physics::MassProton;
87-
constexpr float pionchargedMass = o2::constants::physics::MassPiPlus;
85+
// constexpr float he3Mass = o2::constants::physics::MassHelium3;
86+
// constexpr float protonMass = o2::constants::physics::MassProton;
87+
// constexpr float pionchargedMass = o2::constants::physics::MassPiPlus;
8888
constexpr int li4PDG = 1000030040;
8989
constexpr int prPDG = 2212;
9090
constexpr int hePDG = 1000020030;
91-
constexpr int pichargedPDG = 211;
91+
// constexpr int pichargedPDG = 211;
9292

9393
enum Selections {
9494
kNoCuts = 0,

PWGLF/TableProducer/Strangeness/Converters/v0mlscoresconverter.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ struct v0mlscoresconverter {
2626

2727
void process(aod::V0Cores const& v0cores)
2828
{
29-
for (auto& values : v0cores) {
29+
for (int64_t i = 0; i < v0cores.size(); ++i) {
3030
gammaMLSelections(-1);
3131
lambdaMLSelections(-1);
3232
antiLambdaMLSelections(-1);

PWGLF/TableProducer/Strangeness/cascadebuilder.cxx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@
3636
// david.dobrigkeit.chinellato@cern.ch
3737
//
3838

39+
#include <string>
40+
#include <vector>
3941
#include <cmath>
4042
#include <array>
4143
#include <cstdlib>
@@ -2256,7 +2258,7 @@ struct cascadePreselector {
22562258
void checkAndFinalize()
22572259
{
22582260
// parse + publish tag table now
2259-
for (int ii = 0; ii < selectionMask.size(); ii++) {
2261+
for (std::size_t ii = 0; ii < selectionMask.size(); ii++) {
22602262
histos.fill(HIST("hPreselectorStatistics"), 0.0f); // All cascades
22612263
bool validCascade = bitcheck(selectionMask[ii], bitTrackQuality);
22622264
if (validCascade) {

PWGLF/TableProducer/Strangeness/cascadeflow.cxx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -916,7 +916,6 @@ struct cascadeFlow {
916916
histosMCGen.fill(HIST("hNEventsMC"), 4.5);
917917

918918
int biggestNContribs = -1;
919-
int bestCollisionIndex = -1;
920919
float centrality = 100.5f;
921920
int nCollisions = 0;
922921
for (auto const& coll : collisions) {
@@ -925,7 +924,6 @@ struct cascadeFlow {
925924
}
926925
if (biggestNContribs < coll.multPVTotalContributors()) {
927926
biggestNContribs = coll.multPVTotalContributors();
928-
bestCollisionIndex = coll.globalIndex();
929927
centrality = coll.centFT0C();
930928
}
931929
nCollisions++;

PWGLF/TableProducer/Strangeness/lambdakzerobuilder.cxx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@
3636
// david.dobrigkeit.chinellato@cern.ch
3737
//
3838

39+
#include <string>
40+
#include <vector>
3941
#include <cmath>
4042
#include <array>
4143
#include <cstdlib>
@@ -1562,7 +1564,7 @@ struct lambdakzeroPreselector {
15621564
void checkAndFinalize()
15631565
{
15641566
// parse + publish tag table now
1565-
for (int ii = 0; ii < selectionMask.size(); ii++) {
1567+
for (std::size_t ii = 0; ii < selectionMask.size(); ii++) {
15661568
histos.fill(HIST("hPreselectorStatistics"), 0.0f); // all V0s
15671569
bool validV0 = bitcheck(selectionMask[ii], bitTrackQuality);
15681570
if (validV0) {

PWGLF/TableProducer/Strangeness/lambdakzeromcfinder.cxx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,18 @@
2424
// david.dobrigkeit.chinellato@cern.ch
2525
//
2626

27-
#include <Math/Vector4D.h>
2827
#include <cmath>
2928
#include <array>
3029
#include <cstdlib>
30+
#include <vector>
31+
32+
#include "Math/Vector4D.h"
33+
#include <TFile.h>
34+
#include <TLorentzVector.h>
35+
#include <TH1F.h>
36+
#include <TH2F.h>
37+
#include <TProfile.h>
38+
#include <TPDGCode.h>
3139

3240
#include "Framework/runDataProcessing.h"
3341
#include "Framework/AnalysisTask.h"
@@ -50,14 +58,6 @@
5058
#include "CommonConstants/PhysicsConstants.h"
5159
#include "PWGMM/Mult/DataModel/Index.h" // for Particles2Tracks table
5260

53-
#include <TFile.h>
54-
#include <TLorentzVector.h>
55-
#include <TH1F.h>
56-
#include <TH2F.h>
57-
#include <TProfile.h>
58-
#include <TPDGCode.h>
59-
#include <TDatabasePDG.h>
60-
6161
using namespace o2;
6262
using namespace o2::framework;
6363
using namespace o2::framework::expressions;
@@ -351,7 +351,7 @@ struct lambdakzeromcfinder {
351351
continue; // skip particles without decay mothers
352352
for (auto& posMotherParticle : posParticle.mothers_as<aod::McParticles>()) {
353353
// determine if mother particle satisfies any condition curently being searched for
354-
for (int ipdg = 0; ipdg < searchedV0PDG.size(); ipdg++)
354+
for (std::size_t ipdg = 0; ipdg < searchedV0PDG.size(); ipdg++)
355355
if (searchedV0PDG[ipdg] == posMotherParticle.pdgCode() && fabs(posMotherParticle.y()) < yPreFilter) {
356356
v0pdgIndex = ipdg; // index mapping to desired V0 species
357357
motherIndex = posMotherParticle.globalIndex();

PWGLF/Tasks/Nuspex/spectraTOF.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1124,7 +1124,7 @@ struct tofSpectra {
11241124
}
11251125

11261126
template <bool fillHistograms = false, typename TrackType, typename CollisionType>
1127-
bool isTrackSelected(TrackType const& track, CollisionType const& collision)
1127+
bool isTrackSelected(TrackType const& track, CollisionType const& /*collision*/)
11281128
{
11291129
if constexpr (fillHistograms) {
11301130
histos.fill(HIST("tracksel"), 1);

PWGLF/Tasks/Resonances/highmasslambda.cxx

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -838,13 +838,6 @@ struct highmasslambda {
838838
}
839839
auto anglesign = (v0.x() - collision1.posX()) * v0.px() + (v0.y() - collision1.posY()) * v0.py() + (v0.z() - collision1.posZ()) * v0.pz();
840840
anglesign = anglesign / TMath::Abs(anglesign);
841-
auto dcasum = 0.0;
842-
if (useSignDCAV0) {
843-
dcasum = anglesign * (v0.dcav0topv()) - track1.dcaXY();
844-
}
845-
if (!useSignDCAV0) {
846-
dcasum = v0.dcav0topv() - track1.dcaXY();
847-
}
848841

849842
if (occupancy1 < cfgOccupancyCut && occupancy2 < cfgOccupancyCut && Lambdac.M() > cMinLambdaMass && Lambdac.M() <= cMaxLambdaMass && TMath::Abs(Lambdac.Rapidity()) < confRapidity && Lambdac.Pt() > 2.0 && Lambdac.Pt() <= 6.0) {
850843
if (fillDefault) {

PWGLF/Tasks/Resonances/kstarpbpb.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ struct kstarpbpb {
375375
return result;
376376
}
377377
template <typename T>
378-
bool isFakeKaon(T const& track, int PID)
378+
bool isFakeKaon(T const& track, int /*PID*/)
379379
{
380380
const auto pglobal = track.p();
381381
const auto ptpc = track.tpcInnerParam();

0 commit comments

Comments
 (0)