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.

June 15, 2004

Function Documentation

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

The Collins-Spiller fragmentation function.

Definition at line 22 of file FragmentationFunctions.cxx.

References cet::pow(), and test::z.

Referenced by genie::CollinsSpillerFragm::BuildFunction().

23 {
24 // par[0] = N
25 // par[1] = epsilon
26
27  double z = x[0];
28
29  double D = par[0] * ( (1.-z)/z + par[1]*(2.-z)/(1.-z) ) *
30  pow(1+z, 2.) * pow(1. - 1./z - par[1]/(1.-z), -2.);
31  return D;
32 }
constexpr T pow(T x)
Definition: pow.h:75
z
Definition: test.py:28
UInt_t par
Definition: AnaPlotMaker.h:47
 double genie::utils::frgmfunc::peterson_func ( double * x, double * par )

The Peterson fragmentation function.

Definition at line 34 of file FragmentationFunctions.cxx.

References cet::pow(), and test::z.

Referenced by genie::PetersonFragm::BuildFunction().

35 {
36 // par[0] = N
37 // par[1] = epsilon
38
39  double z = x[0];
40
41  double D = par[0] / ( z * pow(1. - 1./z - par[1]/(1.-z), 2) );
42
43  return D;
44 }
constexpr T pow(T x)
Definition: pow.h:75
z
Definition: test.py:28
UInt_t par
Definition: AnaPlotMaker.h:47