GENIEGenerator
Loading...
Searching...
No Matches
genie::utils::frgmfunc Namespace Reference

Fragmentation functions. More...

Functions

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

Detailed Description

Fragmentation functions.

Author
Costas Andreopoulos <c.andreopoulos \at cern.ch> University of Liverpool
Created:\n June 15, 2004
License:\n Copyright (c) 2003-2025, The GENIE Collaboration
For the full text of the license visit http://copyright.genie-mc.org

Function Documentation

◆ collins_spiller_func()

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}

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

◆ peterson_func()

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}

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