72 <<
"Unknown InteractionType! Returning NULL InteractionList "
73 <<
"for init-state: " << init_state.
AsString();
81 const Target & inp_target = init_state.
Tgt();
82 bool hasP = (inp_target.
Z() > 0);
83 bool hasN = (inp_target.
N() > 0);
92 unsigned int nres =
fResList.NResonances();
93 for(
unsigned int ires = 0; ires < nres; ires++) {
99 for(
int i=0; i<2; i++) {
102 if(hit_nucleon[i]==
kPdgProton && !hasP)
continue;
108 bool skip_res = proc_info.
IsWeakCC() &&
112 if(skip_res)
continue;
126 intlist->push_back(interaction);
131 if(intlist->size() == 0) {
133 <<
"Returning NULL InteractionList for init-state: "
156 string resonances =
"";
157 this->
GetParam(
"ResonanceNameList", resonances);
158 SLOG(
"IntLst",
pDEBUG) <<
"Resonance list: " << resonances;
161 fResList.DecodeFromNameList(resonances);
#define LOG(stream, priority)
A macro that returns the requested log4cpp::Category appending a string (using the FILE,...
#define SLOG(stream, priority)
A macro that returns the requested log4cpp::Category appending a short string (using the FUNCTION and...
Most commonly used PDG codes. A set of utility functions to handle PDG codes is provided in PDGUtils.
bool GetParam(const RgKey &name, T &p, bool is_top_call=true) const
virtual void Configure(const Registry &config)
bool GetParamDef(const RgKey &name, T &p, const T &def) const
Initial State information.
const Target & Tgt(void) const
string AsString(void) const
Target * TgtPtr(void) const
InteractionListGeneratorI()
A vector of Interaction objects.
Summary information for an interaction.
InitialState * InitStatePtr(void) const
XclsTag * ExclTagPtr(void) const
A class encapsulating an enumeration of interaction types (EM, Weak-CC, Weak-NC) and scattering types...
bool IsWeakCC(void) const
RESInteractionListGenerator()
~RESInteractionListGenerator()
void LoadConfigData(void)
void Configure(const Registry &config)
InteractionList * CreateInteractionList(const InitialState &init) const
A registry. Provides the container for algorithm configuration parameters.
A Neutrino Interaction Target. Is a transparent encapsulation of quite different physical systems suc...
void SetHitNucPdg(int pdgc)
Contains minimal information for tagging exclusive processes.
void SetResonance(Resonance_t res)
bool IsNeutrino(int pdgc)
bool IsDelta(Resonance_t res)
is it a Delta resonance?
THE MAIN GENIE PROJECT NAMESPACE
enum genie::EInteractionType InteractionType_t
enum genie::EResonance Resonance_t