Skip to content

Commit 6ef94b9

Browse files
authored
[PWGHF] Fix compilation warnings (#8384)
1 parent aa623cb commit 6ef94b9

File tree

8 files changed

+10
-11
lines changed

8 files changed

+10
-11
lines changed

PWGHF/D2H/TableProducer/candidateCreatorCharmResoReduced.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ struct HfCandidateCreatorCharmResoReduced {
279279
invMassD0 = candD.invMassD0Bar();
280280
}
281281
std::array<float, 3> pVecD = {candD.px(), candD.py(), candD.pz()};
282-
std::array<int, 3> dDaughtersIds = {candD.prong0Id(), candD.prong1Id(), candD.prong2Id()};
282+
283283
// loop on V0 or track candidates
284284
bool alreadyCounted{false};
285285
for (const auto& candV0Tr : candsV0Tr) {

PWGHF/D2H/TableProducer/candidateSelectorBsToDsPiReduced.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ struct HfCandidateSelectorBsToDsPiReduced {
139139
template <bool withDmesMl, typename Cands>
140140
void runSelection(Cands const& hfCandsBs,
141141
TracksPion const&,
142-
HfCandBsConfigs const& configs)
142+
HfCandBsConfigs const&)
143143
{
144144
for (const auto& hfCandBs : hfCandsBs) {
145145
int statusBsToDsPi = 0;

PWGHF/D2H/TableProducer/dataCreatorCharmResoReduced.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ struct HfDataCreatorCharmResoReduced {
520520
std::vector<int> idxBhadMothers{};
521521
float motherPt{-1.f};
522522
int indexRecReso{-1}, indexRecDstar{-1}, indexRecDplus{-1}, indexRecD0{-1}, indexRecK0{-1};
523-
int indexRecDstarToMu{-1}, indexRecD0ToMu{-1}, indexRecK0ToMu{-1}, indexRecResoToMu{-1}, indexRecResoPartReco{-1};
523+
int indexRecDstarToMu{-1}, indexRecK0ToMu{-1}, indexRecResoToMu{-1}, indexRecResoPartReco{-1};
524524

525525
if constexpr (decChannel == DecayChannel::DstarV0) {
526526
// Ds1 → D* K0 → (D0 π+) K0s → ((K-π+) π+)(π+π-)

PWGHF/D2H/Tasks/taskCharmResoReduced.cxx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ struct HfTaskCharmResoReduced {
192192
void fillCand(const Cand& candidate, const Coll& collision, const CharmBach& bach0, const V0Bach& bach1)
193193
{
194194
// Compute quantities to be saved
195-
float invMassReso, pdgMassReso, invMassBach0, invMassBach1, pdgMassBach0, pdgMassBach1, sign, invMassD0, cosThetaStar;
195+
float invMassReso{0}, pdgMassReso, invMassBach0, invMassBach1, pdgMassBach0, pdgMassBach1, sign, invMassD0, cosThetaStar;
196196
if (channel == DecayChannel::Ds1ToDstarK0s) {
197197
pdgMassReso = MassDS1;
198198
pdgMassBach0 = MassDStar;
@@ -362,7 +362,6 @@ struct HfTaskCharmResoReduced {
362362
for (const auto& particle : mcParticles) {
363363
auto ptParticle = particle.ptTrack();
364364
auto yParticle = particle.yTrack();
365-
auto etaParticle = particle.etaTrack();
366365
auto originParticle = particle.origin();
367366
auto flag = particle.flagMcMatchGen();
368367
if (yCandGenMax >= 0. && std::abs(yParticle) > yCandGenMax) {

PWGHF/HFC/TableProducer/correlatorHfeHadrons.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ struct HfCorrelatorHfeHadrons {
158158
// mix event electron-hadron correlation
159159

160160
template <typename TracksType, typename ElectronType, typename CollisionType1, typename CollisionType2>
161-
void fillMixCorrelation(CollisionType1 const& c1, CollisionType2 const& c2, ElectronType const& tracks1, TracksType const& tracks2)
161+
void fillMixCorrelation(CollisionType1 const&, CollisionType2 const& c2, ElectronType const& tracks1, TracksType const& tracks2)
162162
{
163163
if (!(isRun3 ? c2.sel8() : (c2.sel7() && c2.alias_bit(kINT7))))
164164
return;

PWGHF/HFL/Tasks/taskElectronWeakBoson.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ struct HfTaskElectronWeakBoson {
135135
}
136136

137137
void process(soa::Filtered<aod::Collisions>::iterator const& collision,
138-
SelectedClusters const& emcClusters,
138+
SelectedClusters const&,
139139
TrackEle const& tracks,
140140
o2::aod::EMCALMatchedTracks const& matchedtracks)
141141
{

PWGHF/TableProducer/treeCreatorXicToXiPiPi.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -788,7 +788,7 @@ struct HfTreeCreatorXicToXiPiPi {
788788
}
789789
PROCESS_SWITCH(HfTreeCreatorXicToXiPiPi, processMcKf, "Process MC with KF Particle reconstruction", false);
790790

791-
void processResiduals(SelectedCandidatesMc const& candidates,
791+
void processResiduals(SelectedCandidatesMc const&,
792792
aod::TracksWMc const& tracks,
793793
aod::McParticles const& particles)
794794
{

PWGHF/Tasks/taskMcValidation.cxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -715,7 +715,7 @@ struct HfTaskMcValidationRec {
715715
histDeltaSecondaryVertexZ[iHad] = registryMesons.add<TH1>(Form("%s/histDeltaSecondaryVertexZ", particleNames[iHad].data()), Form("Sec. Vertex difference reco - MC (MC matched) - %s; #Delta z (cm); entries", labels[iHad].data()), HistType::kTH1F, {axisDeltaVtx});
716716
histDeltaDecayLength[iHad] = registryMesons.add<TH1>(Form("%s/histDeltaDecayLength", particleNames[iHad].data()), Form("Decay length difference reco - MC (%s); #Delta L (cm); entries", labels[iHad].data()), HistType::kTH1F, {axisDeltaVtx});
717717
for (auto iOrigin = 0; iOrigin < 2; ++iOrigin) {
718-
histPtCentReco[iHad][iOrigin] = registryMesons.add<TH2>(Form("%s/histPtCentReco%s", particleNames[iHad].data(), originNames[iOrigin].data()), Form("Pt Cent reco %s %s; #it{p}_{T}^{reco} (GeV/#it{c}); Centrality (%); entries", originNames[iOrigin].data(), labels[iHad].data()), HistType::kTH2F, {axisPtD, axisCent});
718+
histPtCentReco[iHad][iOrigin] = registryMesons.add<TH2>(Form("%s/histPtCentReco%s", particleNames[iHad].data(), originNames[iOrigin].data()), Form("Pt Cent reco %s %s; #it{p}_{T}^{reco} (GeV/#it{c}); Centrality (%%); entries", originNames[iOrigin].data(), labels[iHad].data()), HistType::kTH2F, {axisPtD, axisCent});
719719
if (storeOccupancy) {
720720
histPtOccReco[iHad][iOrigin] = registryMesons.add<TH2>(Form("%s/histPtOccReco%s", particleNames[iHad].data(), originNames[iOrigin].data()), Form("Pt Cent reco %s %s; #it{p}_{T}^{reco} (GeV/#it{c}); Occupancy; entries", originNames[iOrigin].data(), labels[iHad].data()), HistType::kTH2F, {axisPtD, axisOcc});
721721
}
@@ -735,7 +735,7 @@ struct HfTaskMcValidationRec {
735735
histDeltaSecondaryVertexZ[iHad] = registryBaryons.add<TH1>(Form("%s/histDeltaSecondaryVertexZ", particleNames[iHad].data()), Form("Sec. Vertex difference reco - MC (MC matched) - %s; #Delta z (cm); entries", labels[iHad].data()), HistType::kTH1F, {axisDeltaVtx});
736736
histDeltaDecayLength[iHad] = registryBaryons.add<TH1>(Form("%s/histDeltaDecayLength", particleNames[iHad].data()), Form("Decay length difference reco - MC (%s); #Delta L (cm); entries", labels[iHad].data()), HistType::kTH1F, {axisDeltaVtx});
737737
for (auto iOrigin = 0; iOrigin < 2; ++iOrigin) {
738-
histPtCentReco[iHad][iOrigin] = registryBaryons.add<TH2>(Form("%s/histPtCentReco%s", particleNames[iHad].data(), originNames[iOrigin].data()), Form("Pt Cent reco %s %s; #it{p}_{T}^{reco} (GeV/#it{c}); Centrality (%); entries", originNames[iOrigin].data(), labels[iHad].data()), HistType::kTH2F, {axisPtD, axisCent});
738+
histPtCentReco[iHad][iOrigin] = registryBaryons.add<TH2>(Form("%s/histPtCentReco%s", particleNames[iHad].data(), originNames[iOrigin].data()), Form("Pt Cent reco %s %s; #it{p}_{T}^{reco} (GeV/#it{c}); Centrality (%%); entries", originNames[iOrigin].data(), labels[iHad].data()), HistType::kTH2F, {axisPtD, axisCent});
739739
if (storeOccupancy) {
740740
histPtOccReco[iHad][iOrigin] = registryBaryons.add<TH2>(Form("%s/histPtOccReco%s", particleNames[iHad].data(), originNames[iOrigin].data()), Form("Pt Cent reco %s %s; #it{p}_{T}^{reco} (GeV/#it{c}); Occupancy; entries", originNames[iOrigin].data(), labels[iHad].data()), HistType::kTH2F, {axisPtD, axisOcc});
741741
}
@@ -999,7 +999,7 @@ struct HfTaskMcValidationRec {
999999
// apply event selection
10001000
float centrality{105.f};
10011001
int occupancy = collision.trackOccupancyInTimeRange();
1002-
const auto rejectionMask = hfEvSel.getHfCollisionRejectionMask<true, centEstimator, aod::BCsWithTimestamps>(collision, centrality, ccdb, registry); // only needed to update centrality, no bitmask selection applied
1002+
hfEvSel.getHfCollisionRejectionMask<true, centEstimator, aod::BCsWithTimestamps>(collision, centrality, ccdb, registry); // only needed to update centrality, no bitmask selection applied
10031003
if (!collision.has_mcCollision()) {
10041004
return;
10051005
}

0 commit comments

Comments
 (0)