00001 /***************************************************************************** 00002 * Project: RooFit * 00003 * * 00004 * Copyright (c) 2000-2005, Regents of the University of California * 00005 * and Stanford University. All rights reserved. * 00006 * * 00007 * Redistribution and use in source and binary forms, * 00008 * with or without modification, are permitted according to the terms * 00009 * listed in LICENSE (http://roofit.sourceforge.net/license.txt) * 00010 *****************************************************************************/ 00011 00012 #ifndef ROOABSSELFCACHEDPDF 00013 #define ROOABSSELFCACHEDPDF 00014 00015 #include "RooAbsCachedPdf.h" 00016 #include "RooRealProxy.h" 00017 #include "RooAbsReal.h" 00018 #include "RooHistPdf.h" 00019 #include <list> 00020 00021 class RooAbsSelfCachedPdf : public RooAbsCachedPdf { 00022 public: 00023 00024 RooAbsSelfCachedPdf() {} ; 00025 RooAbsSelfCachedPdf(const char *name, const char *title, Int_t ipOrder=0); 00026 RooAbsSelfCachedPdf(const RooAbsSelfCachedPdf& other, const char* name=0) ; 00027 virtual ~RooAbsSelfCachedPdf() ; 00028 00029 protected: 00030 00031 virtual const char* inputBaseName() const { 00032 // Use own name as base name for caches 00033 return GetName() ; 00034 } 00035 virtual RooArgSet* actualObservables(const RooArgSet& nset) const ; 00036 virtual RooArgSet* actualParameters(const RooArgSet& nset) const ; 00037 virtual void fillCacheObject(PdfCacheElem& cache) const ; 00038 00039 private: 00040 00041 ClassDef(RooAbsSelfCachedPdf,0) // Abstract base class for self-caching p.d.f.s 00042 }; 00043 00044 #endif