20 using namespace genie;
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);
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;
103 if(hit_nucleon[i]==kPdgNeutron && !hasN)
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;
bool IsDelta(Resonance_t res)
is it a Delta resonance?
bool IsWeakCC(void) const
bool IsNeutrino(int pdgc)
THE MAIN GENIE PROJECT NAMESPACE
Defines the InteractionListGeneratorI interface. Concrete implementations of this interface generate ...
void DecodeFromNameList(string list, string delimiter=",")
enum genie::EResonance Resonance_t
unsigned int NResonances(void) const
void SetResonance(Resonance_t res)
Contains minimal information for tagging exclusive processes.
InteractionList * CreateInteractionList(const InitialState &init) const
Summary information for an interaction.
#define LOG(stream, priority)
A macro that returns the requested log4cpp::Category appending a string (using the FILE...
A class encapsulating an enumeration of interaction types (EM, Weak-CC, Weak-NC) and scattering types...
A Neutrino Interaction Target. Is a transparent encapsulation of quite different physical systems suc...
virtual void Configure(const Registry &config)
RESInteractionListGenerator()
string AsString(void) const
XclsTag * ExclTagPtr(void) const
void LoadConfigData(void)
void Configure(const Registry &config)
A registry. Provides the container for algorithm configuration parameters.
void SetHitNucPdg(int pdgc)
Target * TgtPtr(void) const
A vector of Interaction objects.
InitialState * InitStatePtr(void) const
bool GetParamDef(const RgKey &name, T &p, const T &def) const
bool GetParam(const RgKey &name, T &p, bool is_top_call=true) const
const Target & Tgt(void) const
~RESInteractionListGenerator()
#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...
enum genie::EInteractionType InteractionType_t
Initial State information.
Resonance_t ResonanceId(unsigned int ires) const