#ifndef ROOSTATS_BernsteinCorrection
#define ROOSTATS_BernsteinCorrection
#ifndef ROOT_Rtypes
#include "Rtypes.h"
#endif
#include "TH1F.h"
#include "RooWorkspace.h"
namespace RooStats {
class BernsteinCorrection {
public:
BernsteinCorrection(double tolerance = 0.05);
virtual ~BernsteinCorrection() {}
Int_t ImportCorrectedPdf(RooWorkspace*, const char*,const char*,const char*);
void SetMaxCorrection(Double_t maxCorr){fMaxCorrection = maxCorr;}
void SetMaxDegree(Int_t maxDegree){fMaxDegree = maxDegree;}
void CreateQSamplingDist(RooWorkspace* wks,
const char* nominalName,
const char* varName,
const char* dataName,
TH1F*, TH1F*,
Int_t degree,
Int_t nToys=500);
private:
Int_t fMaxDegree;
Double_t fMaxCorrection;
Double_t fTolerance;
protected:
ClassDef(BernsteinCorrection,2)
};
}
#endif