Logo ROOT  
Reference Guide
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 /// destructor
32 ~PointSetInterval() override;
33
34
35 /// check if parameter is in the interval
36 bool IsInInterval(const RooArgSet&) const override;
37
38 /// set the confidence level for the interval
39 void SetConfidenceLevel(double cl) override {fConfidenceLevel = cl;}
40
41 /// return the confidence level for the interval
42 double ConfidenceLevel() const override {return fConfidenceLevel;}
43
44 /// Method to return lower limit on a given parameter
45 /// double LowerLimit(RooRealVar& param) ; // could provide, but misleading?
46 /// double UpperLimit(RooRealVar& param) ; // could provide, but misleading?
47
48 /// return a cloned list with the parameter of interest
49 RooArgSet* GetParameters() const override;
50
51 /// return a copy of the data set (points) defining this interval
53
54 /// return a cloned list with the parameter of interest
55 bool CheckParameters(const RooArgSet&) const override ;
56
57 /// return lower limit on a given parameter
58 double LowerLimit(RooRealVar& param) ;
59
60 /// return upper limit on a given parameter
61 double UpperLimit(RooRealVar& param) ;
62
63
64 protected:
65
66 ClassDefOverride(PointSetInterval,1) // Concrete implementation of ConfInterval for simple 1-D intervals in the form [a,b]
67
68 private:
69
70 double fConfidenceLevel; ///< confidence level
71 RooAbsData* fParameterPointsInInterval; ///< either a histogram (RooDataHist) or a tree (RooDataSet)
72
73
74 };
75}
76
77#endif
#define ClassDefOverride(name, id)
Definition: Rtypes.h:339
char name[80]
Definition: TGX11.cxx:110
RooAbsData is the common abstract base class for binned and unbinned datasets.
Definition: RooAbsData.h:62
RooArgSet is a container object that can hold multiple RooAbsArg objects.
Definition: RooArgSet.h:56
RooRealVar represents a variable that can be changed from the outside.
Definition: RooRealVar.h:40
ConfInterval is an interface class for a generic interval in the RooStats framework.
Definition: ConfInterval.h:35
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
PointSetInterval(const char *name=nullptr)
default constructors
RooArgSet * GetParameters() const override
Method to return lower limit on a given parameter double LowerLimit(RooRealVar& param) ; // could pro...
~PointSetInterval() override
destructor
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