DAS  3.0
Das Analysis System
GretaPolynomial< Log, Exp >

Description

template<double(*)(double) Log = log, double(*)(double) Exp = exp>
struct DAS::GretaPolynomial< Log, Exp >

Alternative to ROOT TF1 (which is terribly slow) to use polynomials.

#include <Greta.h>

+ Collaboration diagram for GretaPolynomial< Log, Exp >:

Public Member Functions

 GretaPolynomial (double *const pars, int Npars, double m, double M)
 
double operator() (double x) const
 

Public Attributes

double *const p
 
const Greta< Log, Exp > g
 

Constructor & Destructor Documentation

◆ GretaPolynomial()

GretaPolynomial ( double *const  pars,
int  Npars,
double  m,
double  M 
)
inline
181  :
182  p(pars), g(Npars-1, m, M) { }

Member Function Documentation

◆ operator()()

double operator() ( double  x) const
inline
183  {
184  x = max(g.m, x);
185  x = min(g.M, x);
186  return g(&x,p);
187  }

Member Data Documentation

◆ g

const Greta<Log,Exp> g

◆ p

double* const p

The documentation for this struct was generated from the following file:
m
H J M B h H C y T Y v p u A L f _ f c a f m
Definition: NuclearInteractionOutputFile.txt:10
DAS::GretaPolynomial::g
const Greta< Log, Exp > g
Definition: Greta.h:179
DAS::GretaPolynomial::p
double *const p
Definition: Greta.h:178