1 #ifndef ROO_VERTICA_INTERP_HIST
2 #define ROO_VERTICA_INTERP_HIST
8 #include "RooRealProxy.h"
9 #include "RooListProxy.h"
11 #include "../interface/SimpleCacheSentry.h"
12 #include "../interface/FastTemplate.h"
15 #define FastVerticalInterpHistPdf_CopyConstructor
16 #define FastVerticalInterpHistPdf_Serializable
36 const RooRealProxy &
x()
const {
return _x; }
66 return 0.125 * xnorm * (xnorm2 * (3.*xnorm2 - 10.) + 15);
76 virtual TObject*
clone(
const char* newname)
const = 0;
117 return 0.125 * xnorm * (xnorm2 * (3.*xnorm2 - 10.) + 15);
131 _x(
"x",
"Independent variable",this,const_cast<RooRealVar&>(x)),
135 _x(
"x",this,other.
_x),
175 _x(
"x",
"Independent variable",this,const_cast<RooRealVar&>(x)),
176 _y(
"y",
"Independent variable",this,const_cast<RooRealVar&>(y)),
void syncComponent(int which) const
virtual TObject * clone(const char *newname) const
const unsigned int size() const
FastHisto _cache
Cache of the result.
FastHisto2D _cacheNominal
Cache of nominal pdf (additive morphing) and its bin-by-bin logarithm (multiplicative) ...
#define FastVerticalInterpHistPdf_CopyConstructor
FastVerticalInterpHistPdf()
FastVerticalInterpHistPdf2D(const char *name, const char *title, const RooRealVar &x, const RooRealVar &y, bool conditional, const RooArgList &funcList, const RooArgList &coefList, Double_t smoothRegion=1., Int_t smoothAlgo=1)
virtual ~VerticalInterpHistPdf()
FastVerticalInterpHistPdf2D(const FastVerticalInterpHistPdf2D &other, const char *name=0)
ClassDef(VerticalInterpHistPdf, 1) protected void syncTotal() const
not to be serialized
Bool_t isCacheReady() const
void setupCaches() const
not to be serialized
virtual TObject * clone(const char *newname) const
void syncTotal(FastTemplate &cache, const FastTemplate &cacheNominal, const FastTemplate &cacheNominalLog) const
const RooArgList & coefList() const
void syncComponent(int which) const
Bool_t isCacheReady() const
const RooRealProxy & x() const
TIterator * _coefIter
Iterator over FUNC list.
virtual ~FastVerticalInterpHistPdf2D()
FastVerticalInterpHistPdfBase()
int * _cacheSingleGood
not to be serialized
void syncComponents(int dimension) const
Double_t evaluate() const
bool _init
Iterator over coefficient list.
FastHisto _cacheNominal
Cache of nominal pdf (additive morphing) and its bin-by-bin logarithm (multiplicative) ...
const RooArgList & funcList() const
Must be public, for serialization.
Bool_t selfNormalized() const
TIterator * _coefIter
Iterator over FUNC list.
void setupCaches() const
not to be serialized
double smoothStepFunc(double x) const
void syncComponent(int which) const
SimpleCacheSentry _sentry
Iterator over coefficient list.
virtual ~FastVerticalInterpHistPdf()
Double_t evaluate() const
virtual TObject * clone(const char *newname) const =0
virtual TObject * clone(const char *newname) const
std::vector< RooAbsReal * > _morphParams
not to be serialized
const RooArgList & funcList() const
std::vector< Morph > _morphs
not to be serialized
void syncComponents(int dimension) const
FastVerticalInterpHistPdf(const FastVerticalInterpHistPdf &other, const char *name=0)
FastVerticalInterpHistPdf(const char *name, const char *title, const RooRealVar &x, const RooArgList &funcList, const RooArgList &coefList, Double_t smoothRegion=1., Int_t smoothAlgo=1)
Bool_t selfNormalized() const
virtual ~FastVerticalInterpHistPdfBase()
double smoothStepFunc(double x) const
SimpleCacheSentry _sentry
not to be serialized
TH1 ** _cacheSingle
not to be serialized
FastHisto2D _cacheNominalLog
not to be serialized
Bool_t selfNormalized() const
Double_t evaluate() const
Bool_t conditional() const
const RooArgList & coefList() const
void syncMorph(Morph &out, const FastTemplate &nominal, FastTemplate &lo, FastTemplate &hi) const
not to be serialized
FastHisto2D _cache
Cache of the result.
uint32_t dimension(pat::CandKinResolution::Parametrization parametrization)
Returns the number of free parameters in a parametrization (3 or 4)
FastVerticalInterpHistPdf2D()
FastHisto _cacheNominalLog
not to be serialized
Double_t evaluate() const =0