33 using std::ostringstream;
34 using namespace genie;
35 using namespace genie::constants;
36 using namespace genie::controls;
43 return GenerateNucleon(tgt);
56 if ( ! fKFTable )
return 0. ;
58 return fKFTable->FindClosestKF( t.
Pdg(), nucleon_pdg);
66 return FermiMomentum( t, nucleon_pdg ) ;
74 string fermi_table_key =
"FermiMomentumTable" ;
77 if ( ! GetParam( fermi_table_key, fKFTableName,
false ) ) {
81 fKFTableName = algos ->
GetString( fermi_table_key ) ;
86 fKFTable = kftp->
GetTable(fKFTableName);
virtual double LocalFermiMomentum(const Target &, int nucleon_pdg, double radius) const
static FermiMomentumTablePool * Instance(void)
virtual double FermiMomentum(const Target &, int nucleon_pdg) const
Singleton class to load & serve tables of Fermi momentum constants.
const FermiMomentumTable * GetTable(string name)
A Neutrino Interaction Target. Is a transparent encapsulation of quite different physical systems suc...
virtual double Prob(double p, double w, const Target &) const =0
virtual void LoadConfig()
string GetString(xmlDocPtr xml_doc, string node_path)
A registry. Provides the container for algorithm configuration parameters.
virtual bool GenerateNucleon(const Target &) const =0
Most commonly used PDG codes. A set of utility functions to handle PDG codes is provided in PDGUtils...
static AlgConfigPool * Instance()