Functions
genie::utils::frgmfunc Namespace Reference

Fragmentation functions. More...

Functions

double collins_spiller_func (double *x, double *par)
 The Collins-Spiller fragmentation function. More...
 
double peterson_func (double *x, double *par)
 The Peterson fragmentation function. More...
 

Detailed Description

Fragmentation functions.

Author
Costas Andreopoulos <constantinos.andreopoulos cern.ch> University of Liverpool & STFC Rutherford Appleton Laboratory

June 15, 2004

Copyright (c) 2003-2020, The GENIE Collaboration For the full text of the license visit http://copyright.genie-mc.org

Function Documentation

double genie::utils::frgmfunc::collins_spiller_func ( double *  x,
double *  par 
)

The Collins-Spiller fragmentation function.

Definition at line 16 of file FragmentationFunctions.cxx.

17 {
18 // par[0] = N
19 // par[1] = epsilon
20 
21  double z = x[0];
22 
23  double D = par[0] * ( (1.-z)/z + par[1]*(2.-z)/(1.-z) ) *
24  pow(1+z, 2.) * pow(1. - 1./z - par[1]/(1.-z), -2.);
25  return D;
26 }
constexpr T pow(T x)
Definition: pow.h:72
#define D
Debug message.
Definition: tclscanner.cpp:775
list x
Definition: train.py:276
double genie::utils::frgmfunc::peterson_func ( double *  x,
double *  par 
)

The Peterson fragmentation function.

Definition at line 28 of file FragmentationFunctions.cxx.

29 {
30 // par[0] = N
31 // par[1] = epsilon
32 
33  double z = x[0];
34 
35  double D = par[0] / ( z * pow(1. - 1./z - par[1]/(1.-z), 2) );
36 
37  return D;
38 }
constexpr T pow(T x)
Definition: pow.h:72
#define D
Debug message.
Definition: tclscanner.cpp:775
list x
Definition: train.py:276