Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
RooAbsCache.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
17#define ROO_ABS_CACHE
18
19#include "Rtypes.h"
20
21class RooAbsArg ;
22class RooAbsCollection ;
23class RooArgSet ;
24class RooArgList ;
25class RooLinkedList ;
26
28
29public:
30
31 RooAbsCache(RooAbsArg* owner=nullptr) ;
32
33 RooAbsCache(const RooAbsCache&, RooAbsArg* owner=nullptr ) ;
34
35 virtual ~RooAbsCache() ;
36
37 void setOwner(RooAbsArg* owner);
38
39 /// Interface for server redirect calls.
40 virtual bool redirectServersHook(const RooAbsCollection& /*newServerList*/,
41 bool /*mustReplaceAll*/,
42 bool /*nameChange*/,
43 bool /*isRecursive*/) { return false; }
44
45 /// Interface for operation mode changes.
46 virtual void operModeHook() {}
47
48 /// Interface for processing of cache mode optimization calls.
50
51 /// Interface for constant term node finding calls.
53
54 /// Interface for printing of cache guts in tree mode printing.
55 virtual void printCompactTreeHook(std::ostream&, const char *) {}
56
57 virtual void wireCache() {}
58
59protected:
60
61 RooAbsArg* _owner ; ///< Pointer to owning RooAbsArg
62
63 ClassDef(RooAbsCache,1) // Base class for cache managers
64
65} ;
66
67
68#endif
#define ClassDef(name, id)
Definition Rtypes.h:337
Common abstract base class for objects that represent a value and a "shape" in RooFit.
Definition RooAbsArg.h:77
Abstract base class for data members of RooAbsArgs that cache other (composite) RooAbsArg expressions...
Definition RooAbsCache.h:27
virtual void operModeHook()
Interface for operation mode changes.
Definition RooAbsCache.h:46
void setOwner(RooAbsArg *owner)
Reset the owner, triggering the owner to register this cache in its list of caches.
virtual void findConstantNodes(const RooArgSet &, RooArgSet &, RooLinkedList &)
Interface for constant term node finding calls.
Definition RooAbsCache.h:52
virtual void printCompactTreeHook(std::ostream &, const char *)
Interface for printing of cache guts in tree mode printing.
Definition RooAbsCache.h:55
RooAbsArg * _owner
Pointer to owning RooAbsArg.
Definition RooAbsCache.h:61
virtual bool redirectServersHook(const RooAbsCollection &, bool, bool, bool)
Interface for server redirect calls.
Definition RooAbsCache.h:40
virtual ~RooAbsCache()
Destructor. Unregisters cache with owner.
virtual void optimizeCacheMode(const RooArgSet &, RooArgSet &, RooLinkedList &)
Interface for processing of cache mode optimization calls.
Definition RooAbsCache.h:49
virtual void wireCache()
Definition RooAbsCache.h:57
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:55
Collection class for internal use, storing a collection of RooAbsArg pointers in a doubly linked list...