/usr/include/root/RooNumRunningInt.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 57 58 59 60 61 62 63 64 65 66 | /*****************************************************************************
* 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 ROONUMRUNNINGINT
#define ROONUMRUNNINGINT
#include "RooAbsCachedReal.h"
#include "RooRealProxy.h"
#include "RooAbsReal.h"
class RooNumRunningInt : public RooAbsCachedReal {
public:
RooNumRunningInt(const char *name, const char *title, RooAbsReal& _func, RooRealVar& _x, const char* binningName="cache");
RooNumRunningInt(const RooNumRunningInt& other, const char* name=0) ;
virtual TObject* clone(const char* newname) const { return new RooNumRunningInt(*this,newname); }
virtual ~RooNumRunningInt() ;
protected:
class RICacheElem: public FuncCacheElem {
public:
RICacheElem(const RooNumRunningInt& ri, const RooArgSet* nset) ;
~RICacheElem() ;
virtual RooArgList containedArgs(Action) ;
void calculate(Bool_t cdfmode) ;
void addRange(Int_t ixlo, Int_t ixhi, Int_t nbins) ;
void addPoint(Int_t ix) ;
RooNumRunningInt* _self ;
Double_t* _ax ;
Double_t* _ay ;
RooRealVar* _xx ;
} ;
friend class RICacheElem ;
virtual const char* binningName() const { return _binningName.c_str() ; }
virtual FuncCacheElem* createCache(const RooArgSet* nset) const ;
virtual const char* inputBaseName() const ;
virtual RooArgSet* actualObservables(const RooArgSet& nset) const ;
virtual RooArgSet* actualParameters(const RooArgSet& nset) const ;
virtual void fillCacheObject(FuncCacheElem& cacheFunc) const ;
virtual Double_t evaluate() const ;
virtual const char* payloadUniqueSuffix() const { return func.arg().aggregateCacheUniqueSuffix() ; }
RooRealProxy func ; // Proxy to functions whose running integral is calculated
RooRealProxy x ; // Intergrated observable
std::string _binningName ; // Name of binning to be used for cache histogram
private:
ClassDef(RooNumRunningInt,1) // Numeric calculator for running integral of a given function
};
#endif
|