Logo ROOT  
Reference Guide
Loading...
Searching...
No Matches
RooNumRunningInt::RICacheElem Class Reference

Definition at line 29 of file RooNumRunningInt.h.

Public Types

enum  Action { OperModeChange , OptimizeCaching , FindConstantNodes }

Public Member Functions

 RICacheElem (const RooNumRunningInt &ri, const RooArgSet *nset)
 Construct RunningIntegral CacheElement.
void addPoint (Int_t ix)
 Sample function at bin ix.
void addRange (Int_t ixlo, Int_t ixhi, Int_t nbins)
 Fill all empty histogram bins in the range [ixlo,ixhi] where nbins is the total number of histogram bins.
bool cacheSource ()
void calculate (bool cdfmode)
 Calculate the numeric running integral and store the result in the cache histogram provided by RooAbsCachedPdf.
RooArgList containedArgs (Action) override
 Return all RooAbsArg components contained in cache element.
virtual void findConstantNodes (const RooArgSet &obs, RooArgSet &cacheList, RooLinkedList &processedNodes)
 Interface for constant term optimization calls.
RooHistFuncfunc ()
RooDataHisthist ()
virtual TClassIsA () const
virtual void operModeHook (RooAbsArg::OperMode)
 Interface for changes of operation mode.
virtual void optimizeCacheMode (const RooArgSet &obs, RooArgSet &optNodes, RooLinkedList &processedNodes)
 Interface for cache optimization calls.
RooChangeTrackerparamTracker ()
void printCompactTreeHook (std::ostream &, const char *, Int_t, Int_t) override
 Print contents of cache when printing self as part of object tree.
virtual bool redirectServersHook (const RooAbsCollection &, bool, bool, bool)
 Interface for server redirect calls.
void setCacheSource (bool flag)
void setOwner (RooAbsArg *owner)
void setSourceClone (RooAbsReal *newSource)
void setUnitNorm ()
RooAbsRealsourceClone ()
virtual void Streamer (TBuffer &)
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)

Static Public Member Functions

static TClassClass ()
static const char * Class_Name ()
static constexpr Version_t Class_Version ()
static const char * DeclFileName ()

Public Attributes

std::vector< double_ax
std::vector< double_ay
RooNumRunningInt_self
RooArgSet _xx

Protected Attributes

RooAbsArg_owner
 ! Pointer to owning RooAbsArg

Private Attributes

bool _cacheSource
RooHistFunc_func
RooDataHist_hist
RooChangeTracker_paramTracker
RooAbsReal_sourceClone

#include <RooNumRunningInt.h>

Inheritance diagram for RooNumRunningInt::RICacheElem:
RooAbsCachedReal::FuncCacheElem RooAbsCacheElement

Member Enumeration Documentation

◆ Action

Enumerator
OperModeChange 
OptimizeCaching 
FindConstantNodes 

Definition at line 39 of file RooAbsCacheElement.h.

Constructor & Destructor Documentation

◆ RICacheElem()

RooNumRunningInt::RICacheElem::RICacheElem ( const RooNumRunningInt & ri,
const RooArgSet * nset )

Construct RunningIntegral CacheElement.

Definition at line 83 of file RooNumRunningInt.cxx.

Member Function Documentation

◆ addPoint()

void RooNumRunningInt::RICacheElem::addPoint ( Int_t ix)

Sample function at bin ix.

Definition at line 217 of file RooNumRunningInt.cxx.

◆ addRange()

void RooNumRunningInt::RICacheElem::addRange ( Int_t ixlo,
Int_t ixhi,
Int_t nbins )

Fill all empty histogram bins in the range [ixlo,ixhi] where nbins is the total number of histogram bins.

This method samples the mid-point of the range and if the mid-point value is within small tolerance of the interpolated mid-point value fills all remaining elements through linear interpolation. If the tolerance is exceeded, the algorithm is recursed on the two subranges [xlo,xmid] and [xmid,xhi]

Definition at line 170 of file RooNumRunningInt.cxx.

◆ cacheSource()

bool RooAbsCachedReal::FuncCacheElem::cacheSource ( )
inlineinherited

Definition at line 74 of file RooAbsCachedReal.h.

◆ calculate()

void RooNumRunningInt::RICacheElem::calculate ( bool cdfmode)

Calculate the numeric running integral and store the result in the cache histogram provided by RooAbsCachedPdf.

Definition at line 122 of file RooNumRunningInt.cxx.

◆ Class()

TClass * RooAbsCacheElement::Class ( )
staticinherited
Returns
TClass describing this class

◆ Class_Name()

const char * RooAbsCacheElement::Class_Name ( )
staticinherited
Returns
Name of this class

◆ Class_Version()

constexpr Version_t RooAbsCacheElement::Class_Version ( )
inlinestaticconstexprinherited
Returns
Version of this class

Definition at line 55 of file RooAbsCacheElement.h.

◆ containedArgs()

RooArgList RooNumRunningInt::RICacheElem::containedArgs ( Action action)
overridevirtual

Return all RooAbsArg components contained in cache element.

Reimplemented from RooAbsCachedReal::FuncCacheElem.

Definition at line 106 of file RooNumRunningInt.cxx.

◆ DeclFileName()

const char * RooAbsCacheElement::DeclFileName ( )
inlinestaticinherited
Returns
Name of the file containing the class declaration

Definition at line 55 of file RooAbsCacheElement.h.

◆ findConstantNodes()

void RooAbsCacheElement::findConstantNodes ( const RooArgSet & obs,
RooArgSet & cacheList,
RooLinkedList & processedNodes )
virtualinherited

Interface for constant term optimization calls.

The default implementation is to forward all these calls to all contained RooAbsArg objects as publicized through containedArg()

Definition at line 71 of file RooAbsCacheElement.cxx.

◆ func()

RooHistFunc * RooAbsCachedReal::FuncCacheElem::func ( )
inlineinherited

Definition at line 67 of file RooAbsCachedReal.h.

◆ hist()

RooDataHist * RooAbsCachedReal::FuncCacheElem::hist ( )
inlineinherited

Definition at line 68 of file RooAbsCachedReal.h.

◆ IsA()

virtual TClass * RooAbsCacheElement::IsA ( ) const
inlinevirtualinherited
Returns
TClass describing current object

Definition at line 55 of file RooAbsCacheElement.h.

◆ operModeHook()

virtual void RooAbsCacheElement::operModeHook ( RooAbsArg::OperMode )
inlinevirtualinherited

Interface for changes of operation mode.

Reimplemented in RooLagrangianMorphFunc::CacheElem.

Definition at line 42 of file RooAbsCacheElement.h.

◆ optimizeCacheMode()

void RooAbsCacheElement::optimizeCacheMode ( const RooArgSet & obs,
RooArgSet & optNodes,
RooLinkedList & processedNodes )
virtualinherited

Interface for cache optimization calls.

The default implementation is to forward all these calls to all contained RooAbsArg objects as publicized through containedArg()

Definition at line 58 of file RooAbsCacheElement.cxx.

◆ paramTracker()

RooChangeTracker * RooAbsCachedReal::FuncCacheElem::paramTracker ( )
inlineinherited

Definition at line 69 of file RooAbsCachedReal.h.

◆ printCompactTreeHook()

void RooAbsCachedReal::FuncCacheElem::printCompactTreeHook ( std::ostream & os,
const char * indent,
Int_t curElem,
Int_t maxElem )
overridevirtualinherited

Print contents of cache when printing self as part of object tree.

Reimplemented from RooAbsCacheElement.

Definition at line 273 of file RooAbsCachedReal.cxx.

◆ redirectServersHook()

bool RooAbsCacheElement::redirectServersHook ( const RooAbsCollection & ,
bool ,
bool ,
bool  )
virtualinherited

Interface for server redirect calls.

Definition at line 37 of file RooAbsCacheElement.cxx.

◆ setCacheSource()

void RooAbsCachedReal::FuncCacheElem::setCacheSource ( bool flag)
inlineinherited

Definition at line 75 of file RooAbsCachedReal.h.

◆ setOwner()

void RooAbsCacheElement::setOwner ( RooAbsArg * owner)
inlineinherited

Definition at line 46 of file RooAbsCacheElement.h.

◆ setSourceClone()

void RooAbsCachedReal::FuncCacheElem::setSourceClone ( RooAbsReal * newSource)
inlineinherited

Definition at line 72 of file RooAbsCachedReal.h.

◆ setUnitNorm()

void RooAbsCachedReal::FuncCacheElem::setUnitNorm ( )
inlineinherited

Definition at line 78 of file RooAbsCachedReal.h.

◆ sourceClone()

RooAbsReal * RooAbsCachedReal::FuncCacheElem::sourceClone ( )
inlineinherited

Definition at line 71 of file RooAbsCachedReal.h.

◆ Streamer()

virtual void RooAbsCacheElement::Streamer ( TBuffer & )
virtualinherited

◆ StreamerNVirtual()

void RooAbsCacheElement::StreamerNVirtual ( TBuffer & ClassDef_StreamerNVirtual_b)
inlineinherited

Definition at line 55 of file RooAbsCacheElement.h.

Member Data Documentation

◆ _ax

std::vector<double> RooNumRunningInt::RICacheElem::_ax

Definition at line 38 of file RooNumRunningInt.h.

◆ _ay

std::vector<double> RooNumRunningInt::RICacheElem::_ay

Definition at line 39 of file RooNumRunningInt.h.

◆ _cacheSource

bool RooAbsCachedReal::FuncCacheElem::_cacheSource
privateinherited

Definition at line 86 of file RooAbsCachedReal.h.

◆ _func

RooHistFunc* RooAbsCachedReal::FuncCacheElem::_func
privateinherited

Definition at line 82 of file RooAbsCachedReal.h.

◆ _hist

RooDataHist* RooAbsCachedReal::FuncCacheElem::_hist
privateinherited

Definition at line 84 of file RooAbsCachedReal.h.

◆ _owner

RooAbsArg* RooAbsCacheElement::_owner
protectedinherited

! Pointer to owning RooAbsArg

Definition at line 53 of file RooAbsCacheElement.h.

◆ _paramTracker

RooChangeTracker* RooAbsCachedReal::FuncCacheElem::_paramTracker
privateinherited

Definition at line 83 of file RooAbsCachedReal.h.

◆ _self

RooNumRunningInt* RooNumRunningInt::RICacheElem::_self

Definition at line 37 of file RooNumRunningInt.h.

◆ _sourceClone

RooAbsReal* RooAbsCachedReal::FuncCacheElem::_sourceClone
privateinherited

Definition at line 85 of file RooAbsCachedReal.h.

◆ _xx

RooArgSet RooNumRunningInt::RICacheElem::_xx

Definition at line 40 of file RooNumRunningInt.h.


The documentation for this class was generated from the following files: