Logo ROOT   6.08/07
Reference Guide
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 #ifndef ROOT_Rtypes
16 #include "Rtypes.h"
17 #endif
18 
19 #include "TH1F.h"
20 #include "RooWorkspace.h"
21 
22 namespace RooStats {
23 
25 
26  public:
27  BernsteinCorrection(double tolerance = 0.05);
28  virtual ~BernsteinCorrection() {}
29 
30  Int_t ImportCorrectedPdf(RooWorkspace*, const char*,const char*,const char*);
31  void SetMaxCorrection(Double_t maxCorr){fMaxCorrection = maxCorr;}
32  void SetMaxDegree(Int_t maxDegree){fMaxDegree = maxDegree;}
34  const char* nominalName,
35  const char* varName,
36  const char* dataName,
37  TH1F*, TH1F*,
38  Int_t degree,
39  Int_t nToys=500);
40 
41  private:
42 
43  Int_t fMaxDegree; // maximum polynomial degree correction (default is 10)
44  Double_t fMaxCorrection; // maximum correction factor at any point (default is 100)
45  Double_t fTolerance; // probability to add an unnecessary term
46 
47 
48  protected:
49  ClassDef(BernsteinCorrection,2) // A utility to add polynomial corrrection terms to a model to improve the description of data.
50  };
51 }
52 
53 
54 #endif
tomato 1-D histogram with a float per channel (see TH1 documentation)}
Definition: TH1.h:575
int Int_t
Definition: RtypesCore.h:41
BernsteinCorrection(double tolerance=0.05)
#define ClassDef(name, id)
Definition: Rtypes.h:254
Int_t ImportCorrectedPdf(RooWorkspace *, const char *, const char *, const char *)
Main method for Bernstein correction.
void SetMaxDegree(Int_t maxDegree)
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.
Namespace for the RooStats classes.
Definition: Asimov.h:20
double Double_t
Definition: RtypesCore.h:55
void SetMaxCorrection(Double_t maxCorr)
BernsteinCorrection is a utility in RooStats to augment a nominal PDF with a polynomial correction te...
The RooWorkspace is a persistable container for RooFit projects.
Definition: RooWorkspace.h:42