EvtLibInteractionListGenerator.cxx
Go to the documentation of this file.
2 
8 
9 using namespace genie;
10 using namespace genie::evtlib;
11 
12 //___________________________________________________________________________
14 InteractionListGeneratorI("genie::evtlib::EvtLibInteractionListGenerator")
15 {
16 
17 }
18 //___________________________________________________________________________
20 InteractionListGeneratorI("genie::evtlib::EvtLibInteractionListGenerator", config)
21 {
22 
23 }
24 //___________________________________________________________________________
26 {
27 
28 }
29 //___________________________________________________________________________
31  const InitialState & init_state) const
32 {
33  InteractionList * intlist = new InteractionList;
34 
35  // Struck nucleon is arbitrary but seems to be required
36 
37  ProcessInfo proc_info_cc(kScUnknown, kIntWeakCC);
38  Interaction* interaction_cc = new Interaction(init_state, proc_info_cc);
39  intlist->push_back(interaction_cc);
40 
41  ProcessInfo proc_info_nc(kScUnknown, kIntWeakNC);
42  Interaction* interaction_nc = new Interaction(init_state, proc_info_nc);
43  intlist->push_back(interaction_nc);
44 
45  return intlist;
46 }
47 
48 //____________________________________________________________________________
50 {
51  Algorithm::Configure(config);
52 }
53 //____________________________________________________________________________
55 {
56  Algorithm::Configure(config);
57 }
THE MAIN GENIE PROJECT NAMESPACE
Definition: AlgCmp.h:25
Defines the InteractionListGeneratorI interface. Concrete implementations of this interface generate ...
Summary information for an interaction.
Definition: Interaction.h:56
InteractionList * CreateInteractionList(const InitialState &init) const override
static Config * config
Definition: config.cpp:1054
A class encapsulating an enumeration of interaction types (EM, Weak-CC, Weak-NC) and scattering types...
Definition: ProcessInfo.h:46
virtual void Configure(const Registry &config)
Definition: Algorithm.cxx:62
A registry. Provides the container for algorithm configuration parameters.
Definition: Registry.h:65
A vector of Interaction objects.
Most commonly used PDG codes. A set of utility functions to handle PDG codes is provided in PDGUtils...
Initial State information.
Definition: InitialState.h:48