23 using namespace genie;
42 fKFSets.insert(map<int, KF_t>::value_type(tgt_pdgc, kf));
48 <<
"Finding Fermi momenta table entry for (tgt = "
49 << tgt_pdgc <<
", nucl = " << nucleon_pdgc <<
")";
53 <<
"The Fermi momenta table is empty! Returning kf(tgt = "
54 << tgt_pdgc <<
", nucl = " << nucleon_pdgc <<
") = 0";
61 if(
fKFSets.count(tgt_pdgc) == 1) {
62 LOG(
"FermiP",
pDEBUG) <<
"Got exact match in Fermi momenta table";
63 map<int, KF_t>::const_iterator table_iter =
fKFSets.find(tgt_pdgc);
64 if(isp) kf = table_iter->second.p;
65 else kf = table_iter->second.n;
66 LOG(
"FermiP",
pINFO) <<
"kF = " << kf;
69 LOG(
"FermiP",
pINFO) <<
"Couldn't find exact match in Fermi momenta table";
72 int Ac=9999, Zc=9999, dZmin=9999;
73 map<int, KF_t>::const_iterator kfiter;
75 int pdgc = kfiter->first;
77 int dZ = TMath::Abs(Zt-Z);
82 KF_t kft = kfiter->second;
89 LOG(
"FermiP",
pINFO) <<
"kF = " << kf;
int IonPdgCodeToA(int pdgc)
A table of Fermi momentum constants.
#define LOG(stream, priority)
A macro that returns the requested log4cpp::Category appending a string (using the FILE...
void AddTableEntry(int target_pdgc, KF_t kf)
virtual ~FermiMomentumTable()
int IonPdgCode(int A, int Z)
int IonPdgCodeToZ(int pdgc)
double FindClosestKF(int target_pdgc, int nucleon_pdgc) const