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;
122 template <
typename T>
124 typename std::vector<T>::const_iterator
begin;
125 typename std::vector<T>::const_iterator
end;
126 typename std::vector<T>::const_iterator
me;
129 template <
typename T>
130 static void cartesian_product(std::vector<std::vector<T>> &out, std::vector<std::vector<T>> &in);
131 template <
typename Iterator>
133 void findShape(
const std::vector<double> &
x)
const;
#define ClassDef(name, id)
RooAbsBinning is the abstract base class for RooRealVar binning definitions This class defines the in...
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)
void operModeHook(RooAbsArg::OperMode)
Interface for operation mode change calls.
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
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