22 using namespace genie;
46 <<
"InitialState = " << init_state.
AsString();
52 <<
"Unknown InteractionType! Returning NULL InteractionList " 53 <<
"for init-state: " << init_state.
AsString();
71 <<
"Can not handle probe! Returning NULL InteractionList " 72 <<
"for init-state: " << init_state.
AsString();
77 for(
int i=0; i<2; i++) {
83 bool hasP = (target->
Z() > 0);
84 bool hasN = (target->
N() > 0);
90 if(nuclpdg[i] == kPdgNeutron && !hasN) {
95 intlist->push_back(interaction);
98 if(intlist->size() == 0) {
100 <<
"Returning NULL InteractionList for init-state: " THE MAIN GENIE PROJECT NAMESPACE
InteractionList * CreateInteractionListDM(const InitialState &init) const
Defines the InteractionListGeneratorI interface. Concrete implementations of this interface generate ...
InteractionList * CreateInteractionList(const InitialState &init) const
void Configure(const Registry &config)
bool IsDarkMatter(int pdgc)
DMELInteractionListGenerator()
Summary information for an interaction.
#define LOG(stream, priority)
A macro that returns the requested log4cpp::Category appending a string (using the FILE...
bool IsAntiDarkMatter(int pdgc)
A class encapsulating an enumeration of interaction types (EM, Weak-CC, Weak-NC) and scattering types...
void LoadConfigData(void)
A Neutrino Interaction Target. Is a transparent encapsulation of quite different physical systems suc...
virtual void Configure(const Registry &config)
string AsString(void) const
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
~DMELInteractionListGenerator()
bool GetParamDef(const RgKey &name, T &p, const T &def) const
Most commonly used PDG codes. A set of utility functions to handle PDG codes is provided in PDGUtils...
Initial State information.