/usr/include/root/RooFunctorBinding.h is in libroot-roofit-dev 5.34.30-0ubuntu8.
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 89 90 | /*****************************************************************************
* 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 ROOFUNCTORBINDING
#define ROOFUNCTORBINDING
#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::IBaseFunctionMultiDim& ftor,const RooArgList& vars) ;
RooAbsPdf* bindPdf(const char* name, const ROOT::Math::IBaseFunctionMultiDim& ftor, const RooArgList& vars) ;
}
class RooFunctorBinding : public RooAbsReal {
public:
RooFunctorBinding() : func(0), x(0) {
// Default constructor
} ;
RooFunctorBinding(const char *name, const char *title, const ROOT::Math::IBaseFunctionMultiDim& ftor, const RooArgList& vars);
RooFunctorBinding(const RooFunctorBinding& other, const char* name=0) ;
virtual TObject* clone(const char* newname) const { return new RooFunctorBinding(*this,newname); }
inline virtual ~RooFunctorBinding() { delete[] x ; }
void printArgs(std::ostream& os) const ;
protected:
Double_t evaluate() const ;
const ROOT::Math::IBaseFunctionMultiDim* func ; // Functor
RooListProxy vars ; // Argument reference
Double_t* x ; // Argument value array
private:
ClassDef(RooFunctorBinding,1) // RooAbsReal binding to a ROOT::Math::IBaseFunctionMultiDim
};
class RooFunctorPdfBinding : public RooAbsPdf {
public:
RooFunctorPdfBinding() : func(0), x(0) {
// Default constructor
} ;
RooFunctorPdfBinding(const char *name, const char *title, const ROOT::Math::IBaseFunctionMultiDim& ftor, const RooArgList& vars);
RooFunctorPdfBinding(const RooFunctorPdfBinding& other, const char* name=0) ;
virtual TObject* clone(const char* newname) const { return new RooFunctorPdfBinding(*this,newname); }
inline virtual ~RooFunctorPdfBinding() { delete[] x ; }
void printArgs(std::ostream& os) const ;
protected:
Double_t evaluate() const ;
const ROOT::Math::IBaseFunctionMultiDim* func ; // Functor
RooListProxy vars ; // Argument reference
Double_t* x ; // Argument value array
private:
ClassDef(RooFunctorPdfBinding,1) // RooAbsPdf binding to a ROOT::Math::IBaseFunctionMultiDim
};
#endif
|