Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
BernsteinCorrection.h
Go to the documentation of this file.
1// @(#)root/roostats:$Id$
2// Author: Kyle Cranmer
3/*************************************************************************
4 * Copyright (C) 1995-2008, Rene Brun and Fons Rademakers. *
5 * All rights reserved. *
6 * *
7 * For the licensing terms see $ROOTSYS/LICENSE. *
8 * For the list of contributors see $ROOTSYS/README/CREDITS. *
9 *************************************************************************/
10
11#ifndef ROOSTATS_BernsteinCorrection
12#define ROOSTATS_BernsteinCorrection
13
14
15#include "Rtypes.h"
16
17#include "TH1F.h"
18#include "RooWorkspace.h"
19
20namespace RooStats {
21
23
24 public:
25 BernsteinCorrection(double tolerance = 0.05);
27
28 Int_t ImportCorrectedPdf(RooWorkspace*, const char*,const char*,const char*);
29 void SetMaxCorrection(double maxCorr){fMaxCorrection = maxCorr;}
30 void SetMaxDegree(Int_t maxDegree){fMaxDegree = maxDegree;}
32 const char* nominalName,
33 const char* varName,
34 const char* dataName,
35 TH1F*, TH1F*,
36 Int_t degree,
37 Int_t nToys=500);
38
39 private:
40
41 Int_t fMaxDegree; ///< maximum polynomial degree correction (default is 10)
42 double fMaxCorrection; ///< maximum correction factor at any point (default is 100)
43 double fTolerance; ///< probability to add an unnecessary term
44
45
46 protected:
47 ClassDef(BernsteinCorrection,2) // A utility to add polynomial correction terms to a model to improve the description of data.
48 };
49}
50
51
52#endif
#define ClassDef(name, id)
Definition Rtypes.h:342
BernsteinCorrection is a utility in RooStats to augment a nominal PDF with a polynomial correction te...
Int_t ImportCorrectedPdf(RooWorkspace *, const char *, const char *, const char *)
Main method for Bernstein correction.
double fMaxCorrection
maximum correction factor at any point (default is 100)
void SetMaxDegree(Int_t maxDegree)
double fTolerance
probability to add an unnecessary term
Int_t fMaxDegree
maximum polynomial degree correction (default is 10)
void CreateQSamplingDist(RooWorkspace *wks, const char *nominalName, const char *varName, const char *dataName, TH1F *, TH1F *, Int_t degree, Int_t nToys=500)
Create sampling distribution for q given degree-1 vs. degree corrections.
void SetMaxCorrection(double maxCorr)
Persistable container for RooFit projects.
1-D histogram with a float per channel (see TH1 documentation)
Definition TH1.h:622
Namespace for the RooStats classes.
Definition Asimov.h:19