20 using namespace genie;
44 if(z<0 || z>1)
return 0;
45 return fFunc->Eval(z);
52 return fFunc->GetRandom();
71 fFunc->SetParNames(
"Norm",
"Epsilon");
74 GetParam(
"CSFrag-Norm", N,
false ) ;
77 GetParam(
"CSFrag-Epsilon", e,
false ) ;
83 fFunc->SetParameters(N,e);
84 double I =
fFunc->Integral(0,1);
88 fFunc->SetParameters(N,e);
double Value(double z) const
implements the FragmentationFunctionI interface
double GenerateZ(void) const
THE MAIN GENIE PROJECT NAMESPACE
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.
assert(nhit_max >=nhit_nbins)
bool GetParam(const RgKey &name, T &p, bool is_top_call=true) const