Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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
22class RooAbsCollection ;
23class RooArgSet ;
24class RooArgList ;
25
27
28public:
30 // Default constructor
31 } ;
32 virtual bool redirectServersHook(const RooAbsCollection& /*newServerList*/, bool /*mustReplaceAll*/,
33 bool /*nameChange*/, bool /*isRecursive*/) ;
34 virtual void printCompactTreeHook(std::ostream&, const char *, Int_t curElem, Int_t totElem) ;
36 // Destructor
37 } ;
38
41 /// Interface for changes of operation mode.
43 virtual void optimizeCacheMode(const RooArgSet& obs, RooArgSet& optNodes, RooLinkedList& processedNodes) ;
44 virtual void findConstantNodes(const RooArgSet& obs, RooArgSet& cacheList, RooLinkedList& processedNodes) ;
45
46 void setOwner(RooAbsArg* owner) {
47 // Store pointer to owner
48 _owner = owner ;
49 }
50
51protected:
52
53 RooAbsArg* _owner ; ///<! Pointer to owning RooAbsArg
54
55 ClassDef(RooAbsCacheElement,1) // Base class for cache elements
56
57} ;
58
59
60#endif
#define ClassDef(name, id)
Definition Rtypes.h:342
Common abstract base class for objects that represent a value and a "shape" in RooFit.
Definition RooAbsArg.h:79
Abstract base class for objects to be stored in RooAbsCache cache manager objects.
virtual void optimizeCacheMode(const RooArgSet &obs, RooArgSet &optNodes, RooLinkedList &processedNodes)
Interface for cache optimization calls.
virtual RooArgList containedArgs(Action)=0
virtual bool redirectServersHook(const RooAbsCollection &, bool, bool, bool)
Interface for server redirect calls.
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.
virtual void findConstantNodes(const RooArgSet &obs, RooArgSet &cacheList, RooLinkedList &processedNodes)
Interface for constant term optimization calls.
virtual void operModeHook(RooAbsArg::OperMode)
Interface for changes of operation mode.
void setOwner(RooAbsArg *owner)
RooAbsArg * _owner
! Pointer to owning RooAbsArg
Abstract container object that can hold multiple RooAbsArg objects.
RooArgList is a container object that can hold multiple RooAbsArg objects.
Definition RooArgList.h:22
RooArgSet is a container object that can hold multiple RooAbsArg objects.
Definition RooArgSet.h:24
Collection class for internal use, storing a collection of RooAbsArg pointers in a doubly linked list...