Logo ROOT   6.16/01
Reference Guide
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
14class RooRealVar;
15class RooArgList ;
16
18public:
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
33protected:
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
int Int_t
Definition: RtypesCore.h:41
double Double_t
Definition: RtypesCore.h:55
#define ClassDef(name, id)
Definition: Rtypes.h:324
RooAbsPdf is the abstract interface for all probability density functions The class provides hybrid a...
Definition: RooAbsPdf.h:41
RooArgSet is a container object that can hold multiple RooAbsArg objects.
Definition: RooArgSet.h:28
RooJeffreysPrior.
RooArgList _ownedList
virtual ~RooJeffreysPrior()
Destructor.
Double_t evaluate() const
Iterator over lowSet.
RooRealProxy _nominal
Double_t analyticalIntegral(Int_t code, const char *rangeName=0) const
Implements the actual analytical integral(s) advertised by getAnalyticalIntegral.
TIterator * _paramIter
TIterator * _obsIter
Iterator over paramSet.
virtual TObject * clone(const char *newname) const
RooJeffreysPrior()
Default constructor.
const RooArgList & lowList() const
RooListProxy _obsSet
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...
RooListProxy _paramSet
const RooArgList & paramList() const
RooListProxy is the concrete proxy for RooArgList objects.
Definition: RooListProxy.h:25
RooRealProxy is the concrete proxy for RooAbsReal objects A RooRealProxy is the general mechanism to ...
Definition: RooRealProxy.h:23
RooRealVar represents a fundamental (non-derived) real valued object.
Definition: RooRealVar.h:36
Iterator abstract base class.
Definition: TIterator.h:30
Mother of all ROOT objects.
Definition: TObject.h:37