16 using namespace genie;
40 if(z<0 || z>1)
return 0;
41 return fFunc->Eval(z);
48 return fFunc->GetRandom();
67 fFunc->SetParNames(
"Norm",
"Epsilon");
69 gROOT->GetListOfFunctions()->Remove(
fFunc);
72 GetParam(
"PetFrag-Norm", N,
false ) ;
79 GetParam(
"PetFrag-Epsilon", e,
false ) ;
85 fFunc->SetParameters(N,e);
86 double I =
fFunc->Integral(0,1);
90 fFunc->SetParameters(N,e);
void Configure(const Registry &config)
THE MAIN GENIE PROJECT NAMESPACE
double peterson_func(double *x, double *par)
The Peterson fragmentation function.
virtual void Configure(const Registry &config)
double Value(double z) const
implement the FragmentationFunctionI interface
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
double GenerateZ(void) const