// RooAbsCacheElement is the abstract base class for objects to be stored
// in RooAbsCache cache manager objects. Each storage element has an
// interface to pass on calls for server redirection, operation mode
// change calls and constant term optimization management calls
// END_HTML
#include "RooFit.h"
#include "RooAbsCacheElement.h"
#include "RooAbsArg.h"
#include "RooArgList.h"
ClassImp(RooAbsCacheElement)
;
Bool_t RooAbsCacheElement::redirectServersHook(const RooAbsCollection& , Bool_t ,
Bool_t , Bool_t )
{
return kFALSE ;
}
void RooAbsCacheElement::printCompactTreeHook(std::ostream&, const char *, Int_t , Int_t )
{
}
void RooAbsCacheElement::operModeHook(RooAbsArg::OperMode)
{
}
void RooAbsCacheElement::optimizeCacheMode(const RooArgSet& obs, RooArgSet& optNodes, RooLinkedList& processedNodes)
{
RooArgList list = containedArgs(OptimizeCaching) ;
TIterator* iter = list.createIterator() ;
RooAbsArg* arg ;
while((arg=(RooAbsArg*)iter->Next())) {
arg->optimizeCacheMode(obs, optNodes, processedNodes) ;
}
delete iter ;
}
void RooAbsCacheElement::findConstantNodes(const RooArgSet& obs, RooArgSet& cacheList, RooLinkedList& processedNodes)
{
RooArgList list = containedArgs(FindConstantNodes) ;
TIterator* iter = list.createIterator() ;
RooAbsArg* arg ;
while((arg=(RooAbsArg*)iter->Next())) {
arg->findConstantNodes(obs,cacheList, processedNodes) ;
}
delete iter ;
}
Last change: Wed Jun 25 08:31:29 2008
Last generated: 2008-06-25 08:31
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.