14 using namespace genie;
38 if(z<0 || z>1)
return 0;
39 return fFunc->Eval(z);
46 return fFunc->GetRandom();
65 fFunc->SetParNames(
"Norm",
"Epsilon");
68 GetParam(
"CSFrag-Norm", N,
false ) ;
71 GetParam(
"CSFrag-Epsilon", e,
false ) ;
77 fFunc->SetParameters(N,e);
78 double I =
fFunc->Integral(0,1);
82 fFunc->SetParameters(N,e);
double Value(double z) const
implements the FragmentationFunctionI interface
double GenerateZ(void) const
double collins_spiller_func(double *x, double *par)
The Collins-Spiller fragmentation function.
void Configure(const Registry &config)
virtual void Configure(const Registry &config)
Pure abstract base class. Defines the FragmentationFunctionI interface to be implemented by any algor...
A registry. Provides the container for algorithm configuration parameters.
bool GetParam(const RgKey &name, T &p, bool is_top_call=true) const