Logo ROOT  
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 #include "Rtypes.h"
16 
17 #include "TH1F.h"
18 #include "RooWorkspace.h"
19 
20 namespace RooStats {
21 
23 
24  public:
25  BernsteinCorrection(double tolerance = 0.05);
26  virtual ~BernsteinCorrection() {}
27 
28  Int_t ImportCorrectedPdf(RooWorkspace*, const char*,const char*,const char*);
29  void SetMaxCorrection(Double_t 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_t fMaxCorrection; // maximum correction factor at any point (default is 100)
43  Double_t 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
RooWorkspace.h
TH1F.h
RooStats::BernsteinCorrection::ImportCorrectedPdf
Int_t ImportCorrectedPdf(RooWorkspace *, const char *, const char *, const char *)
Main method for Bernstein correction.
Definition: BernsteinCorrection.cxx:89
RooStats::BernsteinCorrection::fTolerance
Double_t fTolerance
Definition: BernsteinCorrection.h:43
TGeant4Unit::degree
static constexpr double degree
Definition: TGeant4SystemOfUnits.h:135
RooStats::BernsteinCorrection
BernsteinCorrection is a utility in RooStats to augment a nominal PDF with a polynomial correction te...
Definition: BernsteinCorrection.h:22
RooStats::BernsteinCorrection::BernsteinCorrection
BernsteinCorrection(double tolerance=0.05)
Definition: BernsteinCorrection.cxx:81
RooStats::BernsteinCorrection::CreateQSamplingDist
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.
Definition: BernsteinCorrection.cxx:206
RooStats::BernsteinCorrection::SetMaxDegree
void SetMaxDegree(Int_t maxDegree)
Definition: BernsteinCorrection.h:30
RooStats::BernsteinCorrection::fMaxDegree
Int_t fMaxDegree
Definition: BernsteinCorrection.h:41
RooWorkspace
The RooWorkspace is a persistable container for RooFit projects.
Definition: RooWorkspace.h:43
Double_t
double Double_t
Definition: RtypesCore.h:59
RooStats::BernsteinCorrection::fMaxCorrection
Double_t fMaxCorrection
Definition: BernsteinCorrection.h:42
RooStats
Namespace for the RooStats classes.
Definition: Asimov.h:19
TH1F
1-D histogram with a float per channel (see TH1 documentation)}
Definition: TH1.h:575
ClassDef
#define ClassDef(name, id)
Definition: Rtypes.h:325
RooStats::BernsteinCorrection::SetMaxCorrection
void SetMaxCorrection(Double_t maxCorr)
Definition: BernsteinCorrection.h:29
Rtypes.h
int
RooStats::BernsteinCorrection::~BernsteinCorrection
virtual ~BernsteinCorrection()
Definition: BernsteinCorrection.h:26