16 using namespace genie;
64 const int n_nucc_channels = 3;
65 const int n_nunc_channels = 4;
92 <<
"Can not handle probe! Returning NULL InteractionList "
93 <<
"for init-state: " << init_state.
AsString();
98 bool hasP = (inp_target->
Z() > 0);
99 bool hasN = (inp_target->
N() > 0);
106 for(
int i=0; i<n_nucc_channels; i++) {
120 intlist->push_back(interaction);
127 for(
int i=0; i<n_nunc_channels; i++) {
141 intlist->push_back(interaction);
146 if(intlist->size() == 0) {
148 <<
"Returning NULL InteractionList for init-state: "
173 <<
"Final state nucleon not a proton or a neutron! (pdg="
177 if ( pipdg ==
kPdgPiP ) npiplus = 1;
178 else if ( pipdg ==
kPdgPi0 ) npi0 = 1;
179 else if ( pipdg ==
kPdgPiM ) npiminus = 1;
182 <<
"Final state pion not a pi+/pi-/pi0! (pdg=" << pipdg <<
")";
188 exclusive_tag.
SetNPions (npiplus, npi0, npiminus);
void SetNPions(int npi_plus, int npi_0, int npi_minus)
bool IsNeutrino(int pdgc)
RSPPInteractionListGenerator()
Defines the InteractionListGeneratorI interface. Concrete implementations of this interface generate ...
static int FinStateNucleon(SppChannel_t channel)
Contains minimal information for tagging exclusive processes.
enum genie::ESppChannel SppChannel_t
Summary information for an interaction.
#define LOG(stream, priority)
A macro that returns the requested log4cpp::Category appending a string (using the FILE...
static int InitStateNucleon(SppChannel_t channel)
A class encapsulating an enumeration of interaction types (EM, Weak-CC, Weak-NC) and scattering types...
bool IsAntiNeutrino(int pdgc)
A Neutrino Interaction Target. Is a transparent encapsulation of quite different physical systems suc...
virtual void Configure(const Registry &config)
string AsString(void) const
void Configure(const Registry &config)
void AddFinalStateInfo(Interaction *i, SppChannel_t chan) const
static int FinStatePion(SppChannel_t channel)
void LoadConfigData(void)
void SetExclTag(const XclsTag &xcls)
void SetNNucleons(int np, int nn)
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
InteractionList * CreateInteractionList(const InitialState &init) const
~RSPPInteractionListGenerator()
Initial State information.