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"
16 #include "RooStats/ConfInterval.h"
17 
18 
19 namespace RooStats {
20 
21  class PointSetInterval : public ConfInterval {
22 
23  public:
24 
25  /// default constructors
26  explicit PointSetInterval(const char* name = 0);
27 
28  /// constructor from name and data set specifying the interval points
29  PointSetInterval(const char* name, RooAbsData&);
30 
31  /// destructor
32  virtual ~PointSetInterval();
33 
34 
35  /// check if parameter is in the interval
36  virtual Bool_t IsInInterval(const RooArgSet&) const;
37 
38  /// set the confidence level for the interval
39  virtual void SetConfidenceLevel(Double_t cl) {fConfidenceLevel = cl;}
40 
41  /// return the confidence level for the interval
42  virtual Double_t ConfidenceLevel() const {return fConfidenceLevel;}
43 
44  /// Method to return lower limit on a given parameter
45  /// Double_t LowerLimit(RooRealVar& param) ; // could provide, but misleading?
46  /// Double_t UpperLimit(RooRealVar& param) ; // could provide, but misleading?
47 
48  /// return a cloned list with the parameter of interest
49  virtual RooArgSet* GetParameters() const;
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_t CheckParameters(const RooArgSet&) const ;
56 
57  /// return lower limit on a given parameter
59 
60  /// return upper limit on a given parameter
62 
63 
64  protected:
65 
66  ClassDef(PointSetInterval,1) /// Concrete implementation of ConfInterval for simple 1-D intervals in the form [a,b]
67 
68  private:
69 
70  // RooArgSet* fParameters; // parameter of interest
71  Double_t fConfidenceLevel; /// confidence level
72  RooAbsData* fParameterPointsInInterval; /// either a histogram (RooDataHist) or a tree (RooDataSet)
73 
74 
75  };
76 }
77 
78 #endif
RooStats::PointSetInterval::ConfidenceLevel
virtual Double_t ConfidenceLevel() const
return the confidence level for the interval
Definition: PointSetInterval.h:42
RooStats::PointSetInterval::fConfidenceLevel
Double_t fConfidenceLevel
Definition: PointSetInterval.h:71
RooStats::PointSetInterval::GetParameterPoints
RooAbsData * GetParameterPoints() const
return a copy of the data set (points) defining this interval
Definition: PointSetInterval.h:52
RooStats::PointSetInterval::fParameterPointsInInterval
RooAbsData * fParameterPointsInInterval
confidence level
Definition: PointSetInterval.h:72
RooAbsData
RooAbsData is the common abstract base class for binned and unbinned datasets.
Definition: RooAbsData.h:49
RooStats::PointSetInterval::UpperLimit
Double_t UpperLimit(RooRealVar &param)
return upper limit on a given parameter
Definition: PointSetInterval.cxx:147
RooArgSet.h
ConfInterval.h
bool
RooStats::PointSetInterval::PointSetInterval
PointSetInterval(const char *name=0)
default constructors
Definition: PointSetInterval.cxx:50
RooStats::PointSetInterval::IsInInterval
virtual Bool_t IsInInterval(const RooArgSet &) const
check if parameter is in the interval
Definition: PointSetInterval.cxx:76
TNamed::Clone
virtual TObject * Clone(const char *newname="") const
Make a clone of an object using the Streamer facility.
Definition: TNamed.cxx:74
RooStats::PointSetInterval::CheckParameters
Bool_t CheckParameters(const RooArgSet &) const
return a cloned list with the parameter of interest
Definition: PointSetInterval.cxx:130
RooStats::PointSetInterval::GetParameters
virtual RooArgSet * GetParameters() const
Method to return lower limit on a given parameter Double_t LowerLimit(RooRealVar& param) ; // could p...
Definition: PointSetInterval.cxx:123
RooStats::PointSetInterval::~PointSetInterval
virtual ~PointSetInterval()
destructor
Definition: PointSetInterval.cxx:68
RooAbsData.h
Double_t
double Double_t
Definition: RtypesCore.h:59
RooStats
Namespace for the RooStats classes.
Definition: Asimov.h:19
ClassDef
#define ClassDef(name, id)
Definition: Rtypes.h:325
name
char name[80]
Definition: TGX11.cxx:110
RooStats::PointSetInterval::SetConfidenceLevel
virtual void SetConfidenceLevel(Double_t cl)
set the confidence level for the interval
Definition: PointSetInterval.h:39
RooStats::ConfInterval
ConfInterval is an interface class for a generic interval in the RooStats framework.
Definition: ConfInterval.h:35
RooRealVar
RooRealVar represents a variable that can be changed from the outside.
Definition: RooRealVar.h:39
RooStats::PointSetInterval
PointSetInterval is a concrete implementation of the ConfInterval interface.
Definition: PointSetInterval.h:21
RooStats::PointSetInterval::LowerLimit
Double_t LowerLimit(RooRealVar &param)
return lower limit on a given parameter
Definition: PointSetInterval.cxx:160
RooArgSet
RooArgSet is a container object that can hold multiple RooAbsArg objects.
Definition: RooArgSet.h:29