7#ifndef ROOMOMENTMORPHFUNCND
8#define ROOMOMENTMORPHFUNCND
51 Grid2(std::vector<RooAbsBinning *>
const &binnings)
53 for (
unsigned int i = 0; i < binnings.size(); i++) {
66 mutable std::vector<RooAbsBinning *>
_grid;
68 mutable std::map<std::vector<int>,
int>
_pdfMap;
70 mutable std::vector<std::vector<double>>
_nref;
104 const Grid2 &referenceGrid,
const Setting &setting);
127 void findShape(
const std::vector<double> &
x)
const;
140 mutable std::unique_ptr<TMatrixD>
_M;
141 mutable std::unique_ptr<TMatrixD>
_MSqr;
#define ClassDef(name, id)
#define ClassDefOverride(name, id)
RooAbsBinning is the abstract base class for RooRealVar binning definitions.
virtual RooAbsBinning * clone(const char *name=nullptr) const =0
RooAbsCacheElement is the abstract base class for objects to be stored in RooAbsCache cache manager o...
Int_t getSize() const
Return the number of elements in the collection.
virtual bool add(const RooAbsArg &var, bool silent=false)
Add the specified argument to list.
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
RooAbsReal()
coverity[UNINIT_CTOR] Default constructor
friend class RooRealSumFunc
RooArgList is a container object that can hold multiple RooAbsArg objects.
RooArgSet is a container object that can hold multiple RooAbsArg objects.
RooChangeTracker is a meta object that tracks value changes in a given set of RooAbsArgs by registeri...
void calculateFractions(const RooMomentMorphFuncND &self, bool verbose=true) const
RooChangeTracker * _tracker
CacheElem(RooAbsReal &sumFunc, RooChangeTracker &tracker, const RooArgList &flist)
RooArgList containedArgs(Action) override
std::vector< int > _nnuis
Grid2(const RooAbsBinning &binning_x, const RooAbsBinning &binning_y)
void addBinning(const RooAbsBinning &binning)
std::vector< RooAbsBinning * > _grid
Grid2(std::vector< RooAbsBinning * > const &binnings)
std::map< std::vector< int >, int > _pdfMap
Grid2(const RooAbsBinning &binning_x)
Grid2(const RooAbsBinning &binning_x, const RooAbsBinning &binning_y, const RooAbsBinning &binning_z)
std::vector< std::vector< double > > _nref
void addPdf(const RooAbsReal &func, int bin_x)
virtual bool selfNormalized() const
RooObjCacheManager _cacheMgr
! Transient cache manager
std::unique_ptr< TMatrixD > _MSqr
void findShape(const std::vector< double > &x) const
double evaluate() const override
Evaluate this PDF / function / constant. Needs to be overridden by all derived classes.
void initializeParameters(const RooArgList &parList)
RooAbsReal * sumFunc(const RooArgSet *nset)
CacheElem * getCache(const RooArgSet *nset) const
std::unique_ptr< TMatrixD > _M
void useHorizontalMorphing(bool val)
TObject * clone(const char *newname) const override
RooArgSet * _curNormSet
! Transient cache manager
void initializeObservables(const RooArgList &obsList)
virtual double getVal(const RooArgSet *set=nullptr) const
void setMode(const Setting &setting)
bool setBinIntegrator(RooArgSet &allVars)
std::vector< std::vector< double > > _squareVec
int sij(const int &i, const int &j) const
~RooMomentMorphFuncND() override
std::vector< int > _squareIdx
Class RooObjCacheManager is an implementation of class RooCacheManager<RooAbsCacheElement> and specia...
RooRealVar represents a variable that can be changed from the outside.
Mother of all ROOT objects.