Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
ConfInterval.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_ConfInterval
12#define ROOSTATS_ConfInterval
13
14#include "TNamed.h"
15
16#include "RooArgSet.h"
17
18namespace RooStats {
19
20
21/** \class ConfInterval
22 \ingroup Roostats
23
24ConfInterval is an interface class for a generic interval in the RooStats framework.
25Any tool inheriting from IntervalCalculator can return a ConfInterval.
26There are many types of intervals, they may be a simple range [a,b] in 1 dimension,
27or they may be disconnected regions in multiple dimensions.
28So the common interface is simply to ask the interval if a given point "IsInInterval".
29The Interval also knows what confidence level it was constructed at and the space of
30parameters for which it was constructed.
31Note, one could use the same class for a Bayesian "credible interval".
32
33*/
34
35 class ConfInterval : public TNamed {
36
37 public:
38
39 /// constructor given name and title
40 explicit ConfInterval(const char* name = 0) : TNamed(name,name) {}
41
42 /// destructor
43 virtual ~ConfInterval() {}
44
45 /// operator=
47 if (&other==this) { return *this; }
48 TNamed::operator=(other);
49 return *this;
50 }
51
52 /// check if given point is in the interval
53 virtual Bool_t IsInInterval(const RooArgSet&) const = 0;
54
55 /// used to set confidence level. Keep pure virtual
56 virtual void SetConfidenceLevel(Double_t cl) = 0;
57
58 /// return confidence level
59 virtual Double_t ConfidenceLevel() const = 0;
60
61 /// return list of parameters of interest defining this interval (return a new cloned list)
62 virtual RooArgSet* GetParameters() const = 0;
63
64 /// check if parameters are correct (i.e. they are the POI of this interval)
65 virtual Bool_t CheckParameters(const RooArgSet&) const = 0;
66
67
68 protected:
69
70 ClassDef(ConfInterval,1) // Interface for Confidence Intervals
71
72 };
73}
74
75
76#endif
double Double_t
Definition RtypesCore.h:59
#define ClassDef(name, id)
Definition Rtypes.h:325
char name[80]
Definition TGX11.cxx:110
RooArgSet is a container object that can hold multiple RooAbsArg objects.
Definition RooArgSet.h:35
ConfInterval is an interface class for a generic interval in the RooStats framework.
virtual Double_t ConfidenceLevel() const =0
return confidence level
virtual ~ConfInterval()
destructor
virtual Bool_t CheckParameters(const RooArgSet &) const =0
check if parameters are correct (i.e. they are the POI of this interval)
virtual void SetConfidenceLevel(Double_t cl)=0
used to set confidence level. Keep pure virtual
ConfInterval & operator=(const ConfInterval &other)
operator=
ConfInterval(const char *name=0)
constructor given name and title
virtual RooArgSet * GetParameters() const =0
return list of parameters of interest defining this interval (return a new cloned list)
virtual Bool_t IsInInterval(const RooArgSet &) const =0
check if given point is in the interval
The TNamed class is the base class for all named ROOT classes.
Definition TNamed.h:29
TNamed & operator=(const TNamed &rhs)
TNamed assignment operator.
Definition TNamed.cxx:51
Namespace for the RooStats classes.
Definition Asimov.h:19