/usr/include/root/RooCachedPdf.h is in libroot-roofit-dev 5.34.19+dfsg-1.2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 | /*****************************************************************************
* Project: RooFit *
* *
* Copyright (c) 2000-2005, Regents of the University of California *
* and Stanford University. All rights reserved. *
* *
* Redistribution and use in source and binary forms, *
* with or without modification, are permitted according to the terms *
* listed in LICENSE (http://roofit.sourceforge.net/license.txt) *
*****************************************************************************/
#ifndef ROOCACHEDPDF
#define ROOCACHEDPDF
#include "RooAbsCachedPdf.h"
#include "RooRealProxy.h"
#include "RooAbsReal.h"
class RooCachedPdf : public RooAbsCachedPdf {
public:
RooCachedPdf() {} ;
RooCachedPdf(const char *name, const char *title, RooAbsPdf& _pdf, const RooArgSet& cacheObs);
RooCachedPdf(const char *name, const char *title, RooAbsPdf& _pdf);
RooCachedPdf(const RooCachedPdf& other, const char* name=0) ;
virtual TObject* clone(const char* newname) const { return new RooCachedPdf(*this,newname); }
virtual ~RooCachedPdf() ;
virtual void preferredObservableScanOrder(const RooArgSet& obs, RooArgSet& orderedObs) const ;
protected:
virtual const char* inputBaseName() const {
// Return the base name for cache objects, in this case the name of the cached p.d.f
return pdf.arg().GetName() ;
} ;
virtual RooArgSet* actualObservables(const RooArgSet& nset) const ;
virtual RooArgSet* actualParameters(const RooArgSet& nset) const ;
virtual void fillCacheObject(PdfCacheElem& cachePdf) const ;
virtual Double_t evaluate() const {
// Dummy evaluate, it is never called
return 0 ;
}
virtual const char* payloadUniqueSuffix() const { return pdf.arg().aggregateCacheUniqueSuffix() ; }
RooRealProxy pdf ; // Proxy to p.d.f being cached
RooSetProxy _cacheObs ; // Observable to be cached
private:
ClassDef(RooCachedPdf,1) // P.d.f class that wraps another p.d.f and caches its output
};
#endif
|