7#ifndef ROOMOMENTMORPHFUNCND
8#define ROOMOMENTMORPHFUNCND
47 Grid2(
const std::vector<RooAbsBinning *> binnings)
49 for (
unsigned int i = 0; i < binnings.size(); i++) {
62 mutable std::vector<RooAbsBinning *>
_grid;
64 mutable std::map<std::vector<int>,
int>
_pdfMap;
66 mutable std::vector<std::vector<double>>
_nref;
98 const Grid2 &referenceGrid,
const Setting &setting);
121 template <
typename T>
123 typename std::vector<T>::const_iterator
begin;
124 typename std::vector<T>::const_iterator
end;
125 typename std::vector<T>::const_iterator
me;
128 template <
typename T>
129 static void cartesian_product(std::vector<std::vector<T>> &out, std::vector<std::vector<T>> &in);
130 template <
typename Iterator>
132 void findShape(
const std::vector<double> &
x)
const;
#define ClassDef(name, id)
RooAbsBinning is the abstract base class for RooRealVar binning definitions.
virtual RooAbsBinning * clone(const char *name=0) const =0
RooAbsCacheElement is the abstract base class for objects to be stored in RooAbsCache cache manager o...
virtual Bool_t add(const RooAbsArg &var, Bool_t silent=kFALSE)
Add the specified argument to list.
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
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...
RooListProxy is the concrete proxy for RooArgList objects.
virtual RooArgList containedArgs(Action)
RooChangeTracker * _tracker
CacheElem(RooAbsReal &sumFunc, RooChangeTracker &tracker, const RooArgList &flist)
void calculateFractions(const RooMomentMorphFuncND &self, Bool_t verbose=kTRUE) const
std::vector< int > _nnuis
Grid2(const RooAbsBinning &binning_x, const RooAbsBinning &binning_y)
void addBinning(const RooAbsBinning &binning)
std::vector< RooAbsBinning * > _grid
Grid2(const std::vector< RooAbsBinning * > 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)
RooAbsReal * sumFunc(const RooArgSet *nset)
RooObjCacheManager _cacheMgr
! Transient cache manager
virtual ~RooMomentMorphFuncND()
void findShape(const std::vector< double > &x) const
Bool_t setBinIntegrator(RooArgSet &allVars)
void initializeParameters(const RooArgList &parList)
static bool next_combination(const Iterator first, Iterator k, const Iterator last)
CacheElem * getCache(const RooArgSet *nset) const
Double_t evaluate() const
Evaluate this PDF / function / constant. Needs to be overridden by all derived classes.
static void cartesian_product(std::vector< std::vector< T > > &out, std::vector< std::vector< T > > &in)
virtual Double_t getVal(const RooArgSet *set=0) const
void useHorizontalMorphing(Bool_t val)
void initializeObservables(const RooArgList &obsList)
virtual Bool_t selfNormalized() const
virtual TObject * clone(const char *newname) const
void setMode(const Setting &setting)
std::vector< std::vector< double > > _squareVec
int sij(const int &i, const int &j) const
TIterator * _obsItr
do not persist
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.
RooSetProxy is the concrete proxy for RooArgSet objects.
Iterator abstract base class.
Mother of all ROOT objects.
std::vector< T >::const_iterator end
std::vector< T >::const_iterator me
std::vector< T >::const_iterator begin