// RooAbsMoment represents the first, second, or third order derivative
// of any RooAbsReal as calculated (numerically) by the MathCore Richardson
// derivator class.
// END_HTML
#include "RooFit.h"
#include "Riostream.h"
#include "Riostream.h"
#include <math.h>
#include <string>
#include "RooAbsMoment.h"
#include "RooAbsReal.h"
#include "RooAbsPdf.h"
#include "RooErrorHandler.h"
#include "RooArgSet.h"
#include "RooMsgService.h"
#include "RooRealVar.h"
#include "RooFunctor.h"
#include "RooFormulaVar.h"
#include "RooGlobalFunc.h"
#include "RooConstVar.h"
#include "RooRealIntegral.h"
#include <string>
using namespace std ;
ClassImp(RooAbsMoment)
;
RooAbsMoment::RooAbsMoment() : _order(1), _takeRoot(kFALSE)
{
}
RooAbsMoment::RooAbsMoment(const char* name, const char* title, RooAbsReal& func, RooRealVar& x, Int_t orderIn, Bool_t takeRoot) :
RooAbsReal(name, title),
_order(orderIn),
_takeRoot(takeRoot),
_nset("nset","nset",this,kFALSE,kFALSE),
_func("function","function",this,func,kFALSE,kFALSE),
_x("x","x",this,x,kFALSE,kFALSE),
_mean("!mean","!mean",this,kFALSE,kFALSE)
{
}
RooAbsMoment::RooAbsMoment(const RooAbsMoment& other, const char* name) :
RooAbsReal(other, name),
_order(other._order),
_takeRoot(other._takeRoot),
_nset("nset",this,other._nset),
_func("function",this,other._func),
_x("x",this,other._x),
_mean("!mean","!mean",this,kFALSE,kFALSE)
{
}
RooAbsMoment::~RooAbsMoment()
{
}