Logo ROOT  
Reference Guide
HypoTestInverterOriginal.h
Go to the documentation of this file.
1// @(#)root/roostats:$Id$
2// Author: Kyle Cranmer, Lorenzo Moneta, Gregory Schott, Wouter Verkerke
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_HypoTestInverterOriginal
12#define ROOSTATS_HypoTestInverterOriginal
13
14
15
17
19
21
22class RooRealVar;
23
24
25namespace RooStats {
26
28
29 public:
30
31 // default constructor (used only for I/O)
33
34
35 // constructor
37 RooRealVar& scannedVariable,
38 double size = 0.05) ;
39
40
41
42 HypoTestInverterResult* GetInterval() const override { return fResults; } ;
43
44 bool RunAutoScan( double xMin, double xMax, double target, double epsilon=0.005, unsigned int numAlgorithm=0 );
45
46 bool RunFixedScan( int nBins, double xMin, double xMax );
47
48 bool RunOnePoint( double thisX );
49
50 void UseCLs( bool on = true) { fUseCLs = on; if (fResults) fResults->UseCLs(on); }
51
52 void SetData(RooAbsData &) override { } // not needed
53
54 void SetModel(const ModelConfig &) override { } // not needed
55
56 /// set the size of the test (rate of Type I error) ( Eg. 0.05 for a 95% Confidence Interval)
57 void SetTestSize(double size) override {fSize = size; if (fResults) fResults->SetTestSize(size); }
58 /// set the confidence level for the interval (eg. 0.95 for a 95% Confidence Interval)
59 void SetConfidenceLevel(double cl) override {fSize = 1.-cl; if (fResults) fResults->SetConfidenceLevel(cl); }
60 /// Get the size of the test (eg. rate of Type I error)
61 double Size() const override {return fSize;}
62 /// Get the Confidence level for the test
63 double ConfidenceLevel() const override {return 1.-fSize;}
64
65 /// destructor
66 ~HypoTestInverterOriginal() override ;
67
68 private:
69
70 void CreateResults();
71
72 HypoTestCalculator* fCalculator0; ///< pointer to the calculator passed in the constructor
73 RooRealVar* fScannedVariable; ///< pointer to the constrained variable
75
76 bool fUseCLs;
77 double fSize;
78
79 protected:
80
81 ClassDefOverride(HypoTestInverterOriginal,1) // HypoTestInverterOriginal class
82
83 };
84}
85
86#endif
size_t size(const MatrixT &matrix)
retrieve the size of a square matrix
#define ClassDefOverride(name, id)
Definition: Rtypes.h:339
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t Atom_t target
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void on
RooAbsData is the common abstract base class for binned and unbinned datasets.
Definition: RooAbsData.h:62
RooRealVar represents a variable that can be changed from the outside.
Definition: RooRealVar.h:40
HypoTestCalculator is an interface class for a tools which produce RooStats HypoTestResults.
This class is now deprecated and to be replaced by the HypoTestInverter.
void SetTestSize(double size) override
set the size of the test (rate of Type I error) ( Eg. 0.05 for a 95% Confidence Interval)
RooRealVar * fScannedVariable
pointer to the constrained variable
void SetModel(const ModelConfig &) override
Set the Model.
void SetConfidenceLevel(double cl) override
set the confidence level for the interval (eg. 0.95 for a 95% Confidence Interval)
HypoTestInverterResult * GetInterval() const override
Main interface to get a ConfInterval, pure virtual.
bool RunFixedScan(int nBins, double xMin, double xMax)
double ConfidenceLevel() const override
Get the Confidence level for the test.
double Size() const override
Get the size of the test (eg. rate of Type I error)
bool RunAutoScan(double xMin, double xMax, double target, double epsilon=0.005, unsigned int numAlgorithm=0)
HypoTestCalculator * fCalculator0
pointer to the calculator passed in the constructor
bool RunOnePoint(double thisX)
run only one point
void SetData(RooAbsData &) override
Set the DataSet ( add to the workspace if not already there ?)
HypoTestInverterResult class holds the array of hypothesis test results and compute a confidence inte...
virtual void SetTestSize(double size)
set the size of the test (rate of Type I error) (eg. 0.05 for a 95% Confidence Interval)
void UseCLs(bool on=true)
flag to switch between using CLsb (default) or CLs as confidence level
void SetConfidenceLevel(double cl) override
set the confidence level for the interval (eg. 0.95 for a 95% Confidence Interval)
IntervalCalculator is an interface class for a tools which produce RooStats ConfIntervals.
ModelConfig is a simple class that holds configuration information specifying how a model should be u...
Definition: ModelConfig.h:30
The TNamed class is the base class for all named ROOT classes.
Definition: TNamed.h:29
Namespace for the RooStats classes.
Definition: Asimov.h:19
double epsilon
Definition: triangle.c:618