Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
RooAbsSelfCachedReal.h
Go to the documentation of this file.
1/*****************************************************************************
2 * Project: RooFit *
3 * *
4 * Copyright (c) 2000-2005, Regents of the University of California *
5 * and Stanford University. All rights reserved. *
6 * *
7 * Redistribution and use in source and binary forms, *
8 * with or without modification, are permitted according to the terms *
9 * listed in LICENSE (http://roofit.sourceforge.net/license.txt) *
10 *****************************************************************************/
11
12#ifndef ROOABSSELFCACHEDREAL
13#define ROOABSSELFCACHEDREAL
14
15#include "RooAbsCachedReal.h"
16#include "RooRealProxy.h"
17#include "RooAbsReal.h"
18#include "RooHistPdf.h"
19
20
22public:
23
25 RooAbsSelfCachedReal(const char *name, const char *title, Int_t ipOrder=0);
26 RooAbsSelfCachedReal(const RooAbsSelfCachedReal& other, const char* name=0) ;
27 virtual ~RooAbsSelfCachedReal() ;
28
29protected:
30
31 virtual const char* inputBaseName() const {
32 // Use own name as base name for caches
33 return GetName() ;
34 }
35 virtual RooArgSet* actualObservables(const RooArgSet& nset) const ;
36 virtual RooArgSet* actualParameters(const RooArgSet& nset) const ;
37 virtual void fillCacheObject(FuncCacheElem& cache) const ;
38
39private:
40
41 ClassDef(RooAbsSelfCachedReal,0) // Abstract base class for self-caching functions
42};
43
44#endif
#define ClassDef(name, id)
Definition Rtypes.h:325
char name[80]
Definition TGX11.cxx:110
RooAbsCachedReal is the abstract base class for functions that need or want to cache their evaluate()...
RooAbsSelfCachedReal is an abstract base class for functions whose output is cached in terms of a his...
virtual const char * inputBaseName() const
virtual RooArgSet * actualParameters(const RooArgSet &nset) const
Defines parameters on which cache contents depends.
virtual RooArgSet * actualObservables(const RooArgSet &nset) const
Defines observables to be cached, given a set of user defined observables Returns the subset of nset ...
virtual ~RooAbsSelfCachedReal()
Destructor.
virtual void fillCacheObject(FuncCacheElem &cache) const
Fill cache with sampling of function as defined by the evaluate() implementation.
RooArgSet is a container object that can hold multiple RooAbsArg objects.
Definition RooArgSet.h:29
virtual const char * GetName() const
Returns name of object.
Definition TNamed.h:47