Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
PointSetInterval.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_PointSetInterval
12#define RooStats_PointSetInterval
13
14#include "RooArgSet.h"
15#include "RooAbsData.h"
17
18
19namespace RooStats {
20
22
23 public:
24
25 /// default constructors
26 explicit PointSetInterval(const char *name = nullptr);
27
28 /// constructor from name and data set specifying the interval points
29 PointSetInterval(const char* name, RooAbsData&);
30
31 /// check if parameter is in the interval
32 bool IsInInterval(const RooArgSet&) const override;
33
34 /// set the confidence level for the interval
35 void SetConfidenceLevel(double cl) override {fConfidenceLevel = cl;}
36
37 /// return the confidence level for the interval
38 double ConfidenceLevel() const override {return fConfidenceLevel;}
39
40 // Method to return lower limit on a given parameter
41 // double LowerLimit(RooRealVar& param) ; // could provide, but misleading?
42 // double UpperLimit(RooRealVar& param) ; // could provide, but misleading?
43
44 /// return a cloned list with the parameter of interest
45 RooArgSet* GetParameters() const override;
46
47 /// return a copy of the data set (points) defining this interval
49
50 /// return a cloned list with the parameter of interest
51 bool CheckParameters(const RooArgSet&) const override ;
52
53 /// return lower limit on a given parameter
54 double LowerLimit(RooRealVar& param) ;
55
56 /// return upper limit on a given parameter
57 double UpperLimit(RooRealVar& param) ;
58
59
60 protected:
61
62 ClassDefOverride(PointSetInterval,1) // Concrete implementation of ConfInterval for simple 1-D intervals in the form [a,b]
63
64 private:
65
66 double fConfidenceLevel; ///< confidence level
67 RooAbsData* fParameterPointsInInterval; ///< either a histogram (RooDataHist) or a tree (RooDataSet)
68
69
70 };
71}
72
73#endif
#define ClassDefOverride(name, id)
Definition Rtypes.h:341
char name[80]
Definition TGX11.cxx:110
Abstract base class for binned and unbinned datasets.
Definition RooAbsData.h:57
RooArgSet is a container object that can hold multiple RooAbsArg objects.
Definition RooArgSet.h:55
Variable that can be changed from the outside.
Definition RooRealVar.h:37
ConfInterval is an interface class for a generic interval in the RooStats framework.
PointSetInterval is a concrete implementation of the ConfInterval interface.
double UpperLimit(RooRealVar &param)
return upper limit on a given parameter
RooAbsData * GetParameterPoints() const
return a copy of the data set (points) defining this interval
bool IsInInterval(const RooArgSet &) const override
check if parameter is in the interval
void SetConfidenceLevel(double cl) override
set the confidence level for the interval
RooArgSet * GetParameters() const override
return a cloned list with the parameter of interest
bool CheckParameters(const RooArgSet &) const override
return a cloned list with the parameter of interest
double ConfidenceLevel() const override
return the confidence level for the interval
RooAbsData * fParameterPointsInInterval
either a histogram (RooDataHist) or a tree (RooDataSet)
double fConfidenceLevel
confidence level
double LowerLimit(RooRealVar &param)
return lower limit on a given parameter
TObject * Clone(const char *newname="") const override
Make a clone of an object using the Streamer facility.
Definition TNamed.cxx:74
Namespace for the RooStats classes.
Definition Asimov.h:19