From d19efcef7bbf74f6b3331870c49ca56e159fe664 Mon Sep 17 00:00:00 2001 From: Lorenzo Moneta <Lorenzo.Moneta@cern.ch> Date: Wed, 23 Apr 2008 15:22:36 +0000 Subject: [PATCH] fix variable e in TRolke::EvalLikeMod1 make now consistent with original Fortran code (available at Phystat : https://plone4.fnal.gov/P0/phystat/packages/0707001/1.1.0/view ) git-svn-id: http://root.cern.ch/svn/root/trunk@23481 27541ba8-7e3a-0410-8455-c3a389f83636 --- math/physics/src/TRolke.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/math/physics/src/TRolke.cxx b/math/physics/src/TRolke.cxx index 987c7896721..a8b5fc2c159 100644 --- a/math/physics/src/TRolke.cxx +++ b/math/physics/src/TRolke.cxx @@ -368,7 +368,7 @@ Double_t TRolke::Likelihood(Double_t mu, Int_t x, Int_t y, Int_t z, Double_t bm, } //_________________________________________________________________________ -Double_t TRolke::EvalLikeMod1(Double_t mu, Int_t x, Int_t y, Int_t z, Double_t e, Double_t tau, Double_t b, Int_t m, Int_t what) +Double_t TRolke::EvalLikeMod1(Double_t mu, Int_t x, Int_t y, Int_t z, Double_t , Double_t tau, Double_t b, Int_t m, Int_t what) { // Calculates the Profile Likelihood for MODEL 1: // Poisson background/ Binomial Efficiency @@ -394,10 +394,11 @@ Double_t TRolke::EvalLikeMod1(Double_t mu, Int_t x, Int_t y, Int_t z, Double_t e if (what == 3) { if (mu == 0){ b = (x+y)/(1.0+tau); - e = zm; + Double_t e = zm; f = LikeMod1(mu,b,e,x,y,z,tau,m); } else { TRolke g; + Double_t e = 0; g.ProfLikeMod1(mu,b,e,x,y,z,tau,m); f = LikeMod1(mu,b,e,x,y,z,tau,m); } -- GitLab