Skip to content

Commit

Permalink
Merge pull request cms-sw#47 from bendavid/bernsteinNormFix
Browse files Browse the repository at this point in the history
properly flag lack of support for analytic integration over reduced range
  • Loading branch information
gpetruc committed Oct 1, 2013
2 parents c137a25 + 04ab6c4 commit de99864
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions interface/RooBernsteinFast.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,12 @@ template<int N> class RooBernsteinFast : public RooAbsPdf {

Int_t getAnalyticalIntegral(RooArgSet& allVars, RooArgSet& analVars, const char* rangeName=0) const
{

// No analytical calculation available (yet) of integrals over subranges (as for standard RooBernstein)
if (rangeName && strlen(rangeName)) {
return 0 ;
}

if (matchArgs(allVars, analVars, _x)) return 1;
return 0;
}
Expand Down

0 comments on commit de99864

Please sign in to comment.