CMS 3D CMS Logo

List of all members | Public Types | Static Public Member Functions | Static Private Member Functions | Static Private Attributes
root::helper::RootFunctionHelper< F, args, Tag > Struct Template Reference

#include <RootFunctionHelper.h>

Public Types

typedef double(* root_function) (const double *, const double *)
 

Static Public Member Functions

static void addParameter (const std::shared_ptr< double > &par)
 
static root_function fun (F &f)
 

Static Private Member Functions

static double fun_ (const double *x, const double *par)
 

Static Private Attributes

static RootFunctionAdapter< F, args > adapter_
 

Detailed Description

template<typename F, unsigned int args, typename Tag = null_t>
struct root::helper::RootFunctionHelper< F, args, Tag >

Definition at line 15 of file RootFunctionHelper.h.

Member Typedef Documentation

◆ root_function

template<typename F, unsigned int args, typename Tag = null_t>
typedef double(* root::helper::RootFunctionHelper< F, args, Tag >::root_function) (const double *, const double *)

Definition at line 16 of file RootFunctionHelper.h.

Member Function Documentation

◆ addParameter()

template<typename F, unsigned int args, typename Tag = null_t>
static void root::helper::RootFunctionHelper< F, args, Tag >::addParameter ( const std::shared_ptr< double > &  par)
inlinestatic

◆ fun()

template<typename F, unsigned int args, typename Tag = null_t>
static root_function root::helper::RootFunctionHelper< F, args, Tag >::fun ( F f)
inlinestatic

Definition at line 17 of file RootFunctionHelper.h.

17  {
18  adapter_ = RootFunctionAdapter<F, args>(f);
19  return &fun_;
20  }

References root::helper::RootFunctionHelper< F, args, Tag >::adapter_, f, and root::helper::RootFunctionHelper< F, args, Tag >::fun_().

Referenced by root::function_t().

◆ fun_()

template<typename F, unsigned int args, typename Tag = null_t>
static double root::helper::RootFunctionHelper< F, args, Tag >::fun_ ( const double *  x,
const double *  par 
)
inlinestaticprivate

Definition at line 24 of file RootFunctionHelper.h.

24  {
25  adapter_.setParameters(par);
26  return adapter_(x);
27  }

References root::helper::RootFunctionHelper< F, args, Tag >::adapter_.

Referenced by root::helper::RootFunctionHelper< F, args, Tag >::fun().

Member Data Documentation

◆ adapter_

template<typename F, unsigned int args, typename Tag = null_t>
RootFunctionAdapter< F, args > root::helper::RootFunctionHelper< F, args, Tag >::adapter_
staticprivate
root::helper::RootFunctionHelper::fun_
static double fun_(const double *x, const double *par)
Definition: RootFunctionHelper.h:24
f
double f[11][100]
Definition: MuScleFitUtils.cc:78
root::helper::RootFunctionHelper::adapter_
static RootFunctionAdapter< F, args > adapter_
Definition: RootFunctionHelper.h:28