Skip to content

Commit 5b1ddbb

Browse files
committed
yet another address O2 linter issues
1 parent 095d53a commit 5b1ddbb

2 files changed

Lines changed: 11 additions & 11 deletions

File tree

PWGHF/D2H/Macros/HFInvMassFitter.cxx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -372,18 +372,18 @@ void HFInvMassFitter::fillWorkspace(RooWorkspace& workspace) const
372372
workspace.import(*bkgFuncPoly3);
373373
delete bkgFuncPoly3;
374374
// bkg power law
375-
RooRealVar PowParam1("PowParam1", "Parameter of Pow function", TDatabasePDG::Instance()->GetParticle("pi+")->Mass());
376-
RooRealVar PowParam2("PowParam2", "Parameter of Pow function", 1., -10, 10);
377-
RooAbsPdf* bkgFuncPow = new RooGenericPdf("bkgFuncPow", "bkgFuncPow", "(mass-PowParam1)^PowParam2", RooArgSet(mass, PowParam1, PowParam2));
375+
RooRealVar powParam1("powParam1", "Parameter of Pow function", TDatabasePDG::Instance()->GetParticle("pi+")->Mass());
376+
RooRealVar powParam2("powParam2", "Parameter of Pow function", 1., -10, 10);
377+
RooAbsPdf* bkgFuncPow = new RooGenericPdf("bkgFuncPow", "bkgFuncPow", "(mass-powParam1)^powParam2", RooArgSet(mass, powParam1, powParam2));
378378
workspace.import(*bkgFuncPow);
379379
delete bkgFuncPow;
380380
// pow * exp
381-
RooRealVar PowExpoParam1("PowExpoParam1", "Parameter of PowExpo function", 1 / 2);
382-
RooRealVar PowExpoParam2("PowExpoParam2", "Parameter of PowExpo function", 1, -10, 10);
381+
RooRealVar powExpoParam1("powExpoParam1", "Parameter of PowExpo function", 1 / 2);
382+
RooRealVar powExpoParam2("powExpoParam2", "Parameter of PowExpo function", 1, -10, 10);
383383
RooRealVar massPi("massPi", "mass of pion", TDatabasePDG::Instance()->GetParticle("pi+")->Mass());
384-
RooFormulaVar PowExpoParam3("PowExpoParam3", "PowExpoParam1 + 1", RooArgList(PowExpoParam1));
385-
RooFormulaVar PowExpoParam4("PowExpoParam4", "1./PowExpoParam2", RooArgList(PowExpoParam2));
386-
RooAbsPdf* bkgFuncPowExpo = new RooGamma("bkgFuncPowExpo", "background pdf", mass, PowExpoParam3, PowExpoParam4, massPi);
384+
RooFormulaVar powExpoParam3("powExpoParam3", "powExpoParam1 + 1", RooArgList(powExpoParam1));
385+
RooFormulaVar powExpoParam4("powExpoParam4", "1./powExpoParam2", RooArgList(powExpoParam2));
386+
RooAbsPdf* bkgFuncPowExpo = new RooGamma("bkgFuncPowExpo", "background pdf", mass, powExpoParam3, powExpoParam4, massPi);
387387
workspace.import(*bkgFuncPowExpo);
388388
delete bkgFuncPowExpo;
389389

PWGHF/D2H/Macros/runMassFitter.C

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ int runMassFitter(const TString& configFileName)
439439

440440
Double_t reflOverSgn = 0;
441441
double markerSize = 1.;
442-
const int NSliceVarBinsLarge = 15;
442+
constexpr int NSliceVarBinsLarge = 15;
443443
if (nSliceVarBins > NSliceVarBinsLarge) {
444444
markerSize = 0.5;
445445
}
@@ -678,8 +678,8 @@ void setHistoStyle(TH1* histo, Color_t color, Size_t markerSize)
678678
void divideCanvas(TCanvas* canvas, int nSliceVarBins)
679679
{
680680
const int rectangularSideMin = std::floor(std::sqrt(nSliceVarBins));
681-
constexpr int rectangularSidesDiffMax = 2;
682-
for (int rectangularSidesDiff = 0; rectangularSidesDiff < rectangularSidesDiffMax; ++rectangularSidesDiff) {
681+
constexpr int RectangularSidesDiffMax = 2;
682+
for (int rectangularSidesDiff = 0; rectangularSidesDiff < RectangularSidesDiffMax; ++rectangularSidesDiff) {
683683
if (rectangularSideMin * (rectangularSideMin + rectangularSidesDiff) >= nSliceVarBins) {
684684
canvas->Divide(rectangularSideMin + rectangularSidesDiff, rectangularSideMin);
685685
}

0 commit comments

Comments
 (0)