Skip to content

Commit 320d443

Browse files
committed
HFInvMassFitter: Fix integer division
1 parent 282f9a7 commit 320d443

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PWGHF/D2H/Macros/HFInvMassFitter.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ void HFInvMassFitter::fillWorkspace(RooWorkspace& workspace) const
408408
workspace.import(*bkgFuncPow);
409409
delete bkgFuncPow;
410410
// pow * exp
411-
RooRealVar powExpoParam1("powExpoParam1", "Parameter of PowExpo function", 1 / 2);
411+
RooRealVar powExpoParam1("powExpoParam1", "Parameter of PowExpo function", 1. / 2.);
412412
RooRealVar powExpoParam2("powExpoParam2", "Parameter of PowExpo function", 1, -10, 10);
413413
RooRealVar massPi("massPi", "mass of pion", TDatabasePDG::Instance()->GetParticle("pi+")->Mass());
414414
RooFormulaVar powExpoParam3("powExpoParam3", "powExpoParam1 + 1", RooArgList(powExpoParam1));

0 commit comments

Comments
 (0)