26 #include "Riostream.h"
27 #include "Riostream.h"
30 #include "../interface/HGGRooPdfs.h"
31 #include "RooRealVar.h"
38 RooAbsReal& _x, RooAbsReal& _c) :
39 RooAbsPdf(name, title),
40 x("
x","Dependent",this,_x),
41 c("
c","Power",this,_c)
48 RooAbsPdf(other, name),
x(
"x",this,other.
x),
c(
"c",this,other.
c)
63 if (matchArgs(allVars,analVars,
x))
return 1 ;
76 ret = (
x.max(rangeName) -
x.min(rangeName));
77 }
else if (
c== -1.0) {
78 ret = (
log(
x.max(rangeName)) -
log(
x.min(rangeName)) );
82 ret = (
pow(
x.max(rangeName),
c+1 ) -
pow(
x.min(rangeName),
c+1 ) )/(
c+1);
Double_t evaluate() const
Double_t analyticalIntegral(Int_t code, const char *rangeName=0) const
Int_t getAnalyticalIntegral(RooArgSet &allVars, RooArgSet &analVars, const char *rangeName=0) const
Power< A, B >::type pow(const A &a, const B &b)