ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
nf_Legendre.cc File Reference
#include "nf_Legendre.h"
+ Include dependency graph for nf_Legendre.cc:

Go to the source code of this file.

Classes

struct  nf_Legendre_from_ptwXY_callback_s
 

Functions

static nfu_status nf_Legendre_to_ptwXY2 (double mu, double *P, void *argList)
 
static nfu_status nf_Legendre_from_ptwXY_callback (double mu, double *f, void *argList)
 
nf_Legendrenf_Legendre_new (int initialSize, int maxOrder, double *Cls, nfu_status *status)
 
nfu_status nf_Legendre_setup (nf_Legendre *Legendre, int initialSize, int maxOrder)
 
nfu_status nf_Legendre_release (nf_Legendre *Legendre)
 
nf_Legendrenf_Legendre_free (nf_Legendre *Legendre)
 
nf_Legendrenf_Legendre_clone (nf_Legendre *nfL, nfu_status *status)
 
nfu_status nf_Legendre_reallocateCls (nf_Legendre *Legendre, int size, int forceSmallerResize)
 
int nf_Legendre_maxOrder (nf_Legendre *Legendre)
 
int nf_Legendre_allocated (nf_Legendre *Legendre)
 
double nf_Legendre_getCl (nf_Legendre *Legendre, int l, nfu_status *status)
 
nfu_status nf_Legendre_setCl (nf_Legendre *Legendre, int l, double Cl)
 
nfu_status nf_Legendre_normalize (nf_Legendre *Legendre)
 
double nf_Legendre_evauluateAtMu (nf_Legendre *Legendre, double mu, nfu_status *status)
 
double nf_Legendre_PofL_atMu (int l, double mu)
 
ptwXYPointsnf_Legendre_to_ptwXY (nf_Legendre *Legendre, double accuracy, int biSectionMax, int checkForRoots, nfu_status *status)
 
nf_Legendrenf_Legendre_from_ptwXY (ptwXYPoints *ptwXY, int maxOrder, nfu_status *status)
 

Function Documentation

int nf_Legendre_allocated ( nf_Legendre Legendre)

Definition at line 112 of file nf_Legendre.cc.

View newest version in sPHENIX GitHub at line 112 of file nf_Legendre.cc

References nf_Legendre_s::allocated.

nf_Legendre* nf_Legendre_clone ( nf_Legendre nfL,
nfu_status status 
)

Definition at line 70 of file nf_Legendre.cc.

View newest version in sPHENIX GitHub at line 70 of file nf_Legendre.cc

References nf_Legendre_s::Cls, nf_Legendre_s::maxOrder, and nf_Legendre_new().

+ Here is the call graph for this function:

double nf_Legendre_evauluateAtMu ( nf_Legendre Legendre,
double  mu,
nfu_status status 
)

Definition at line 160 of file nf_Legendre.cc.

View newest version in sPHENIX GitHub at line 160 of file nf_Legendre.cc

References nf_Legendre_s::Cls, nf_Legendre_s::maxOrder, nf_Legendre_PofL_atMu(), nfu_Okay, nfu_XOutsideDomain, and P.

Referenced by nf_Legendre_to_ptwXY2().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

nf_Legendre* nf_Legendre_free ( nf_Legendre Legendre)

Definition at line 61 of file nf_Legendre.cc.

View newest version in sPHENIX GitHub at line 61 of file nf_Legendre.cc

References nf_Legendre_release(), and nfu_free().

Referenced by nf_Legendre_from_ptwXY().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

nf_Legendre* nf_Legendre_from_ptwXY ( ptwXYPoints ptwXY,
int  maxOrder,
nfu_status status 
)
static nfu_status nf_Legendre_from_ptwXY_callback ( double  mu,
double *  f,
void argList 
)
static

Definition at line 300 of file nf_Legendre.cc.

View newest version in sPHENIX GitHub at line 300 of file nf_Legendre.cc

References nf_Legendre_from_ptwXY_callback_s::f1, nf_Legendre_from_ptwXY_callback_s::f2, nf_Legendre_from_ptwXY_callback_s::l, nf_Legendre_from_ptwXY_callback_s::mu1, nf_Legendre_from_ptwXY_callback_s::mu2, nf_Legendre_PofL_atMu(), and nfu_Okay.

Referenced by nf_Legendre_from_ptwXY().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

double nf_Legendre_getCl ( nf_Legendre Legendre,
int  l,
nfu_status status 
)

Definition at line 119 of file nf_Legendre.cc.

View newest version in sPHENIX GitHub at line 119 of file nf_Legendre.cc

References nf_Legendre_s::Cls, nf_Legendre_s::maxOrder, nfu_badIndex, and nfu_Okay.

int nf_Legendre_maxOrder ( nf_Legendre Legendre)

Definition at line 105 of file nf_Legendre.cc.

View newest version in sPHENIX GitHub at line 105 of file nf_Legendre.cc

References nf_Legendre_s::maxOrder.

nf_Legendre* nf_Legendre_new ( int  initialSize,
int  maxOrder,
double *  Cls,
nfu_status status 
)

Definition at line 23 of file nf_Legendre.cc.

View newest version in sPHENIX GitHub at line 23 of file nf_Legendre.cc

References nf_Legendre_s::Cls, nf_Legendre_s::maxOrder, nf_Legendre_setup(), nfu_free(), nfu_malloc(), nfu_mallocError, and nfu_Okay.

Referenced by nf_Legendre_clone(), and nf_Legendre_from_ptwXY().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

nfu_status nf_Legendre_normalize ( nf_Legendre Legendre)

Definition at line 146 of file nf_Legendre.cc.

View newest version in sPHENIX GitHub at line 146 of file nf_Legendre.cc

References nf_Legendre_s::Cls, nf_Legendre_s::maxOrder, nfu_divByZero, nfu_Okay, and norm.

double nf_Legendre_PofL_atMu ( int  l,
double  mu 
)

Definition at line 175 of file nf_Legendre.cc.

View newest version in sPHENIX GitHub at line 175 of file nf_Legendre.cc

Referenced by nf_Legendre_evauluateAtMu(), and nf_Legendre_from_ptwXY_callback().

+ Here is the caller graph for this function:

nfu_status nf_Legendre_reallocateCls ( nf_Legendre Legendre,
int  size,
int  forceSmallerResize 
)

Definition at line 77 of file nf_Legendre.cc.

View newest version in sPHENIX GitHub at line 77 of file nf_Legendre.cc

References nf_Legendre_s::allocated, nf_Legendre_s::Cls, nf_Legendre_s::maxOrder, nf_Legendre_maxMaxOrder, nf_Legendre_minMaxOrder, nfu_mallocError, nfu_Okay, and nfu_realloc().

Referenced by nf_Legendre_setCl(), and nf_Legendre_setup().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

nfu_status nf_Legendre_release ( nf_Legendre Legendre)

Definition at line 52 of file nf_Legendre.cc.

View newest version in sPHENIX GitHub at line 52 of file nf_Legendre.cc

References nf_Legendre_s::allocated, nf_Legendre_s::Cls, nfu_free(), and nfu_Okay.

Referenced by nf_Legendre_free().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

nfu_status nf_Legendre_setCl ( nf_Legendre Legendre,
int  l,
double  Cl 
)

Definition at line 131 of file nf_Legendre.cc.

View newest version in sPHENIX GitHub at line 131 of file nf_Legendre.cc

References nf_Legendre_s::allocated, nf_Legendre_s::Cls, nf_Legendre_s::maxOrder, nf_Legendre_reallocateCls(), nf_Legendre_sizeIncrement, nfu_badIndex, and nfu_Okay.

Referenced by nf_Legendre_from_ptwXY().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

nfu_status nf_Legendre_setup ( nf_Legendre Legendre,
int  initialSize,
int  maxOrder 
)

Definition at line 40 of file nf_Legendre.cc.

View newest version in sPHENIX GitHub at line 40 of file nf_Legendre.cc

References nf_Legendre_s::maxOrder, nf_Legendre_maxMaxOrder, and nf_Legendre_reallocateCls().

Referenced by nf_Legendre_new().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ptwXYPoints* nf_Legendre_to_ptwXY ( nf_Legendre Legendre,
double  accuracy,
int  biSectionMax,
int  checkForRoots,
nfu_status status 
)

Definition at line 219 of file nf_Legendre.cc.

View newest version in sPHENIX GitHub at line 219 of file nf_Legendre.cc

References dx, nf_Legendre_s::maxOrder, n, nf_Legendre_to_ptwXY2(), nfu_Okay, and ptwXY_createFromFunction().

+ Here is the call graph for this function:

static nfu_status nf_Legendre_to_ptwXY2 ( double  mu,
double *  P,
void argList 
)
static

Definition at line 240 of file nf_Legendre.cc.

View newest version in sPHENIX GitHub at line 240 of file nf_Legendre.cc

References nf_Legendre_evauluateAtMu().

Referenced by nf_Legendre_to_ptwXY().

+ Here is the call graph for this function:

+ Here is the caller graph for this function: