11 #include <TLorentzVector.h> 23 using namespace genie;
48 <<
"\n*** NULL InteractionGeneratorMap! Can't select interaction";
51 if(igmap->size() <= 0) {
53 <<
"\n*** Empty InteractionGeneratorMap! Can't select interaction";
62 unsigned int nint = ilst.size();
63 unsigned int iint = (
unsigned int) rnd->
RndISel().Integer(nint);
71 <<
"Interaction to generate: \n" << *selected_interaction;
void SetProbeP4(const TLorentzVector &P4)
THE MAIN GENIE PROJECT NAMESPACE
static RandomGen * Instance()
Access instance.
A singleton holding random number generator classes. All random number generation in GENIE should tak...
virtual void AttachSummary(Interaction *interaction)
Summary information for an interaction.
An Interaction -> EventGeneratorI associative container. The container is being built for the loaded ...
#define LOG(stream, priority)
A macro that returns the requested log4cpp::Category appending a string (using the FILE...
~ToyInteractionSelector()
Generated Event Record. It is a GHepRecord object that can accept / be visited by EventRecordVisitorI...
Defines the InteractionSelectorI interface to be implemented by algorithms selecting interactions to ...
EventRecord * SelectInteraction(const InteractionGeneratorMap *igmp, const TLorentzVector &p4) const
implement the InteractionSelectorI interface
const InteractionList & GetInteractionList(void) const
A vector of Interaction objects.
InitialState * InitStatePtr(void) const
TRandom3 & RndISel(void) const
rnd number generator used by interaction selectors
Most commonly used PDG codes. A set of utility functions to handle PDG codes is provided in PDGUtils...