Skip to content
Snippets Groups Projects
Commit 8fad06e5 authored by Wouter Verkerke's avatar Wouter Verkerke
Browse files

  o RooPoisson

    Fix analytical integral in case a negagive lower limit is given for the observable

  o RooProdPdf

    Fix a memory leak


git-svn-id: http://root.cern.ch/svn/root/trunk@36845 27541ba8-7e3a-0410-8455-c3a389f83636
parent 858519e9
No related branches found
No related tags found
No related merge requests found
......@@ -84,6 +84,9 @@ Double_t RooPoisson::analyticalIntegral(Int_t code, const char* rangeName) const
// range boundaries are not on integer values of x
Double_t xmin = x.min(rangeName) ;
Double_t xmax = x.max(rangeName) ;
// Protect against negative lower boundaries
if (xmin<0) xmin=0 ;
Int_t ixmin = Int_t (xmin) ;
Int_t ixmax = Int_t (xmax)+1 ;
......
......@@ -759,6 +759,9 @@ void RooProdPdf::factorizeProduct(const RooArgSet& normSet, const RooArgSet& int
// We own the reduced version of pdfNSet
delete pdfNSet ;
delete pdfIntSet ;
if (pdfCSet != pdfNSetOrig) {
delete pdfCSet ;
}
}
// Loop over list of terms again to determine 'imported' observables
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment