18 using namespace genie;
53 int pdg_target = target.
Pdg() ;
55 const auto it =
fRelShift.find(pdg_target) ;
78 bool good_config = true ;
88 for(
auto kiter = kpdg_list.begin(); kiter != kpdg_list.end(); ++kiter ) {
89 const RgKey & key = *kiter ;
92 int pdg_target = stoi( kv[1] );
94 LOG(
"QvalueShifter",
pERROR) <<
"The target Pdg code associated to the QvalueShift is not valid : " << pdg_target ;
100 LOG(
"QvalueShifter",
pERROR) <<
"The target Pdg code does not correspond to a Ion : " << pdg_target ;
101 good_config = false ;
107 if( ! good_config ) {
108 LOG(
"QvalueShifter",
pERROR) <<
"Configuration has failed.";
Algorithm abstract base class.
virtual const Registry & GetConfig(void) const
Summary information for an interaction.
RgKeyList FindKeys(RgKey key_part) const
create list with all keys containing 'key_part'
static constexpr double second
#define LOG(stream, priority)
A macro that returns the requested log4cpp::Category appending a string (using the FILE...
A Neutrino Interaction Target. Is a transparent encapsulation of quite different physical systems suc...
virtual void Configure(const Registry &config)
virtual double Shift(const Target &target) const
static PDGLibrary * Instance(void)
std::map< int, double > fRelShift
vector< string > Split(string input, string delim)
A registry. Provides the container for algorithm configuration parameters.
void Configure(const Registry &config)
const InitialState & InitState(void) const
bool GetParam(const RgKey &name, T &p, bool is_top_call=true) const
const Target & Tgt(void) const