GENIEGenerator
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 <c.andreopoulos cern.ch> University of Liverpool
Created:
June 15, 2004
License:
Copyright (c) 2003-2024, 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.

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

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 }
double genie::utils::frgmfunc::peterson_func ( double *  x,
double *  par 
)

The Peterson fragmentation function.

Definition at line 28 of file FragmentationFunctions.cxx.

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

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 }