/usr/include/root/RooFunctor1DBinding.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 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 | /*****************************************************************************
* Project: RooFit *
* Package: RooFitCore *
* File: $Id$
* Authors: *
* WV, Wouter Verkerke, NIKHEF, verkerke@nikhef.nl *
* *
* Copyright (c) 2000-2008, NIKHEF, Regents of the University of California *
* and Stanford University. All rights reserved. *
* *
*****************************************************************************/
#ifndef ROOFUNCTOR1DBINDING
#define ROOFUNCTOR1DBINDING
#include "TString.h"
#include "RooAbsReal.h"
#include "RooArgList.h"
#include "RooListProxy.h"
#include "RooAbsPdf.h"
#include "RooRealProxy.h"
#include "RooMsgService.h"
#include <string>
#include <map>
#include <vector>
#include "Math/IFunction.h"
namespace RooFit {
RooAbsReal* bindFunction(const char* name, const ROOT::Math::IBaseFunctionOneDim& ftor, RooAbsReal& vars) ;
RooAbsPdf* bindPdf(const char* name, const ROOT::Math::IBaseFunctionOneDim& ftor, RooAbsReal& vars) ;
}
class RooFunctor1DBinding : public RooAbsReal {
public:
RooFunctor1DBinding() : func(0) {
// Default constructor
} ;
RooFunctor1DBinding(const char *name, const char *title, const ROOT::Math::IBaseFunctionOneDim& ftor, RooAbsReal& var);
RooFunctor1DBinding(const RooFunctor1DBinding& other, const char* name=0) ;
virtual TObject* clone(const char* newname) const { return new RooFunctor1DBinding(*this,newname); }
inline virtual ~RooFunctor1DBinding() {}
void printArgs(std::ostream& os) const ;
protected:
Double_t evaluate() const ;
const ROOT::Math::IBaseFunctionOneDim* func ; // Functor
RooRealProxy var ; // Argument reference
private:
ClassDef(RooFunctor1DBinding,1) // RooAbsReal binding to a ROOT::Math::IBaseFunctionOneDim
};
class RooFunctor1DPdfBinding : public RooAbsPdf {
public:
RooFunctor1DPdfBinding() : func(0) {
// Default constructor
} ;
RooFunctor1DPdfBinding(const char *name, const char *title, const ROOT::Math::IBaseFunctionOneDim& ftor, RooAbsReal& vars);
RooFunctor1DPdfBinding(const RooFunctor1DPdfBinding& other, const char* name=0) ;
virtual TObject* clone(const char* newname) const { return new RooFunctor1DPdfBinding(*this,newname); }
inline virtual ~RooFunctor1DPdfBinding() {}
void printArgs(std::ostream& os) const ;
protected:
Double_t evaluate() const ;
const ROOT::Math::IBaseFunctionOneDim* func ; // Functor
RooRealProxy var ; // Argument reference
private:
ClassDef(RooFunctor1DPdfBinding,1) // RooAbsPdf binding to a ROOT::Math::IBaseFunctionOneDim
};
#endif
|