73 _depList(
"depList",
"List of dependents",this),
91 <<
") ERROR variable list and RooDataHist must contain the same variables." << endl ;
99 <<
") ERROR variable list and RooDataHist must contain the same variables." << endl ;
119 _depList(
"depList",
"List of dependents",this),
137 <<
") ERROR variable list and RooDataHist must contain the same variables." << endl ;
145 <<
") ERROR variable list and RooDataHist must contain the same variables." << endl ;
243 if (wgt>max) max=wgt ;
296 delete allVarsCommon ;
308 if (allVarsSel->
getSize()==0) {
323 analVars.
add(*allVarsSel) ;
418 list<Double_t>* hint =
new list<Double_t> ;
421 xlo = xlo - 0.01*(xhi-xlo) ;
422 xhi = xhi + 0.01*(xhi-xlo) ;
429 if (boundaries[i]>=xlo && boundaries[i]<=xhi) {
430 hint->push_back(boundaries[i]-delta) ;
431 hint->push_back(boundaries[i]+delta) ;
483 cout <<
"RooHistFunc::binBoundaries(" <<
GetName() <<
") obs = " << obs.
GetName() <<
" hobs is not found, returning null" << endl ;
499 cout <<
"RooHistFunc::binBoundaries(" <<
GetName() <<
") hobs = " << hobs->
GetName() <<
" is not found in dataset?" << endl ;
505 cout <<
"RooHistFunc::binBoundaries(" <<
GetName() <<
") hobs = " << hobs->
GetName() <<
" but is not an LV, returning null" << endl ;
513 list<Double_t>* hint =
new list<Double_t> ;
520 if (boundaries[i]>xlo-delta && boundaries[i]<xhi+delta) {
524 transform->
setVal(boundary) ;
526 hint->push_back(obs.
getVal()) ;
528 hint->push_back(boundary) ;
544 std::list<RooAbsData*>::const_iterator iter ;
545 for (iter = allData.begin() ; iter != allData.end() ; ++iter) {
571 coutE(
ObjectHandling) <<
" RooHistPdf::importWorkspaceHook(" <<
GetName() <<
") unable to import clone of underlying RooDataHist with unique name " << uniqueName <<
", abort" << endl ;
583 coutE(
ObjectHandling) <<
" RooHistPdf::importWorkspaceHook(" <<
GetName() <<
") unable to import clone of underlying RooDataHist with unique name " << uniqueName <<
", abort" << endl ;
621 void RooHistFunc::Streamer(
TBuffer &R__b)
virtual Double_t getMin(const char *name=0) const
virtual const char * GetName() const
Returns name of object.
TIterator * createIterator(Bool_t dir=kIterForward) const
virtual Int_t WriteClassBuffer(const TClass *cl, void *pointer)=0
virtual Double_t getMax(const char *name=0) const
virtual Bool_t add(const RooAbsCollection &col, Bool_t silent=kFALSE)
Add a collection of arguments to this collection by calling add() for each element in the source coll...
virtual const RooArgSet * get() const
virtual void ioStreamerPass2()
Schema evolution: if histObsList wasn't filled from persistence (v1) then fill it here...
Bool_t dependsOn(const RooAbsCollection &serverList, const RooAbsArg *ignoreArg=0, Bool_t valueOnly=kFALSE) const
Test whether we depend on (ie, are served by) any object in the specified collection.
std::list< RooAbsData * > allEmbeddedData() const
Return list of all dataset in the workspace.
virtual void Clear(Option_t *option="")
Remove all objects from the array.
Double_t analyticalIntegral(Int_t code, const char *rangeName=0) const
Return integral identified by 'code'.
RooAbsCollection * selectCommon(const RooAbsCollection &refColl) const
Create a subset of the current collection, consisting only of those elements that are contained as we...
Int_t getAnalyticalIntegral(RooArgSet &allVars, RooArgSet &analVars, const char *rangeName=0) const
Determine integration scenario.
Bool_t matchArgs(const RooArgSet &allDeps, RooArgSet &numDeps, const RooArgProxy &a) const
Utility function for use in getAnalyticalIntegral().
Double_t getVal(const RooArgSet *set=0) const
void registerProxy(RooArgProxy &proxy)
Register an RooArgProxy in the proxy list.
Buffer base class used for serializing objects.
RooAbsData * embeddedData(const char *name) const
Retrieve dataset (binned or unbinned) with given name. A null pointer is returned if not found...
Int_t _intOrder
Auxiliary class keeping tracking of analytical integration code.
Iterator abstract base class.
virtual Int_t numBoundaries() const =0
virtual Bool_t inRange(const char *) const
virtual void syncCache(const RooArgSet *nset=0)=0
RooDataSet is a container class to hold N-dimensional binned data.
Int_t numTypes(const char *=0) const
RooHistFunc implements a real-valued function sampled from a multidimensional histogram.
virtual const RooAbsBinning * getBinningPtr(const char *rangeName) const =0
Bool_t _unitNorm
Total volume of space (product of ranges of observables)
virtual Double_t weight() const
RooHistFunc()
Default constructor.
virtual void Print(Option_t *options=0) const
This method must be overridden when a class wants to print itself.
RooRealVar represents a fundamental (non-derived) real valued object.
virtual void addClone(const RooAbsCollection &col, Bool_t silent=kFALSE)
Add a collection of arguments to this collection by calling addOwned() for each element in the source...
RooNameSet is a utility class that stores the names the objects in a RooArget.
VecExpr< UnaryOp< Fabs< T >, VecExpr< A, T, D >, T >, T, D > fabs(const VecExpr< A, T, D > &rhs)
virtual std::list< Double_t > * plotSamplingHint(RooAbsRealLValue &obs, Double_t xlo, Double_t xhi) const
Return sampling hint for making curves of (projections) of this function as the recursive division st...
virtual void copyCache(const RooAbsArg *source, Bool_t valueOnly=kFALSE, Bool_t setValDirty=kTRUE)=0
virtual Bool_t InheritsFrom(const char *classname) const
Returns kTRUE if object inherits from class "classname".
char * Form(const char *fmt,...)
RooAbsData is the common abstract base class for binned and unbinned datasets.
Double_t totVolume() const
Return the total volume spanned by the observables of the RooDataHist.
RooCmdArg Rename(const char *suffix)
RooCategory represents a fundamental (non-derived) discrete value object.
virtual void setVal(Double_t value)=0
Double_t sum(Bool_t correctForBinSize, Bool_t inverseCorr=kFALSE) const
Return the sum of the weights of all hist bins.
virtual Int_t ReadClassBuffer(const TClass *cl, void *pointer, const TClass *onfile_class=0)=0
RooAbsBinning is the abstract base class for RooRealVar binning definitions This class defines the in...
virtual Double_t sumEntries() const
RooAbsArg * find(const char *name) const
Find object with given name in list.
virtual Int_t numEntries() const
Return the number of bins.
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
RooCmdArg Embedded(Bool_t flag=kTRUE)
you should not use this method at all Int_t Int_t Double_t Double_t Double_t e
virtual Double_t maxVal(Int_t code) const
Return maximum value for set of observables identified by code assigned in getMaxVal.
virtual Int_t getMaxVal(const RooArgSet &vars) const
Only handle case of maximum in all variables.
RooAbsCollection is an abstract container object that can hold multiple RooAbsArg objects...
RooAbsRealLValue is the common abstract base class for objects that represent a real value that may a...
Bool_t import(const RooAbsArg &arg, const RooCmdArg &arg1=RooCmdArg(), const RooCmdArg &arg2=RooCmdArg(), const RooCmdArg &arg3=RooCmdArg(), const RooCmdArg &arg4=RooCmdArg(), const RooCmdArg &arg5=RooCmdArg(), const RooCmdArg &arg6=RooCmdArg(), const RooCmdArg &arg7=RooCmdArg(), const RooCmdArg &arg8=RooCmdArg(), const RooCmdArg &arg9=RooCmdArg())
Import a RooAbsArg object, e.g.
virtual TObject * Next()=0
Bool_t areIdentical(const RooDataHist &dh1, const RooDataHist &dh2)
virtual std::list< Double_t > * binBoundaries(RooAbsRealLValue &, Double_t, Double_t) const
Return sampling hint for making curves of (projections) of this function as the recursive division st...
Double_t evaluate() const
Return the current value: The value of the bin enclosing the current coordinates of the dependents...
virtual Double_t * array() const =0
Bool_t importWorkspaceHook(RooWorkspace &ws)
Check if our datahist is already in the workspace.
Abstract base class for objects that are lvalues, i.e.
RooAbsArg is the common abstract base class for objects that represent a value (of arbitrary type) an...
The RooWorkspace is a persistable container for RooFit projects.
virtual Bool_t add(const RooAbsArg &var, Bool_t silent=kFALSE)
Overloaded RooArgSet::add() method inserts 'var' into set and registers 'var' as server to owner with...