All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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

Definition at line 92 of file GausFitCache_test.cc.

92 : func(f) {}

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()
process_name opflash particleana ie x
double mean(const std::vector< short > &wf, size_t start, size_t nsample)
Definition: UtilFunc.cxx:13

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: