Public Types | Public Member Functions | Public Attributes | List of all members
RootGausFuncWrapper Struct Reference

Public Types

using Func_t = Double_t(*)(Double_t const *, Double_t const *)
 

Public Member Functions

 RootGausFuncWrapper (Func_t f)
 
Double_t operator() (Double_t const x, Double_t mean, Double_t sigma, Double_t amplitude) const
 

Public Attributes

Func_t func
 

Detailed Description

Definition at line 89 of file GausFitCache_test.cc.

Member Typedef Documentation

using RootGausFuncWrapper::Func_t = Double_t (*) (Double_t const*, Double_t const*)

Definition at line 90 of file GausFitCache_test.cc.

Constructor & Destructor Documentation

RootGausFuncWrapper::RootGausFuncWrapper ( Func_t  f)
inline

Member Function Documentation

Double_t RootGausFuncWrapper::operator() ( Double_t const  x,
Double_t  mean,
Double_t  sigma,
Double_t  amplitude 
) const
inline

Definition at line 95 of file GausFitCache_test.cc.

96  {
97  // BUG the double brace syntax is required to work around clang bug 21629
98  // (https://bugs.llvm.org/show_bug.cgi?id=21629)
99  std::array<Double_t, 3> params = {{ amplitude, mean, sigma }};
100  return func(&x, params.data());
101  } // operator()
list x
Definition: train.py:276
double mean(sqlite3 *db, std::string const &table_name, std::string const &column_name)
Definition: statistics.cc:16

Member Data Documentation

Func_t RootGausFuncWrapper::func

Definition at line 103 of file GausFitCache_test.cc.


The documentation for this struct was generated from the following file: