GENIEGenerator
Loading...
Searching...
No Matches
Physics
Hadronization
FragmentationFunctions.cxx
Go to the documentation of this file.
1
//____________________________________________________________________________
2
/*
3
Copyright (c) 2003-2025, The GENIE Collaboration
4
For the full text of the license visit http://copyright.genie-mc.org
5
6
Costas Andreopoulos <c.andreopoulos \at cern.ch>
7
University of Liverpool
8
*/
9
//____________________________________________________________________________
10
11
#include <cmath>
12
13
#include "
Physics/Hadronization/FragmentationFunctions.h
"
14
15
//___________________________________________________________________________
16
double
genie::utils::frgmfunc::collins_spiller_func
(
double
* x,
double
* par)
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
}
27
//___________________________________________________________________________
28
double
genie::utils::frgmfunc::peterson_func
(
double
* x,
double
* par)
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
}
39
//___________________________________________________________________________
FragmentationFunctions.h
genie::utils::frgmfunc::collins_spiller_func
double collins_spiller_func(double *x, double *par)
The Collins-Spiller fragmentation function.
Definition
FragmentationFunctions.cxx:16
genie::utils::frgmfunc::peterson_func
double peterson_func(double *x, double *par)
The Peterson fragmentation function.
Definition
FragmentationFunctions.cxx:28
Generated on
for GENIEGenerator by
1.14.0