diff --git a/Common/TableProducer/qVectorsTable.cxx b/Common/TableProducer/qVectorsTable.cxx index 52f74cf1f3e..c8f946ca38c 100644 --- a/Common/TableProducer/qVectorsTable.cxx +++ b/Common/TableProducer/qVectorsTable.cxx @@ -66,9 +66,9 @@ struct qVectorsTable { struct : ConfigurableGroup { Configurable cfgURL{"cfgURL", "http://alice-ccdb.cern.ch", "Address of the CCDB to browse"}; - Configurable nolaterthan{"ccdb-no-later-than", - std::chrono::duration_cast(std::chrono::system_clock::now().time_since_epoch()).count(), - "Latest acceptable timestamp of creation for the object"}; + Configurable nolaterthan{"ccdb-no-later-than", + std::chrono::duration_cast(std::chrono::system_clock::now().time_since_epoch()).count(), + "Latest acceptable timestamp of creation for the object"}; } cfgCcdbParam; Configurable cfgCentEsti{"cfgCentEsti", diff --git a/Common/Tasks/ft0Qa.cxx b/Common/Tasks/ft0Qa.cxx index cf5ff2805f2..367dfc7f3a1 100644 --- a/Common/Tasks/ft0Qa.cxx +++ b/Common/Tasks/ft0Qa.cxx @@ -405,7 +405,7 @@ struct ft0QaTask { histos.fill(HIST("hBcCounterAll"), 1); - float multFV0A = 0.f; + // float multFV0A = 0.f; float multFT0A = 0.f; float multFT0C = 0.f; float multFT0M = 0.f; @@ -503,12 +503,12 @@ struct ft0QaTask { } } - if (bc.has_fv0a()) { - auto fv0a = bc.fv0a(); - for (auto amplitude : fv0a.amplitude()) { - multFV0A += amplitude; - } - } + // if (bc.has_fv0a()) { + // auto fv0a = bc.fv0a(); + // for (auto amplitude : fv0a.amplitude()) { + // multFV0A += amplitude; + // } + // } } PROCESS_SWITCH(ft0QaTask, processBCs, "per-BC analysis", true); diff --git a/EventFiltering/PWGHF/HFFilter.cxx b/EventFiltering/PWGHF/HFFilter.cxx index 3793932ea1d..f4e86da6469 100644 --- a/EventFiltering/PWGHF/HFFilter.cxx +++ b/EventFiltering/PWGHF/HFFilter.cxx @@ -201,7 +201,7 @@ struct HfFilter { // Main struct for HF triggers helper.setPtDeltaMassRangeSigmaC(cutsPtDeltaMassCharmReso->get(0u, 6u), cutsPtDeltaMassCharmReso->get(1u, 6u), cutsPtDeltaMassCharmReso->get(0u, 7u), cutsPtDeltaMassCharmReso->get(1u, 7u), cutsPtDeltaMassCharmReso->get(2u, 6u), cutsPtDeltaMassCharmReso->get(2u, 7u)); helper.setPtRangeSoftKaonXicResoToSigmaC(ptCuts->get(0u, 5u), ptCuts->get(1u, 5u)); - hProcessedEvents = registry.add("fProcessedEvents", "HF - event filtered;;counts", HistType::kTH1F, {{kNtriggersHF + 2, -0.5, kNtriggersHF + 1.5}}); + hProcessedEvents = registry.add("fProcessedEvents", "HF - event filtered;;counts", HistType::kTH1F, {{kNtriggersHF + 2, -0.5, +kNtriggersHF + 1.5}}); for (auto iBin = 0; iBin < kNtriggersHF + 2; ++iBin) { hProcessedEvents->GetXaxis()->SetBinLabel(iBin + 1, eventTitles[iBin].data()); } @@ -252,7 +252,7 @@ struct HfFilter { // Main struct for HF triggers if (activateQA > 1) { hProtonTPCPID = registry.add("fProtonTPCPID", "#it{N}_{#sigma}^{TPC} vs. #it{p} for selected protons;#it{p} (GeV/#it{c});#it{N}_{#sigma}^{TPC}", HistType::kTH2F, {pAxis, nSigmaAxis}); hProtonTOFPID = registry.add("fProtonTOFPID", "#it{N}_{#sigma}^{TOF} vs. #it{p} for selected protons;#it{p} (GeV/#it{c});#it{N}_{#sigma}^{TOF}", HistType::kTH2F, {pAxis, nSigmaAxis}); - hV0Selected = registry.add("fV0Selected", "Selections for V0s;;counts", HistType::kTH2F, {{10, -0.5, 9.5}, {kNV0, -0.5, kNV0 - 0.5}}); + hV0Selected = registry.add("fV0Selected", "Selections for V0s;;counts", HistType::kTH2F, {{10, -0.5, 9.5}, {kNV0, -0.5, +kNV0 - 0.5}}); for (int iV0{kPhoton}; iV0 < kNV0; ++iV0) { hV0Selected->GetYaxis()->SetBinLabel(iV0 + 1, v0Labels[iV0].data()); diff --git a/EventFiltering/PWGJE/fullJetFilter.cxx b/EventFiltering/PWGJE/fullJetFilter.cxx index fa4a4fcac69..25096b7bb7a 100644 --- a/EventFiltering/PWGJE/fullJetFilter.cxx +++ b/EventFiltering/PWGJE/fullJetFilter.cxx @@ -195,7 +195,7 @@ struct fullJetFilter { Float_t kMinEta = -1.; Float_t kMaxEta = 1.; - hProcessedEvents.setObject(new TH1D("hProcessedEvents", ";;Number of filtered events", kCategories, -0.5, kCategories - 0.5)); + hProcessedEvents.setObject(new TH1D("hProcessedEvents", ";;Number of filtered events", kCategories, -0.5, +kCategories - 0.5)); hEmcClusterPtEta.setObject(new TH2F("hEmcClusterPtEta", Form("Emc Clusters;%s;#eta", (f_ObservalbeGammaTrigger == 0) ? "E (GeV)" : "#it{p}_{T}"), nPtBins, kMinPt, kMaxPt / 2, nEtaBins, kMinEta, kMaxEta)); hEmcClusterPtPhi.setObject(new TH2F("hEmcClusterPtPhi", Form("Emc Clusters;%s;#phi", (f_ObservalbeGammaTrigger == 0) ? "E (GeV)" : "#it{p}_{T}"), nPtBins, kMinPt, kMaxPt / 2, nPhiBins, kMinPhi, kMaxPhi)); diff --git a/EventFiltering/PWGJE/jetFilter.cxx b/EventFiltering/PWGJE/jetFilter.cxx index e368b7219ee..1b3208330c2 100644 --- a/EventFiltering/PWGJE/jetFilter.cxx +++ b/EventFiltering/PWGJE/jetFilter.cxx @@ -129,7 +129,7 @@ struct jetFilter { auto scalers{std::get>(spectra.add( "fProcessedEvents", ";;Number of filtered events", HistType::kTH1F, - {{kAllObjects, -0.5, kAllObjects - 0.5}}))}; + {{kAllObjects, -0.5, +kAllObjects - 0.5}}))}; for (uint32_t iS{1}; iS <= highPtObjectsNames.size(); ++iS) { scalers->GetXaxis()->SetBinLabel(iS, highPtObjectsNames[iS - 1].data()); } diff --git a/EventFiltering/PWGLF/strangenessFilter.cxx b/EventFiltering/PWGLF/strangenessFilter.cxx index 64fd7548430..39b64f1d012 100644 --- a/EventFiltering/PWGLF/strangenessFilter.cxx +++ b/EventFiltering/PWGLF/strangenessFilter.cxx @@ -444,7 +444,7 @@ struct strangenessFilter { int omegacounter = 0; int omegalargeRcounter = 0; int triggcounterForEstimates = 0; - int triggcounter = 0; + // int triggcounter = 0; for (auto& casc : fullCasc) { // loop over cascades triggcounterForEstimates = 0; @@ -593,7 +593,7 @@ struct strangenessFilter { if (isTrackFilter && !mTrackSelector.IsSelected(track)) { continue; } - triggcounter++; + // triggcounter++; keepEvent[1] = true; } // end loop over tracks } diff --git a/EventFiltering/cefpTask.cxx b/EventFiltering/cefpTask.cxx index b2367657b56..94f79e1ce58 100644 --- a/EventFiltering/cefpTask.cxx +++ b/EventFiltering/cefpTask.cxx @@ -346,7 +346,7 @@ struct centralEventFilterTask { int64_t nEvents{collTabPtr->num_rows()}; std::vector outTrigger, outDecision; - int64_t nSelected{0}; + // int64_t nSelected{0}; for (auto& tableName : mDownscaling) { if (!pc.inputs().isValid(tableName.first)) { LOG(fatal) << tableName.first << " table is not valid."; @@ -382,7 +382,7 @@ struct centralEventFilterTask { if (mUniformGenerator(mGeneratorEngine) < downscaling) { mFiltered->Fill(binCenter); outDecision[entry] |= triggerBit; - nSelected++; + // nSelected++; } } entry++; diff --git a/PWGCF/EbyEFluctuations/Tasks/IdentifiedMeanPtFluctuations.cxx b/PWGCF/EbyEFluctuations/Tasks/IdentifiedMeanPtFluctuations.cxx index 223592b1eb6..be75c1c93b3 100644 --- a/PWGCF/EbyEFluctuations/Tasks/IdentifiedMeanPtFluctuations.cxx +++ b/PWGCF/EbyEFluctuations/Tasks/IdentifiedMeanPtFluctuations.cxx @@ -254,10 +254,10 @@ struct IdentifiedMeanPtFluctuations { double Q1pi = 0, Q2pi = 0; double Q1k = 0, Q2k = 0; double Q1p = 0, Q2p = 0; - double var1, var2, twopar_allcharge; - double var1pi, var2pi; - double var1k, var2k; - double var1p, var2p; + double var1 = 0, var2 = 0, twopar_allcharge = 0; + double var1pi = 0, var2pi = 0; + double var1k = 0, var2k = 0; + double var1p = 0, var2p = 0; // cent = 0; // sampling diff --git a/PWGCF/Flow/Tasks/FlowPbPbTask.cxx b/PWGCF/Flow/Tasks/FlowPbPbTask.cxx index e31113117f4..dafb8d5e810 100644 --- a/PWGCF/Flow/Tasks/FlowPbPbTask.cxx +++ b/PWGCF/Flow/Tasks/FlowPbPbTask.cxx @@ -514,8 +514,9 @@ struct FlowPbPbTask { // track weights float weff = 1, wacc = 1; - double weffEvent = 0, waccEvent = 0; - int TrackNum = 0; + double weffEvent = 0; + // double waccEvent = 0; + // int TrackNum = 0; double ptSum = 0., ptSum_Gap08 = 0.; double weffEvent_WithinGap08 = 0., weffEventSquare_WithinGap08 = 0.; double sum_ptSquare_wSquare_WithinGap08 = 0., sum_pt_wSquare_WithinGap08 = 0.; @@ -549,9 +550,9 @@ struct FlowPbPbTask { registry.fill(HIST("hDCAz"), track.dcaZ()); registry.fill(HIST("hDCAxy"), track.dcaXY(), track.pt()); weffEvent += weff; - waccEvent += wacc; + // waccEvent += wacc; ptSum += weff * track.pt(); - TrackNum++; + // TrackNum++; if (WithinEtaGap08) { ptSum_Gap08 += weff * track.pt(); sum_pt_wSquare_WithinGap08 += weff * weff * track.pt(); diff --git a/PWGCF/GenericFramework/Core/BootstrapProfile.cxx b/PWGCF/GenericFramework/Core/BootstrapProfile.cxx index ae97bb67400..db349a85fe7 100644 --- a/PWGCF/GenericFramework/Core/BootstrapProfile.cxx +++ b/PWGCF/GenericFramework/Core/BootstrapProfile.cxx @@ -79,7 +79,7 @@ TH1* BootstrapProfile::getHist(Int_t ind) if (fPresetWeights && fMultiRebin > 0) return getWeightBasedRebin(ind); if (ind < 0) { - if (reinterpret_cast(this)) { + if (reinterpret_cast(this)) { // FIXME: -Wnonnull-compare return getHistRebinned(reinterpret_cast(this)); //((TProfile*)this)->ProjectionX(Form("%s_hist",this->GetName())); } else { printf("Empty BootstrapProfile addressed, cannot get a histogram\n"); @@ -102,7 +102,7 @@ TH1* BootstrapProfile::getHist(Int_t ind) TProfile* BootstrapProfile::getProfile(Int_t ind) { if (ind < 0) { - if (reinterpret_cast(this)) { + if (reinterpret_cast(this)) { // FIXME: -Wnonnull-compare return reinterpret_cast(this); } else { printf("Empty BootstrapProfile addressed, cannot get a histogram\n"); @@ -124,7 +124,7 @@ TProfile* BootstrapProfile::getProfile(Int_t ind) Long64_t BootstrapProfile::Merge(TCollection* collist) { Long64_t nmergedpf = TProfile::Merge(collist); - Long64_t nmerged = 0; + // Long64_t nmerged = 0; BootstrapProfile* l_PBS = 0; TIter all_PBS(collist); while ((l_PBS = reinterpret_cast(all_PBS()))) { @@ -139,7 +139,7 @@ Long64_t BootstrapProfile::Merge(TCollection* collist) } for (Int_t i = 0; i < fListOfEntries->GetEntries(); i++) reinterpret_cast(fListOfEntries->At(i))->Add(reinterpret_cast(tarL->At(i))); - nmerged++; + // nmerged++; } return nmergedpf; }; diff --git a/PWGCF/GenericFramework/Core/FlowPtContainer.cxx b/PWGCF/GenericFramework/Core/FlowPtContainer.cxx index 8c586add9f9..d7b6b8dd114 100644 --- a/PWGCF/GenericFramework/Core/FlowPtContainer.cxx +++ b/PWGCF/GenericFramework/Core/FlowPtContainer.cxx @@ -366,6 +366,7 @@ TH1* FlowPtContainer::getCumulantHist(int ind, int m) return 0; if (ind + 1 < fCumulantList->GetEntries()) return reinterpret_cast(fCumulantList->At((ind + 1) * mpar + m - 1)); + return 0; } void FlowPtContainer::CreateCumulantList() { diff --git a/PWGCF/MultiparticleCorrelations/Core/MuPa-MemberFunctions.h b/PWGCF/MultiparticleCorrelations/Core/MuPa-MemberFunctions.h index 4479b682001..13b79930b6e 100644 --- a/PWGCF/MultiparticleCorrelations/Core/MuPa-MemberFunctions.h +++ b/PWGCF/MultiparticleCorrelations/Core/MuPa-MemberFunctions.h @@ -45,34 +45,34 @@ void BookBaseList() Form("fRunNumber = %s", tc.fRunNumber.Data())); fBasePro->GetXaxis()->SetBinLabel(eDryRun, "fDryRun"); - fBasePro->Fill(eDryRun - 0.5, (Int_t)tc.fDryRun); + fBasePro->Fill(+eDryRun - 0.5, (Int_t)tc.fDryRun); fBasePro->GetXaxis()->SetBinLabel(eVerbose, "fVerbose"); - fBasePro->Fill(eVerbose - 0.5, (Int_t)tc.fVerbose); + fBasePro->Fill(+eVerbose - 0.5, (Int_t)tc.fVerbose); fBasePro->GetXaxis()->SetBinLabel(eVerboseForEachParticle, "fVerboseForEachParticle"); - fBasePro->Fill(eVerboseForEachParticle - 0.5, (Int_t)tc.fVerboseForEachParticle); + fBasePro->Fill(+eVerboseForEachParticle - 0.5, (Int_t)tc.fVerboseForEachParticle); fBasePro->GetXaxis()->SetBinLabel(eDoAdditionalInsanityChecks, "fDoAdditionalInsanityChecks"); - fBasePro->Fill(eDoAdditionalInsanityChecks - 0.5, (Int_t)tc.fDoAdditionalInsanityChecks); + fBasePro->Fill(+eDoAdditionalInsanityChecks - 0.5, (Int_t)tc.fDoAdditionalInsanityChecks); fBasePro->GetXaxis()->SetBinLabel(eUseCCDB, "fUseCCDB"); - fBasePro->Fill(eUseCCDB - 0.5, (Int_t)tc.fUseCCDB); + fBasePro->Fill(+eUseCCDB - 0.5, (Int_t)tc.fUseCCDB); fBasePro->GetXaxis()->SetBinLabel(eWhichProcess, Form("WhichProcess = %s", tc.fWhichProcess.Data())); fBasePro->GetXaxis()->SetBinLabel(eRandomSeed, "fRandomSeed"); - fBasePro->Fill(eRandomSeed - 0.5, (Int_t)tc.fRandomSeed); + fBasePro->Fill(+eRandomSeed - 0.5, (Int_t)tc.fRandomSeed); fBasePro->GetXaxis()->SetBinLabel(eUseFisherYates, "fUseFisherYates"); - fBasePro->Fill(eUseFisherYates - 0.5, (Int_t)tc.fUseFisherYates); + fBasePro->Fill(+eUseFisherYates - 0.5, (Int_t)tc.fUseFisherYates); fBasePro->GetXaxis()->SetBinLabel(eFixedNumberOfRandomlySelectedTracks, "fFixedNumberOfRandomlySelectedTracks"); - fBasePro->Fill(eFixedNumberOfRandomlySelectedTracks - 0.5, (Int_t)tc.fFixedNumberOfRandomlySelectedTracks); + fBasePro->Fill(+eFixedNumberOfRandomlySelectedTracks - 0.5, (Int_t)tc.fFixedNumberOfRandomlySelectedTracks); fBasePro->GetXaxis()->SetBinLabel(eUseStopwatch, "fUseStopwatch"); - fBasePro->Fill(eUseStopwatch - 0.5, (Int_t)tc.fUseStopwatch); + fBasePro->Fill(+eUseStopwatch - 0.5, (Int_t)tc.fUseStopwatch); fBaseList->Add(fBasePro); @@ -870,11 +870,11 @@ void BookEventCutsHistograms() ec.fEventCutsPro->GetXaxis()->SetBinLabel(eTrigger, Form("fTrigger = %s", ec.fTrigger.Data())); ec.fEventCutsPro->GetXaxis()->SetBinLabel(eUseTrigger, "fUseTrigger"); - ec.fEventCutsPro->Fill(eUseTrigger - 0.5, (Int_t)ec.fUseTrigger); + ec.fEventCutsPro->Fill(+eUseTrigger - 0.5, (Int_t)ec.fUseTrigger); ec.fEventCutsPro->GetXaxis()->SetBinLabel(eUseSel7, "fUseSel7"); - ec.fEventCutsPro->Fill(eUseSel7 - 0.5, (Int_t)ec.fUseSel7); + ec.fEventCutsPro->Fill(+eUseSel7 - 0.5, (Int_t)ec.fUseSel7); ec.fEventCutsPro->GetXaxis()->SetBinLabel(eUseSel8, "fUseSel8"); - ec.fEventCutsPro->Fill(eUseSel8 - 0.5, (Int_t)ec.fUseSel8); + ec.fEventCutsPro->Fill(+eUseSel8 - 0.5, (Int_t)ec.fUseSel8); ec.fEventCutsPro->GetXaxis()->SetBinLabel(eCentralityEstimator, Form("fCentralityEstimator = %s", ec.fCentralityEstimator.Data())); ec.fEventCutsList->Add(ec.fEventCutsPro); diff --git a/PWGDQ/Core/HistogramsLibrary.cxx b/PWGDQ/Core/HistogramsLibrary.cxx index 0679b2c5cd3..51881ce7083 100644 --- a/PWGDQ/Core/HistogramsLibrary.cxx +++ b/PWGDQ/Core/HistogramsLibrary.cxx @@ -1004,7 +1004,7 @@ void o2::aod::dqhistograms::DefineHistograms(HistogramManager* hm, const char* h DelEtaBinLims[i] = -2 + i * 0.2; const int kDelPhiBins = 50; - double DelPhiBinLims[kDelEtaBins + 1]; + double DelPhiBinLims[kDelPhiBins + 1]; for (int i = 0; i <= kDelPhiBins; i++) DelPhiBinLims[i] = -8 + i * 0.32; diff --git a/PWGDQ/TableProducer/tableMaker.cxx b/PWGDQ/TableProducer/tableMaker.cxx index d2216c679fd..b4e0e6e3501 100644 --- a/PWGDQ/TableProducer/tableMaker.cxx +++ b/PWGDQ/TableProducer/tableMaker.cxx @@ -579,11 +579,11 @@ struct TableMaker { trackMFT.reserve(mftTracks.size()); trackMFTExtra.reserve(mftTracks.size()); // TODO add cuts on the MFT tracks - int nDel = 0; + // int nDel = 0; for (auto& mft : mftTracks) { if (false) // for now no cuts { - nDel++; + // nDel++; } else { // it passes the cuts and will be saved in the tables newMFTTableSize[mft.index()] = trackMFT.lastIndex(); } @@ -1185,7 +1185,7 @@ struct TableMaker { fStatsList.setObject(new TList()); fStatsList->SetOwner(kTRUE); std::vector eventLabels{"BCs", "Collisions before filtering", "Before cuts", "After cuts"}; - TH2I* histEvents = new TH2I("EventStats", "Event statistics", eventLabels.size(), -0.5, eventLabels.size() - 0.5, kNaliases + 1, -0.5, kNaliases + 0.5); + TH2I* histEvents = new TH2I("EventStats", "Event statistics", eventLabels.size(), -0.5, eventLabels.size() - 0.5, kNaliases + 1, -0.5, +kNaliases + 0.5); int ib = 1; for (auto label = eventLabels.begin(); label != eventLabels.end(); label++, ib++) { histEvents->GetXaxis()->SetBinLabel(ib, (*label).Data()); diff --git a/PWGDQ/Tasks/dqCorrelation.cxx b/PWGDQ/Tasks/dqCorrelation.cxx index d7e06bf306e..cfaa5252e72 100644 --- a/PWGDQ/Tasks/dqCorrelation.cxx +++ b/PWGDQ/Tasks/dqCorrelation.cxx @@ -318,8 +318,6 @@ struct DqCumulantFlow { } } - VarManager::fgValues[VarManager::kCentFT0C]; - for (auto dilepton : dileptons) { registry.fill(HIST("dimuon_mass"), dilepton.mass()); diff --git a/PWGDQ/Tasks/filterPPwithAssociation.cxx b/PWGDQ/Tasks/filterPPwithAssociation.cxx index 03ff2acc1b0..ce804d5264b 100644 --- a/PWGDQ/Tasks/filterPPwithAssociation.cxx +++ b/PWGDQ/Tasks/filterPPwithAssociation.cxx @@ -842,12 +842,12 @@ struct DQFilterPPTask { } // Loop over collisions - int event = 0; + // int event = 0; int eventsFired = 0; for (const auto& collision : collisions) { // skip those that do not pass our selection if (!collision.isDQEventSelected()) { - event++; + // event++; continue; } // group the tracks and muons for this collision @@ -860,7 +860,7 @@ struct DQFilterPPTask { filter = runFilterPP(collision, bcs, tracks, muons, groupedTrackIndices, groupedMuonIndices); } if (filter == 0) { - event++; + // event++; continue; } eventsFired++; @@ -947,7 +947,7 @@ struct DQFilterPPTask { } } } - event++; + // event++; } // At this point, we have all the non-null decisions for all collisions. diff --git a/PWGEM/Dilepton/Tasks/MCtemplates.cxx b/PWGEM/Dilepton/Tasks/MCtemplates.cxx index adabf6a389b..ec8c168da90 100644 --- a/PWGEM/Dilepton/Tasks/MCtemplates.cxx +++ b/PWGEM/Dilepton/Tasks/MCtemplates.cxx @@ -453,8 +453,8 @@ struct AnalysisSameEventPairing { // Loop over two track combinations uint8_t twoTrackFilter = 0; - uint32_t dileptonFilterMap = 0; - uint32_t dileptonMcDecision = 0; + // uint32_t dileptonFilterMap = 0; + // uint32_t dileptonMcDecision = 0; for (auto& [t1, t2] : combinations(tracks1, tracks2)) { if constexpr (TPairType == VarManager::kDecayToEE) { @@ -481,8 +481,8 @@ struct AnalysisSameEventPairing { } } // end loop over MC signals - dileptonFilterMap = twoTrackFilter; - dileptonMcDecision = mcDecision; + // dileptonFilterMap = twoTrackFilter; + // dileptonMcDecision = mcDecision; // Loop over all fulfilled cuts and fill pair histograms for (unsigned int icut = 0; icut < ncuts; icut++) { diff --git a/PWGEM/Dilepton/Tasks/emEfficiencyEE.cxx b/PWGEM/Dilepton/Tasks/emEfficiencyEE.cxx index dac157ab454..5d7ecbb6ecc 100644 --- a/PWGEM/Dilepton/Tasks/emEfficiencyEE.cxx +++ b/PWGEM/Dilepton/Tasks/emEfficiencyEE.cxx @@ -220,7 +220,7 @@ struct AnalysisEventQa { std::map fMCEventLabels; int fMCCounters = 0; - int fEvCounters = 0; + // int fEvCounters = 0; // First loop @@ -230,7 +230,7 @@ struct AnalysisEventQa { eventFilter = uint32_t(event.isEventSelected()); if (!eventFilter) continue; - fEvCounters++; + // fEvCounters++; registry.fill(HIST("RecEvent"), 0.5); Int_t midrap = 0; diff --git a/PWGEM/Tasks/phosNbar.cxx b/PWGEM/Tasks/phosNbar.cxx index 9d6d43aa29c..26bcc3530c9 100644 --- a/PWGEM/Tasks/phosNbar.cxx +++ b/PWGEM/Tasks/phosNbar.cxx @@ -438,7 +438,7 @@ struct phosNbar { } // Find optimal region double maxCPA = -1; - int iMax; + int iMax = -1; for (int i = 0; i < npoints; i++) { if (st[i].first > maxCPA) { maxCPA = st[i].first; diff --git a/PWGHF/ALICE3/TableProducer/treeCreatorChicToJpsiGamma.cxx b/PWGHF/ALICE3/TableProducer/treeCreatorChicToJpsiGamma.cxx index 67883eff199..c7df4a673e8 100644 --- a/PWGHF/ALICE3/TableProducer/treeCreatorChicToJpsiGamma.cxx +++ b/PWGHF/ALICE3/TableProducer/treeCreatorChicToJpsiGamma.cxx @@ -150,7 +150,7 @@ struct HfTreeCreatorChicToJpsiGamma { } // Filling candidate properties - int indexCand = 0; + // int indexCand = 0; rowCandidateFull.reserve(candidates.size()); for (const auto& candidate : candidates) { std::array pvecChic = {candidate.px(), candidate.py(), candidate.pz()}; @@ -163,7 +163,7 @@ struct HfTreeCreatorChicToJpsiGamma { auto alpha = (pl1 - pl2) / (pl1 + pl2); auto qt = std::sqrt(pjpsi * pjpsi - pl1 * pl1); - indexCand++; + // indexCand++; auto fillTable = [&](int CandFlag, int FunctionSelection, float FunctionInvMass, diff --git a/PWGHF/ALICE3/TableProducer/treeCreatorXToJpsiPiPi.cxx b/PWGHF/ALICE3/TableProducer/treeCreatorXToJpsiPiPi.cxx index 527605893e6..e15aa64e07e 100644 --- a/PWGHF/ALICE3/TableProducer/treeCreatorXToJpsiPiPi.cxx +++ b/PWGHF/ALICE3/TableProducer/treeCreatorXToJpsiPiPi.cxx @@ -173,13 +173,13 @@ struct HfTreeCreatorXToJpsiPiPi { } // Filling candidate properties - int indexCand = 0; + // int indexCand = 0; rowCandidateFull.reserve(candidates.size()); for (const auto& candidate : candidates) { if (!candidate.isSelXToJpsiToMuMuPiPi()) { continue; } - indexCand++; + // indexCand++; auto fillTable = [&](int CandFlag, int FunctionSelection, float FunctionInvMass, diff --git a/PWGHF/HFC/TableProducer/correlatorDsHadrons.cxx b/PWGHF/HFC/TableProducer/correlatorDsHadrons.cxx index 7f351750bc6..5fb90aed48a 100644 --- a/PWGHF/HFC/TableProducer/correlatorDsHadrons.cxx +++ b/PWGHF/HFC/TableProducer/correlatorDsHadrons.cxx @@ -251,7 +251,7 @@ struct HfCorrelatorDsHadrons { registry.add("hEtaMcGen", "Ds,Hadron particles - MC Gen", {HistType::kTH1F, {axisEta}}); registry.add("hPhiMcGen", "Ds,Hadron particles - MC Gen", {HistType::kTH1F, {axisPhi}}); // Histograms for efficiencies - auto hCandidates = registry.add("hCandidates", "Candidate count at different steps", {HistType::kStepTHnF, {axisPtD, axisMultFT0M, {RecoDecay::OriginType::NonPrompt + 1, RecoDecay::OriginType::None - 0.5, RecoDecay::OriginType::NonPrompt + 0.5}}, kCandidateNSteps}); + auto hCandidates = registry.add("hCandidates", "Candidate count at different steps", {HistType::kStepTHnF, {axisPtD, axisMultFT0M, {RecoDecay::OriginType::NonPrompt + 1, +RecoDecay::OriginType::None - 0.5, +RecoDecay::OriginType::NonPrompt + 0.5}}, kCandidateNSteps}); hCandidates->GetAxis(0)->SetTitle("#it{p}_{T} (GeV/#it{c})"); hCandidates->GetAxis(1)->SetTitle("multiplicity"); hCandidates->GetAxis(2)->SetTitle("Charm hadron origin"); diff --git a/PWGHF/Tasks/taskMcEfficiency.cxx b/PWGHF/Tasks/taskMcEfficiency.cxx index d5894e59ed3..c7d9a808632 100644 --- a/PWGHF/Tasks/taskMcEfficiency.cxx +++ b/PWGHF/Tasks/taskMcEfficiency.cxx @@ -80,7 +80,7 @@ struct HfTaskMcEfficiency { LOGP(fatal, "Data and MC process functions cannot run simultaneously!"); } - auto hCandidates = registry.add("hCandidates", "Candidate count at different steps", {HistType::kStepTHnF, {axisPt, axisMass, axisPdg, axisCPA, {2, -0.5, 1.5, "collision matched"}, {RecoDecay::OriginType::NonPrompt + 1, RecoDecay::OriginType::None - 0.5, RecoDecay::OriginType::NonPrompt + 0.5}}, kHFNSteps}); + auto hCandidates = registry.add("hCandidates", "Candidate count at different steps", {HistType::kStepTHnF, {axisPt, axisMass, axisPdg, axisCPA, {2, -0.5, 1.5, "collision matched"}, {RecoDecay::OriginType::NonPrompt + 1, +RecoDecay::OriginType::None - 0.5, +RecoDecay::OriginType::NonPrompt + 0.5}}, kHFNSteps}); hCandidates->GetAxis(0)->SetTitle("#it{p}_{T} (GeV/#it{c})"); hCandidates->GetAxis(1)->SetTitle("#it{m}_{inv} (GeV/#it{c}^{2})"); hCandidates->GetAxis(2)->SetTitle("PDG code"); diff --git a/PWGHF/Tasks/taskMcEfficiencyToXiPi.cxx b/PWGHF/Tasks/taskMcEfficiencyToXiPi.cxx index 730d95069ad..cf7db76036a 100644 --- a/PWGHF/Tasks/taskMcEfficiencyToXiPi.cxx +++ b/PWGHF/Tasks/taskMcEfficiencyToXiPi.cxx @@ -73,7 +73,7 @@ struct HfTaskMcEfficiencyToXiPi { void init(InitContext&) { - auto hCandidates = registry.add("hCandidates", "Candidate count at different steps", {HistType::kStepTHnF, {axisPt, axisMass, {2, -0.5, 1.5, "collision matched"}, {RecoDecay::OriginType::NonPrompt + 1, RecoDecay::OriginType::None - 0.5, RecoDecay::OriginType::NonPrompt + 0.5}}, kHFNSteps}); + auto hCandidates = registry.add("hCandidates", "Candidate count at different steps", {HistType::kStepTHnF, {axisPt, axisMass, {2, -0.5, 1.5, "collision matched"}, {RecoDecay::OriginType::NonPrompt + 1, +RecoDecay::OriginType::None - 0.5, +RecoDecay::OriginType::NonPrompt + 0.5}}, kHFNSteps}); hCandidates->GetAxis(0)->SetTitle("#it{p}_{T} (GeV/#it{c})"); hCandidates->GetAxis(1)->SetTitle("#it{m}_{inv} (GeV/#it{c}^{2})"); hCandidates->GetAxis(2)->SetTitle("Collision matched"); diff --git a/PWGJE/Tasks/emcvertexselectionqa.cxx b/PWGJE/Tasks/emcvertexselectionqa.cxx index 0d7369f7d9e..9d3a33a2443 100644 --- a/PWGJE/Tasks/emcvertexselectionqa.cxx +++ b/PWGJE/Tasks/emcvertexselectionqa.cxx @@ -130,8 +130,8 @@ struct EmcVertexSelectionQA { std::vector nVtxContributors; for (auto& col : colsinbc) { // Loop over all collisions/vertices int ivtxquality = 0; // 0: TPC/ITS contributor, 1: TRD contributor , 2: TOF contributor - int nITStracks = 0; - int nTPCtracks = 0; + // int nITStracks = 0; + // int nTPCtracks = 0; int nTOFtracks = 0; int nTRDtracks = 0; int nPVContributorTracks = 0; @@ -142,8 +142,8 @@ struct EmcVertexSelectionQA { if (!track.isPVContributor()) { continue; } - nITStracks += track.hasITS(); - nTPCtracks += track.hasTPC(); + // nITStracks += track.hasITS(); + // nTPCtracks += track.hasTPC(); nTOFtracks += track.hasTOF(); nTRDtracks += track.hasTRD() && !track.hasTOF(); TrackDCA.push_back(track.dcaXY()); diff --git a/PWGLF/TableProducer/LFResonanceInitializer.cxx b/PWGLF/TableProducer/LFResonanceInitializer.cxx index 49b0da6f7e9..2d236b357d5 100644 --- a/PWGLF/TableProducer/LFResonanceInitializer.cxx +++ b/PWGLF/TableProducer/LFResonanceInitializer.cxx @@ -879,7 +879,7 @@ struct reso2initializer { } // MC histograms if (doprocessMCGenCount) { - AxisSpec EvtClassAxis = {kECend - 1, kECbegin + 0.5, kECend - 0.5, "", "event class"}; + AxisSpec EvtClassAxis = {kECend - 1, +kECbegin + 0.5, +kECend - 0.5, "", "event class"}; AxisSpec ZAxis = {CfgVtxBins, "zaxis"}; AxisSpec CentAxis = {binsCent, "centrality"}; qaRegistry.add("Event/totalEventGenMC", "totalEventGenMC", {HistType::kTHnSparseF, {EvtClassAxis}}); diff --git a/PWGLF/TableProducer/LFStrangeTreeCreator.cxx b/PWGLF/TableProducer/LFStrangeTreeCreator.cxx index 11815e69a42..f3581deabde 100644 --- a/PWGLF/TableProducer/LFStrangeTreeCreator.cxx +++ b/PWGLF/TableProducer/LFStrangeTreeCreator.cxx @@ -379,7 +379,7 @@ struct LFStrangeTreeCreator { if (std::abs(mcPart.pdgCode()) != 3122) continue; - std::array secVtx; + std::array secVtx{0.f}; std::array primVtx = {mcPart.vx(), mcPart.vy(), mcPart.vz()}; std::array momMother = {mcPart.px(), mcPart.py(), mcPart.pz()}; for (auto& mcDaught : mcPart.daughters_as()) { diff --git a/PWGLF/TableProducer/epvector.cxx b/PWGLF/TableProducer/epvector.cxx index 6088a9177dc..571b725d76b 100644 --- a/PWGLF/TableProducer/epvector.cxx +++ b/PWGLF/TableProducer/epvector.cxx @@ -66,7 +66,7 @@ struct epvector { // Configurables. struct : ConfigurableGroup { Configurable cfgURL{"cfgURL", "http://alice-ccdb.cern.ch", "Address of the CCDB to browse"}; - Configurable nolaterthan{"ccdb-no-later-than", std::chrono::duration_cast(std::chrono::system_clock::now().time_since_epoch()).count(), "Latest acceptable timestamp of creation for the object"}; + Configurable nolaterthan{"ccdb-no-later-than", std::chrono::duration_cast(std::chrono::system_clock::now().time_since_epoch()).count(), "Latest acceptable timestamp of creation for the object"}; } cfgCcdbParam; // Enable access to the CCDB for the offset and correction constants and save them in dedicated variables. diff --git a/PWGLF/TableProducer/hyhe4builder.cxx b/PWGLF/TableProducer/hyhe4builder.cxx index f4330b039e4..5ae8f5a34b8 100644 --- a/PWGLF/TableProducer/hyhe4builder.cxx +++ b/PWGLF/TableProducer/hyhe4builder.cxx @@ -111,11 +111,11 @@ struct hyhefourbuilder { void init(InitContext& context) { - const AxisSpec axisMassHyHe4{(int)1000, 3.5f, 4.5f, "Hyperhelium4 Mass Distribution (GeV/c^{2})"}; - const AxisSpec axisNCandidates{(int)100, 0.0f, 100.0f, "Number of 3-body candidates"}; + const AxisSpec axisMassHyHe4{1000, 3.5f, 4.5f, "Hyperhelium4 Mass Distribution (GeV/c^{2})"}; + const AxisSpec axisNCandidates{100, 0.0f, 100.0f, "Number of 3-body candidates"}; - const AxisSpec axisEventCounter{(int)1, 0.0f, 1.0f, "Number of events"}; - const AxisSpec axisPt{(int)1000, 0.0f, 10.0f, "#it{p}_{T} (GeV/#it{c})"}; + const AxisSpec axisEventCounter{1, 0.0f, 1.0f, "Number of events"}; + const AxisSpec axisPt{1000, 0.0f, 10.0f, "#it{p}_{T} (GeV/#it{c})"}; // Base counters histos.add("hNEvents", "hNEvents", kTH1F, {axisEventCounter}); @@ -361,7 +361,7 @@ struct hyhefourbuilder { void process(aod::Collisions const& collisions, soa::Filtered const& d3bodys, FullTracksExtIU const&, aod::BCsWithTimestamps const&) { - long eventCounter = 0; + int64_t eventCounter = 0; for (const auto& collision : collisions) { eventCounter++; // Fire up CCDB @@ -402,7 +402,7 @@ struct hyHe4Preselector { void init(InitContext& context) { - const AxisSpec hEventCounter{(int)1, 0.0f, 1.0f, "Number of events"}; + const AxisSpec hEventCounter{1, 0.0f, 1.0f, "Number of events"}; histos.add("hNEvents", "hNEvents", kTH1F, {hEventCounter}); } @@ -433,9 +433,9 @@ struct hyHe4Preselector { auto const& trackProng1 = d3body.template track1_as(); auto const& trackProng2 = d3body.template track2_as(); - int lPDG0 = -1; - int lPDG1 = -1; - int lPDG2 = -1; + // int lPDG0 = -1; + // int lPDG1 = -1; + // int lPDG2 = -1; // Association check // Lets do something to identify the PID of particles @@ -443,9 +443,9 @@ struct hyHe4Preselector { auto lMCtrackProng0 = trackProng0.template mcParticle_as(); auto lMCtrackProng1 = trackProng1.template mcParticle_as(); auto lMCtrackProng2 = trackProng2.template mcParticle_as(); - lPDG0 = lMCtrackProng0.pdgCode(); - lPDG1 = lMCtrackProng1.pdgCode(); - lPDG2 = lMCtrackProng2.pdgCode(); + // lPDG0 = lMCtrackProng0.pdgCode(); + // lPDG1 = lMCtrackProng1.pdgCode(); + // lPDG2 = lMCtrackProng2.pdgCode(); if (lMCtrackProng0.has_mothers() && lMCtrackProng1.has_mothers() && lMCtrackProng2.has_mothers()) { for (auto& lProng0Mother : lMCtrackProng0.template mothers_as()) { for (auto& lProng1Mother : lMCtrackProng1.template mothers_as()) { @@ -472,9 +472,9 @@ struct hyHe4Preselector { /// This process function ensures that all 3 body candidates are built. It will simply tag everything as true. void processBuildAll(aod::Collisions const& collisions, aod::Decay3Bodys const& d3bodys, aod::TracksExtra const&) { - long eventCounter = 0; + // int64_t eventCounter = 0; for (const auto& d3body : d3bodys) { - eventCounter++; + // eventCounter++; bool lIsQualityInteresting = false; checkTrackQuality(d3body, lIsQualityInteresting); hyhetags(lIsQualityInteresting, true, true, true, true); diff --git a/PWGLF/TableProducer/lithium4analysis.cxx b/PWGLF/TableProducer/lithium4analysis.cxx index 127de74ba8c..19ae25e93c4 100644 --- a/PWGLF/TableProducer/lithium4analysis.cxx +++ b/PWGLF/TableProducer/lithium4analysis.cxx @@ -154,7 +154,7 @@ struct lithium4analysis { histos.add("h2NsigmaHe3TPC", "NsigmaHe3 TPC distribution; Signed #it{p}/#it{z} (GeV/#it{c}); n#sigma_{TPC}({}^{3}He)", kTH2F, {{20, -5.0f, 5.0f}, {200, -5.0f, 5.0f}}); histos.add("h2NsigmaProtonTPC", "NsigmaProton TPC distribution; Signed #it{p}/#it{z} (GeV/#it{c}); n#sigma_{TPC}(p)", kTH2F, {{20, -5.0f, 5.0f}, {200, -5.0f, 5.0f}}); histos.add("h2NsigmaProtonTOF", "NsigmaProton TOF distribution; #it{p}_{T} (GeV/#it{c}); n#sigma_{TOF}(p)", kTH2F, {{20, -5.0f, 5.0f}, {200, -5.0f, 5.0f}}); - histos.add("hTrackSel", "Accepted tracks", kTH1F, {{Selections::kAll, -0.5, Selections::kAll - 0.5}}); + histos.add("hTrackSel", "Accepted tracks", kTH1F, {{Selections::kAll, -0.5, +Selections::kAll - 0.5}}); for (int i = 0; i < 5; i++) { mBBparamsHe[i] = cfgBetheBlochParams->get("He3", Form("p%i", i)); diff --git a/PWGLF/TableProducer/threebodyRecoTask.cxx b/PWGLF/TableProducer/threebodyRecoTask.cxx index 29c6c0db307..449c5f5544c 100644 --- a/PWGLF/TableProducer/threebodyRecoTask.cxx +++ b/PWGLF/TableProducer/threebodyRecoTask.cxx @@ -635,7 +635,7 @@ struct threebodyRecoTask { continue; } bool isSurEvSelection = isGoodCollision[mcparticle.mcCollisionId()]; - std::array posSV; + std::array posSV{0.f}; for (auto& mcDaughter : mcparticle.daughters_as()) { if (std::abs(mcDaughter.pdgCode()) == bachelorPdgCode) { posSV = {mcDaughter.vx(), mcDaughter.vy(), mcDaughter.vz()}; diff --git a/PWGLF/Tasks/Nuspex/hypertriton3bodyMCQA.cxx b/PWGLF/Tasks/Nuspex/hypertriton3bodyMCQA.cxx index fcdc624cc71..9e31b481d66 100644 --- a/PWGLF/Tasks/Nuspex/hypertriton3bodyMCQA.cxx +++ b/PWGLF/Tasks/Nuspex/hypertriton3bodyMCQA.cxx @@ -665,12 +665,12 @@ struct hypertriton3bodyMcParticleCount { registry.fill(HIST("hMcRecoInvMass"), RecoDecay::m(array{array{dauProtonMom[0], dauProtonMom[1], dauProtonMom[2]}, array{dauPionMom[0], dauPionMom[1], dauPionMom[2]}, array{dauDeuteronMom[0], dauDeuteronMom[1], dauDeuteronMom[2]}}, array{o2::constants::physics::MassProton, o2::constants::physics::MassPionCharged, o2::constants::physics::MassDeuteron})); registry.fill(HIST("h3dMCDecayedHypertriton"), mcparticle.y(), mcparticle.pt(), MClifetime); - int daughterPionCount = 0; - for (auto& mcparticleDaughter : mcparticle.daughters_as()) { - if (std::abs(mcparticleDaughter.pdgCode()) == 211) { - daughterPionCount++; - } - } + // int daughterPionCount = 0; + // for (auto& mcparticleDaughter : mcparticle.daughters_as()) { + // if (std::abs(mcparticleDaughter.pdgCode()) == 211) { + // daughterPionCount++; + // } + // } // Count for hypertriton N_gen if (TMath::Abs(mcparticle.y()) < 1) { diff --git a/PWGLF/Tasks/Resonances/chargedkstaranalysis.cxx b/PWGLF/Tasks/Resonances/chargedkstaranalysis.cxx index 4e0ae317909..d5863924ec8 100644 --- a/PWGLF/Tasks/Resonances/chargedkstaranalysis.cxx +++ b/PWGLF/Tasks/Resonances/chargedkstaranalysis.cxx @@ -728,7 +728,7 @@ struct chargedkstaranalysis { rGenParticles.fill(HIST("hMC"), 6.5); auto daughts = false; auto daughtp = false; - int count = 0; + // int count = 0; for (auto kCurrentDaughter : kDaughters) { // LOG(info) << "Daughters PDG:\t" << count<<" "< LHpt) { LHpt = trk.pt(); diff --git a/PWGLF/Tasks/Resonances/lambda1520analysis.cxx b/PWGLF/Tasks/Resonances/lambda1520analysis.cxx index fa261382d8b..d237e569106 100644 --- a/PWGLF/Tasks/Resonances/lambda1520analysis.cxx +++ b/PWGLF/Tasks/Resonances/lambda1520analysis.cxx @@ -404,7 +404,7 @@ struct lambda1520analysis { } } } - return false; + return isTrk1Selected; } template @@ -450,7 +450,7 @@ struct lambda1520analysis { } } } - return false; + return isTrk2Selected; } template diff --git a/PWGMM/Lumi/Tasks/LumiFDDFT0.cxx b/PWGMM/Lumi/Tasks/LumiFDDFT0.cxx index 98e58bbba46..454a996b462 100644 --- a/PWGMM/Lumi/Tasks/LumiFDDFT0.cxx +++ b/PWGMM/Lumi/Tasks/LumiFDDFT0.cxx @@ -176,15 +176,15 @@ struct LumiFDDFT0 { std::vector vec_TrkContributos = {}; int nContrib = 0; - int nNonContrib = 0; + // int nNonContrib = 0; for (const auto& unfiltered_track : unfiltered_tracks) { if (!unfiltered_track.hasITS()) { - nNonContrib++; + // nNonContrib++; continue; } if (unfiltered_track.pt() < 0.8 || unfiltered_track.itsNCls() < 5) { - nNonContrib++; + // nNonContrib++; continue; } vec_globID_contr.push_back(unfiltered_track.globalIndex()); @@ -223,9 +223,9 @@ struct LumiFDDFT0 { double refitX = -999.; double refitY = -999.; double refitZ = -999.; - double refitXX = -999.; - double refitYY = -999.; - double refitXY = -999.; + // double refitXX = -999.; + // double refitYY = -999.; + // double refitXY = -999.; double timeaFDD = -999.; double timecFDD = -999.; @@ -245,9 +245,9 @@ struct LumiFDDFT0 { refitX = Pvtx_refitted.getX(); refitY = Pvtx_refitted.getY(); refitZ = Pvtx_refitted.getZ(); - refitXX = Pvtx_refitted.getSigmaX2(); - refitYY = Pvtx_refitted.getSigmaY2(); - refitXY = Pvtx_refitted.getSigmaXY(); + // refitXX = Pvtx_refitted.getSigmaX2(); + // refitYY = Pvtx_refitted.getSigmaY2(); + // refitXY = Pvtx_refitted.getSigmaXY(); // now get information for FDD if (collision.has_foundFDD()) { diff --git a/PWGMM/Lumi/Tasks/lumi.cxx b/PWGMM/Lumi/Tasks/lumi.cxx index 567ee49ce64..325f506c6b7 100644 --- a/PWGMM/Lumi/Tasks/lumi.cxx +++ b/PWGMM/Lumi/Tasks/lumi.cxx @@ -155,14 +155,14 @@ struct lumiTask { std::vector vec_TrkContributos = {}; int nContrib = 0; - int nNonContrib = 0; + // int nNonContrib = 0; for (const auto& unfiltered_track : unfiltered_tracks) { if (!unfiltered_track.hasITS()) { - nNonContrib++; + // nNonContrib++; continue; } if (unfiltered_track.pt() < 0.8 || unfiltered_track.itsNCls() < 5) { - nNonContrib++; + // nNonContrib++; continue; } vec_globID_contr.push_back(unfiltered_track.globalIndex()); diff --git a/PWGMM/Mult/TableProducer/trackPropagation.cxx b/PWGMM/Mult/TableProducer/trackPropagation.cxx index 6e2be374f7b..7f5561ff1de 100644 --- a/PWGMM/Mult/TableProducer/trackPropagation.cxx +++ b/PWGMM/Mult/TableProducer/trackPropagation.cxx @@ -197,8 +197,8 @@ struct AmbiguousTrackPropagation { initCCDB(bcs.begin()); // Minimum only on DCAxy - float dcaInfo; - float bestDCA, bestDCAx, bestDCAy; + float dcaInfo = 0.f; + float bestDCA = 0.f, bestDCAx = 0.f, bestDCAy = 0.f; o2::track::TrackParCovFwd bestTrackPar; for (auto& atrack : atracks) { @@ -283,8 +283,8 @@ struct AmbiguousTrackPropagation { } initCCDB(bcs.begin()); - float dcaInfo; - float bestDCA, bestDCAx, bestDCAy; + float dcaInfo = 0.f; + float bestDCA = 0.f, bestDCAx = 0.f, bestDCAy = 0.f; o2::track::TrackParCovFwd bestTrackPar; for (auto& track : tracks) { diff --git a/PWGMM/Mult/Tasks/dndeta-hi.cxx b/PWGMM/Mult/Tasks/dndeta-hi.cxx index 75b7fe9a587..d10683274d3 100644 --- a/PWGMM/Mult/Tasks/dndeta-hi.cxx +++ b/PWGMM/Mult/Tasks/dndeta-hi.cxx @@ -150,18 +150,18 @@ AxisSpec DCAAxis = {601, -3.01, 3.01, "", "DCA axis"}; AxisSpec EtaAxis = {80, -4.0, 4.0, "#eta", "eta axis"}; AxisSpec V0EtaAxis = {20, -1.0, 1.0, "#etav0", "eta axis"}; AxisSpec PhiAxis = {629, 0, 2 * M_PI, "Rad", "phi axis"}; -AxisSpec PtVarAxis = {kPtVarend - 1, kPtVarbegin + 0.5, kPtVarend - 0.5, "", "ptvar axis"}; -AxisSpec EvtClassAxis = {kECend - 1, kECbegin + 0.5, kECend - 0.5, "", "event class"}; -AxisSpec TrigClassAxis = {kTrigend - 1, kTrigbegin + 0.5, kTrigend - 0.5, "", "trigger class"}; -AxisSpec ParticleTypeAxis = {kParTypeend - 1, kParTypebegin + 0.5, kParTypeend - 0.5, "", "Particle type"}; +AxisSpec PtVarAxis = {kPtVarend - 1, +kPtVarbegin + 0.5, +kPtVarend - 0.5, "", "ptvar axis"}; +AxisSpec EvtClassAxis = {kECend - 1, +kECbegin + 0.5, +kECend - 0.5, "", "event class"}; +AxisSpec TrigClassAxis = {kTrigend - 1, +kTrigbegin + 0.5, +kTrigend - 0.5, "", "trigger class"}; +AxisSpec ParticleTypeAxis = {kParTypeend - 1, +kParTypebegin + 0.5, +kParTypeend - 0.5, "", "Particle type"}; std::vector centBinningPbPb = {0, 1, 2, 3, 4, 5, 10, 20, 30, 40, 50, 60, 70, 80, 100}; std::vector centBinning = {0., 0.01, 0.1, 1.0, 5.0, 10., 15, 20., 25, 30., 35., 40., 45., 50., 70., 100.0}; AxisSpec CentAxis = {centBinning, "", "centrality"}; AxisSpec CentAxisPbPb = {centBinningPbPb, "", "centrality"}; -AxisSpec SpeciesAxis = {kSpeciesend - 1, kSpeciesbegin + 0.5, kSpeciesend - 0.5, "", "species class"}; +AxisSpec SpeciesAxis = {kSpeciesend - 1, +kSpeciesbegin + 0.5, +kSpeciesend - 0.5, "", "species class"}; AxisSpec MassAxis = {600, 0.3f, 1.3f, "Mass (GeV/c^{2})", "Inv. Mass (GeV/c^{2})"}; -AxisSpec SignAxis = {kSignend - 1, kSignbegin + 0.5, kSignend - 0.5, "", "sign"}; -AxisSpec StepAxis = {kStepend - 1, kStepbegin + 0.5, kStepend - 0.5, "", "step"}; +AxisSpec SignAxis = {kSignend - 1, +kSignbegin + 0.5, +kSignend - 0.5, "", "sign"}; +AxisSpec StepAxis = {kStepend - 1, +kStepbegin + 0.5, +kStepend - 0.5, "", "step"}; AxisSpec testAxis = {101, -0.5, 100.5, "", "test"}; AxisSpec multAxis = {1001, -0.5, 1000.5, "", "Ntrks"}; AxisSpec StatusCodeAxis = {3, -1.5, 2.5, "", "StatusCode"}; @@ -462,13 +462,13 @@ struct MultiplicityCounter { if constexpr (MyCollisionsCent::template contains()) cent = collision.centFT0M(); - auto Ntrk_rec = 0; - auto trackspart = tracks.sliceByCached(aod::track::collisionId, collision.globalIndex(), cache); - for (auto& track : trackspart) { - if (std::abs(track.eta()) < 1) { - Ntrk_rec++; - } - } + // auto Ntrk_rec = 0; + // auto trackspart = tracks.sliceByCached(aod::track::collisionId, collision.globalIndex(), cache); + // for (auto& track : trackspart) { + // if (std::abs(track.eta()) < 1) { + // Ntrk_rec++; + // } + // } } } } @@ -529,13 +529,13 @@ struct MultiplicityCounter { } else { if constexpr (MyCollisionsCent::template contains()) cent = collision.centFT0M(); - auto Ntrk_rec = 0; - auto trackspart = tracks.sliceByCached(aod::track::collisionId, collision.globalIndex(), cache); - for (auto& track : trackspart) { - if (std::abs(track.eta()) < 1) { - Ntrk_rec++; - } - } + // auto Ntrk_rec = 0; + // auto trackspart = tracks.sliceByCached(aod::track::collisionId, collision.globalIndex(), cache); + // for (auto& track : trackspart) { + // if (std::abs(track.eta()) < 1) { + // Ntrk_rec++; + // } + // } } Bool_1d btrigc(kTrigend, false); diff --git a/PWGMM/Mult/Tasks/vertexing-fwd.cxx b/PWGMM/Mult/Tasks/vertexing-fwd.cxx index 51ed8cb7a5b..aecb9e7cd9c 100644 --- a/PWGMM/Mult/Tasks/vertexing-fwd.cxx +++ b/PWGMM/Mult/Tasks/vertexing-fwd.cxx @@ -133,8 +133,8 @@ struct vertexingfwd { // initCCDB(bcs.begin()); if Bz is needed ambTrackIds.clear(); - float dcaXY; - float bestDCA, bestDCAX, bestDCAY; + float dcaXY = 0.f; + float bestDCA = 0.f, bestDCAX = 0.f, bestDCAY = 0.f; o2::track::TrackParCovFwd bestTrackPar; for (auto& atrack : atracks) { @@ -238,8 +238,7 @@ struct vertexingfwd { if (collOrig.mcCollisionId() == mcCollID) { // initially correctly assigned registry.fill(HIST("AmbiguousTrackStatus"), 5); } - } else // the track has a collision and track.collisionId() == bestCol - { + } else { // the track has a collision and track.collisionId() == bestCol if (track.collisionId() != bestCol) { printf("------------------- PROBLEM HERE track.collisionId() %d, bestCollid %d\n", track.collisionId(), bestCol); } diff --git a/PWGUD/AQC/udQCmidRap.cxx b/PWGUD/AQC/udQCmidRap.cxx index fd53a5f42d3..744e59a12e7 100644 --- a/PWGUD/AQC/udQCmidRap.cxx +++ b/PWGUD/AQC/udQCmidRap.cxx @@ -152,7 +152,7 @@ struct UDQCmid { // bool goodetas = true; // bool goodpts = true; bool ispipiCand = false; - auto netCharge = 0; + // auto netCharge = 0; auto lvtmp = TLorentzVector(); auto ivm = TLorentzVector(); if (isDGcandidate) { @@ -183,7 +183,7 @@ struct UDQCmid { if (track.eta() <= diffCuts.minEta() || track.eta() >= diffCuts.maxEta()) { goodetas = false; }*/ - netCharge += track.sign(); + // netCharge += track.sign(); ivm += lvtmp; } diff --git a/PWGUD/TableProducer/DGBCCandProducer.cxx b/PWGUD/TableProducer/DGBCCandProducer.cxx index 1df6ba9b91b..b98d13bd150 100644 --- a/PWGUD/TableProducer/DGBCCandProducer.cxx +++ b/PWGUD/TableProducer/DGBCCandProducer.cxx @@ -536,7 +536,7 @@ struct DGBCCandProducer { } // run over all BC in bcs and tibcs - int64_t lastCollision = 0; + // int64_t lastCollision = 0; float vpos[3]; upchelpers::FITInfo fitInfo{}; auto col = collisions.iteratorAt(0); @@ -596,7 +596,7 @@ struct DGBCCandProducer { if (withCollision) { // -> vertex position: col.[posX(), posY(), posZ()] SETBIT(bcFlag, 2); - lastCollision = col.globalIndex(); + // lastCollision = col.globalIndex(); ntr1 = col.numContrib(); auto bcRange = udhelpers::compatibleBCs(bc, bcnum, diffCuts.minNBCs(), bcs); diff --git a/dependencies/O2PhysicsCompileFlags.cmake b/dependencies/O2PhysicsCompileFlags.cmake index 9226f5e63d8..c29d8c4a996 100644 --- a/dependencies/O2PhysicsCompileFlags.cmake +++ b/dependencies/O2PhysicsCompileFlags.cmake @@ -11,7 +11,13 @@ include_guard() -set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wno-error -Werror=unused-variable") +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wno-error \ +-Werror=deprecated-enum-float-conversion \ +-Werror=narrowing \ +-Werror=parentheses \ +-Werror=return-type \ +-Werror=uninitialized \ +-Werror=unused") IF (ENABLE_TIMETRACE) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -ftime-trace")