Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
RooParamHistFunc.h
Go to the documentation of this file.
1/*****************************************************************************
2 * Project: RooFit *
3 * *
4 * This code was autogenerated by RooClassFactory *
5 *****************************************************************************/
6
7#ifndef ROO_PARAM_HIST_FUNC
8#define ROO_PARAM_HIST_FUNC
9
10#include "RooAbsPdf.h"
11#include "RooRealProxy.h"
12#include "RooCategoryProxy.h"
13#include "RooAbsReal.h"
14#include "RooAbsCategory.h"
15#include "RooListProxy.h"
16#include "RooSetProxy.h"
17#include "RooDataHist.h"
18#include <list>
19
21public:
23 RooParamHistFunc(const char *name, const char *title, RooDataHist& dh, bool paramRelative=true);
24 RooParamHistFunc(const char *name, const char *title, const RooAbsArg& x, RooDataHist& dh, bool paramRelative=true);
25 RooParamHistFunc(const char *name, const char *title, RooDataHist& dh, const RooParamHistFunc& paramSource, bool paramRelative=true) ;
26 RooParamHistFunc(const RooParamHistFunc& other, const char* name=nullptr) ;
27 TObject* clone(const char* newname) const override { return new RooParamHistFunc(*this,newname); }
28 inline ~RooParamHistFunc() override { }
29
30 std::list<double>* binBoundaries(RooAbsRealLValue& /*obs*/, double /*xlo*/, double /*xhi*/) const override ;
31 std::list<double>* plotSamplingHint(RooAbsRealLValue& obs, double xlo, double xhi) const override ;
32 bool isBinnedDistribution(const RooArgSet&) const override { return true ; }
33
34
35 bool forceAnalyticalInt(const RooAbsArg&) const override { return true ; }
36 Int_t getAnalyticalIntegralWN(RooArgSet& allVars, RooArgSet& analVars, const RooArgSet* normSet,const char* rangeName=nullptr) const override ;
37 double analyticalIntegralWN(Int_t code, const RooArgSet* normSet, const char* rangeName=nullptr) const override ;
38
39 double getActual(Int_t ibin) ;
40 void setActual(Int_t ibin, double newVal) ;
41 double getNominal(Int_t ibin) const ;
42 double getNominalError(Int_t ibin) const ;
43
44 const RooArgList& paramList() const { return _p ; }
45
46 void translate(RooFit::Detail::CodeSquashContext &ctx) const override;
47
48 protected:
49
50 friend class RooHistConstraint ;
51
55 bool _relParam ;
56
57 double evaluate() const override ;
58
59private:
60
61 ClassDefOverride(RooParamHistFunc,1) // Your description goes here...
62};
63
64#endif
#define ClassDefOverride(name, id)
Definition Rtypes.h:341
char name[80]
Definition TGX11.cxx:110
RooAbsArg is the common abstract base class for objects that represent a value and a "shape" in RooFi...
Definition RooAbsArg.h:80
RooAbsRealLValue is the common abstract base class for objects that represent a real value that may a...
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
Definition RooAbsReal.h:59
RooArgList is a container object that can hold multiple RooAbsArg objects.
Definition RooArgList.h:22
RooArgSet is a container object that can hold multiple RooAbsArg objects.
Definition RooArgSet.h:55
The RooDataHist is a container class to hold N-dimensional binned data.
Definition RooDataHist.h:39
A class to maintain the context for squashing of RooFit models into code.
The RooHistConstraint implements constraint terms for a binned PDF with statistical uncertainties.
A histogram function that assigns scale parameters to every bin.
void setActual(Int_t ibin, double newVal)
~RooParamHistFunc() override
double evaluate() const override
Evaluate this PDF / function / constant. Needs to be overridden by all derived classes.
const RooArgList & paramList() const
double getNominalError(Int_t ibin) const
double getActual(Int_t ibin)
TObject * clone(const char *newname) const override
double analyticalIntegralWN(Int_t code, const RooArgSet *normSet, const char *rangeName=nullptr) const override
Implement analytical integrations by doing appropriate weighting from component integrals functions t...
double getNominal(Int_t ibin) const
bool forceAnalyticalInt(const RooAbsArg &) const override
void translate(RooFit::Detail::CodeSquashContext &ctx) const override
This function defines a translation for each RooAbsReal based object that can be used to express the ...
bool isBinnedDistribution(const RooArgSet &) const override
Tests if the distribution is binned. Unless overridden by derived classes, this always returns false.
std::list< double > * binBoundaries(RooAbsRealLValue &, double, double) const override
Return sampling hint for making curves of (projections) of this function as the recursive division st...
Int_t getAnalyticalIntegralWN(RooArgSet &allVars, RooArgSet &analVars, const RooArgSet *normSet, const char *rangeName=nullptr) const override
Advertise that all integrals can be handled internally.
std::list< double > * plotSamplingHint(RooAbsRealLValue &obs, double xlo, double xhi) const override
Return sampling hint for making curves of (projections) of this function as the recursive division st...
Mother of all ROOT objects.
Definition TObject.h:41
Double_t x[n]
Definition legend1.C:17