ROOT  6.07/01
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
RooJeffreysPrior.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Project: RooStats
3  * Package: RooStats
4  * File: $Id$
5  * author: Kyle Cranmer
6  *****************************************************************************/
7 #ifndef JEFFREYSPRIOR
8 #define JEFFREYSPRIOR
9 
10 #include "RooAbsPdf.h"
11 #include "RooRealProxy.h"
12 #include "RooListProxy.h"
13 
14 class RooRealVar;
15 class RooArgList ;
16 
17 class RooJeffreysPrior : public RooAbsPdf {
18 public:
19 
21  RooJeffreysPrior(const char *name, const char *title, RooAbsPdf& nominal, const RooArgList& paramSet, const RooArgList& obsSet) ;
22  virtual ~RooJeffreysPrior() ;
23 
24  RooJeffreysPrior(const RooJeffreysPrior& other, const char* name = 0);
25  virtual TObject* clone(const char* newname) const { return new RooJeffreysPrior(*this, newname); }
26 
27  const RooArgList& lowList() const { return _obsSet ; }
28  const RooArgList& paramList() const { return _paramSet ; }
29 
30  Int_t getAnalyticalIntegral(RooArgSet& allVars, RooArgSet& analVars, const char* rangeName=0) const ;
31  Double_t analyticalIntegral(Int_t code, const char* rangeName=0) const ;
32 
33 protected:
34 
35  RooRealProxy _nominal; // The nominal value
36  //RooAbsPdf* _nominal; // The nominal value
37  RooArgList _ownedList ; // List of owned components
38  RooListProxy _obsSet ; // Low-side variation
39  RooListProxy _paramSet ; // interpolation parameters
40  mutable TIterator* _paramIter ; //! Iterator over paramSet
41  mutable TIterator* _obsIter ; //! Iterator over lowSet
42 
43  Double_t evaluate() const;
44 
45  ClassDef(RooJeffreysPrior,1) // Sum of RooAbsReal objects
46 };
47 
48 #endif
RooListProxy _obsSet
RooJeffreysPrior()
Default constructor.
int Int_t
Definition: RtypesCore.h:41
Iterator abstract base class.
Definition: TIterator.h:32
Int_t getAnalyticalIntegral(RooArgSet &allVars, RooArgSet &analVars, const char *rangeName=0) const
if (matchArgs(allVars,analVars,x)) return 1 ; if (matchArgs(allVars,analVars,mean)) return 2 ; return...
const RooArgList & lowList() const
#define ClassDef(name, id)
Definition: Rtypes.h:254
Double_t analyticalIntegral(Int_t code, const char *rangeName=0) const
Implements the actual analytical integral(s) advertised by getAnalyticalIntegral. ...
virtual ~RooJeffreysPrior()
Destructor.
const RooArgList & paramList() const
RooRealVar represents a fundamental (non-derived) real valued object.
Definition: RooRealVar.h:37
TPaveLabel title(3, 27.1, 15, 28.7,"ROOT Environment and Tools")
TIterator * _paramIter
virtual TObject * clone(const char *newname) const
RooListProxy is the concrete proxy for RooArgList objects.
Definition: RooListProxy.h:26
double Double_t
Definition: RtypesCore.h:55
Double_t evaluate() const
Iterator over lowSet.
#define name(a, b)
Definition: linkTestLib0.cpp:5
Mother of all ROOT objects.
Definition: TObject.h:58
RooListProxy _paramSet
RooArgList _ownedList
RooJeffreysPrior.
RooAbsPdf is the abstract interface for all probability density functions The class provides hybrid a...
Definition: RooAbsPdf.h:41
RooRealProxy is the concrete proxy for RooAbsReal objects A RooRealProxy is the general mechanism to ...
Definition: RooRealProxy.h:23
RooRealProxy _nominal
TIterator * _obsIter
Iterator over paramSet.