Logo ROOT   6.07/09
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 #ifndef ROO_ARG_SET
15 #include "RooArgSet.h"
16 #endif
17 #ifndef ROO_TREE_DATA
18 #include "RooAbsData.h"
19 #endif
20 #ifndef RooStats_ConfInterval
21 #include "RooStats/ConfInterval.h"
22 #endif
23 
24 
25 namespace RooStats {
26 
27  /**
28 
29  \ingroup Roostats
30 
31  PointSetInterval is a concrete implementation of the ConfInterval interface.
32  It implements simple general purpose interval of arbitrary dimensions and shape.
33  It does not assume the interval is connected.
34  It uses either a RooDataSet (eg. a list of parameter points in the interval) or
35  a RooDataHist (eg. a Histogram-like object for small regions of the parameter space) to
36  store the interval.
37 
38 */
39 
40  class PointSetInterval : public ConfInterval {
41 
42  public:
43 
44  /// default constructors
45  explicit PointSetInterval(const char* name = 0);
46 
47  /// constructor from name and data set specifying the interval points
48  PointSetInterval(const char* name, RooAbsData&);
49 
50  /// destructor
51  virtual ~PointSetInterval();
52 
53 
54  /// check if parameter is in the interval
55  virtual Bool_t IsInInterval(const RooArgSet&) const;
56 
57  /// set the confidence level for the interval
58  virtual void SetConfidenceLevel(Double_t cl) {fConfidenceLevel = cl;}
59 
60  /// return the confidence level for the interval
61  virtual Double_t ConfidenceLevel() const {return fConfidenceLevel;}
62 
63  /// Method to return lower limit on a given parameter
64  /// Double_t LowerLimit(RooRealVar& param) ; // could provide, but misleading?
65  /// Double_t UpperLimit(RooRealVar& param) ; // could provide, but misleading?
66 
67  /// return a cloned list with the parameter of interest
68  virtual RooArgSet* GetParameters() const;
69 
70  /// return a copy of the data set (points) defining this interval
72 
73  /// return a cloned list with the parameter of interest
74  Bool_t CheckParameters(const RooArgSet&) const ;
75 
76  /// return lower limit on a given parameter
78 
79  /// return upper limit on a given parameter
81 
82 
83  protected:
84 
85  ClassDef(PointSetInterval,1) /// Concrete implementation of ConfInterval for simple 1-D intervals in the form [a,b]
86 
87  private:
88 
89  // RooArgSet* fParameters; // parameter of interest
90  Double_t fConfidenceLevel; /// confidence level
91  RooAbsData* fParameterPointsInInterval; /// either a histogram (RooDataHist) or a tree (RooDataSet)
92 
93 
94  };
95 }
96 
97 #endif
bool Bool_t
Definition: RtypesCore.h:59
virtual ~PointSetInterval()
destructor
#define ClassDef(name, id)
Definition: Rtypes.h:254
virtual void SetConfidenceLevel(Double_t cl)
set the confidence level for the interval
virtual TObject * Clone(const char *newname="") const
Make a clone of an object using the Streamer facility.
Definition: TNamed.cxx:65
virtual Bool_t IsInInterval(const RooArgSet &) const
check if parameter is in the interval
RooRealVar represents a fundamental (non-derived) real valued object.
Definition: RooRealVar.h:37
Double_t LowerLimit(RooRealVar &param)
return lower limit on a given parameter
RooAbsData * fParameterPointsInInterval
confidence level
RooAbsData * GetParameterPoints() const
return a copy of the data set (points) defining this interval
RooAbsData is the common abstract base class for binned and unbinned datasets.
Definition: RooAbsData.h:37
Double_t UpperLimit(RooRealVar &param)
return upper limit on a given parameter
ConfInterval is an interface class for a generic interval in the RooStats framework.
Definition: ConfInterval.h:44
Namespace for the RooStats classes.
Definition: Asimov.h:20
PointSetInterval is a concrete implementation of the ConfInterval interface.
double Double_t
Definition: RtypesCore.h:55
PointSetInterval(const char *name=0)
default constructors
Bool_t CheckParameters(const RooArgSet &) const
return a cloned list with the parameter of interest
virtual Double_t ConfidenceLevel() const
return the confidence level for the interval
char name[80]
Definition: TGX11.cxx:109
virtual RooArgSet * GetParameters() const
Method to return lower limit on a given parameter Double_t LowerLimit(RooRealVar& param) ; // could p...