Skip to content

Commit ee73e84

Browse files
committed
Fix unused variables, parameters, values
Fixes errors from the following Clang-Tidy categories: - `clang-analyzer-deadcode.DeadStores` - `clang-diagnostic-unused-parameter` - `clang-diagnostic-unused-variable` Most errors are fixed temporarily by commenting out the unused bits and by adding a `FIXME: unused` comment. The final fix is to either remove the unused bits or to fix the bugs which has to be done by someone who knows the intended behaviour.
1 parent d561ab2 commit ee73e84

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎PWGHF/HFC/Macros/FitCorrel.C‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,13 +259,13 @@ void fitCorrelDs(const TString& cfgFileName = "config_CorrAnalysis.json")
259259
corrFitter[iBinPtHad][iBinPtCand]->setFuncType(static_cast<DhCorrelationFitter::FunctionType>(fitFunc[iBinPtCand]));
260260
corrFitter[iBinPtHad][iBinPtCand]->fitting(kTRUE, kTRUE); // the first term is for drawing the fit functions, the second argument is useExternalParams
261261

262-
TF1* fFit = corrFitter[iBinPtHad][iBinPtCand]->getFitFunction();
262+
// TF1* fFit = corrFitter[iBinPtHad][iBinPtCand]->getFitFunction(); // FIXME: unused
263263

264264
// Title of the histogram
265265
auto* pttext = new TPaveText(0.15, 0.9, 0.85, 0.95, "NDC");
266266
pttext->SetFillStyle(0);
267267
pttext->SetBorderSize(0);
268-
TText* tpT = pttext->AddText(0., 0.8, Form("%.0f < p_{T}^{D_{s}} < %.0f GeV/c, p_{T}^{assoc} > %.1f GeV/c", binsPtCandIntervals[iBinPtCand], binsPtCandIntervals[iBinPtCand + 1], binsPtHadIntervals[iBinPtHad]));
268+
pttext->AddText(0., 0.8, Form("%.0f < p_{T}^{D_{s}} < %.0f GeV/c, p_{T}^{assoc} > %.1f GeV/c", binsPtCandIntervals[iBinPtCand], binsPtCandIntervals[iBinPtCand + 1], binsPtHadIntervals[iBinPtHad]));
269269
// pttext -> Draw("same");
270270

271271
// Fill the histograms with the fit parameters

‎PWGHF/TableProducer/mcPidTof.cxx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,7 @@ struct TofEventTime {
604604
// Reset the event time
605605
eventTime = 0.f;
606606
sumOfWeights = 0.f;
607-
weight = 0.f;
607+
// weight = 0.f; // FIXME: unused
608608
// Remove the bias on TOF ev. time
609609
if constexpr (RemoveTofEvTimeBias) {
610610
evTimeMakerTOF.removeBias<TrksWtof::iterator, filterForTOFEventTime>(trk, nGoodTracksForTOF, t0TOF[0], t0TOF[1], 2);

0 commit comments

Comments
 (0)