Logo ROOT  
Reference Guide
RooAbsCacheElement.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Project: RooFit *
3  * Package: RooFitCore *
4  * File: $Id$
5  * Authors: *
6  * WV, Wouter Verkerke, UC Santa Barbara, verkerke@slac.stanford.edu *
7  * DK, David Kirkby, UC Irvine, dkirkby@uci.edu *
8  * *
9  * Copyright (c) 2000-2005, Regents of the University of California *
10  * and Stanford University. All rights reserved. *
11  * *
12  * Redistribution and use in source and binary forms, *
13  * with or without modification, are permitted according to the terms *
14  * listed in LICENSE (http://roofit.sourceforge.net/license.txt) *
15  *****************************************************************************/
16 #ifndef ROO_ABS_CACHE_ELEMENT
17 #define ROO_ABS_CACHE_ELEMENT
18 
19 #include "Rtypes.h"
20 #include "RooAbsArg.h"
21 
22 class RooAbsCollection ;
23 class RooArgSet ;
24 class RooArgList ;
25 
27 
28 public:
30  // Default constructor
31  } ;
32  virtual Bool_t redirectServersHook(const RooAbsCollection& /*newServerList*/, Bool_t /*mustReplaceAll*/,
33  Bool_t /*nameChange*/, Bool_t /*isRecursive*/) ;
34  virtual void printCompactTreeHook(std::ostream&, const char *, Int_t curElem, Int_t totElem) ;
35  virtual ~RooAbsCacheElement() {
36  // Destructor
37  } ;
38 
40  virtual RooArgList containedArgs(Action) = 0 ;
41  virtual void operModeHook(RooAbsArg::OperMode) ;
42  virtual void optimizeCacheMode(const RooArgSet& obs, RooArgSet& optNodes, RooLinkedList& processedNodes) ;
43  virtual void findConstantNodes(const RooArgSet& obs, RooArgSet& cacheList, RooLinkedList& processedNodes) ;
44 
45  void setOwner(RooAbsArg* owner) {
46  // Store pointer to owner
47  _owner = owner ;
48  }
49 
50 protected:
51 
52  RooAbsArg* _owner ; //! Pointer to owning RooAbsArg
53 
54  ClassDef(RooAbsCacheElement,1) // Base class for cache elements
55 
56 } ;
57 
58 
59 #endif
RooAbsCacheElement::printCompactTreeHook
virtual void printCompactTreeHook(std::ostream &, const char *, Int_t curElem, Int_t totElem)
Hook function to print cache guts in tree printing mode of RooAbsArgs.
Definition: RooAbsCacheElement.cxx:54
RooAbsCacheElement::~RooAbsCacheElement
virtual ~RooAbsCacheElement()
Definition: RooAbsCacheElement.h:35
RooAbsCacheElement::setOwner
void setOwner(RooAbsArg *owner)
Definition: RooAbsCacheElement.h:45
RooAbsCacheElement::OptimizeCaching
@ OptimizeCaching
Definition: RooAbsCacheElement.h:39
RooArgList
Definition: RooArgList.h:21
RooAbsArg.h
RooAbsCacheElement
Definition: RooAbsCacheElement.h:26
RooAbsCacheElement::FindConstantNodes
@ FindConstantNodes
Definition: RooAbsCacheElement.h:39
bool
RooAbsCacheElement::findConstantNodes
virtual void findConstantNodes(const RooArgSet &obs, RooArgSet &cacheList, RooLinkedList &processedNodes)
Interface for constant term optimization calls.
Definition: RooAbsCacheElement.cxx:90
RooAbsCacheElement::containedArgs
virtual RooArgList containedArgs(Action)=0
RooAbsCacheElement::operModeHook
virtual void operModeHook(RooAbsArg::OperMode)
Interface for operation mode change calls.
Definition: RooAbsCacheElement.cxx:63
RooLinkedList
Definition: RooLinkedList.h:35
RooAbsCollection
Definition: RooAbsCollection.h:30
RooAbsCacheElement::_owner
RooAbsArg * _owner
Definition: RooAbsCacheElement.h:52
RooAbsCacheElement::RooAbsCacheElement
RooAbsCacheElement()
Definition: RooAbsCacheElement.h:29
RooAbsArg::OperMode
OperMode
Definition: RooAbsArg.h:491
RooAbsCacheElement::OperModeChange
@ OperModeChange
Definition: RooAbsCacheElement.h:39
RooAbsCacheElement::Action
Action
Definition: RooAbsCacheElement.h:39
ClassDef
#define ClassDef(name, id)
Definition: Rtypes.h:325
RooAbsCacheElement::optimizeCacheMode
virtual void optimizeCacheMode(const RooArgSet &obs, RooArgSet &optNodes, RooLinkedList &processedNodes)
Interface for cache optimization calls.
Definition: RooAbsCacheElement.cxx:73
RooAbsArg
Definition: RooAbsArg.h:73
RooAbsCacheElement::redirectServersHook
virtual Bool_t redirectServersHook(const RooAbsCollection &, Bool_t, Bool_t, Bool_t)
Interface for server redirect calls.
Definition: RooAbsCacheElement.cxx:43
Rtypes.h
RooArgSet
Definition: RooArgSet.h:28
int