GENIEGenerator
Loading...
Searching...
No Matches
InteractionGeneratorMap.h
Go to the documentation of this file.
1//____________________________________________________________________________
2/*!
3
4\class genie::InteractionGeneratorMap
5
6\brief An Interaction -> EventGeneratorI associative container.
7 The container is being built for the loaded EventGeneratorList and for
8 the input InitialState object and is being used to locate the generator
9 that can generate aany given interaction.
10
11\author Costas Andreopoulos <c.andreopoulos \at cern.ch>
12 University of Liverpool
13
14\created January 23, 2006
15
16\cpright Copyright (c) 2003-2025, The GENIE Collaboration
17 For the full text of the license visit http://copyright.genie-mc.org
18*/
19//____________________________________________________________________________
20
21#ifndef _INTERACTION_GENERATOR_MAP_H_
22#define _INTERACTION_GENERATOR_MAP_H_
23
24#include <map>
25#include <string>
26#include <ostream>
27
29
30using std::map;
31using std::string;
32using std::ostream;
33
34namespace genie {
35
37class EventGeneratorI;
38class InteractionList;
39class InitialState;
41
42ostream & operator << (ostream & stream, const InteractionGeneratorMap & xsmap);
43
44class InteractionGeneratorMap : public map<string, const EventGeneratorI *> {
45
46public :
50
51 void UseGeneratorList (const EventGeneratorList * list);
52 void BuildMap (const InitialState & init_state);
53
54 const EventGeneratorI * FindGenerator (const Interaction * in) const;
55 const InteractionList & GetInteractionList (void) const;
56
57 void Reset (void);
58 void Copy (const InteractionGeneratorMap & xsmap);
59 void Print (ostream & stream) const;
60
62 friend ostream & operator << (ostream & stream, const InteractionGeneratorMap & xsmap);
63
64private:
65
66 void Init (void);
67 void CleanUp (void);
68
70
73};
74
75} // genie namespace
76
77#endif // _INTERACTION_GENERATOR_MAP_H_
Defines the EventGeneratorI interface.
A vector of EventGeneratorI objects.
Initial State information.
An Interaction -> EventGeneratorI associative container. The container is being built for the loaded ...
friend ostream & operator<<(ostream &stream, const InteractionGeneratorMap &xsmap)
void UseGeneratorList(const EventGeneratorList *list)
const EventGeneratorI * FindGenerator(const Interaction *in) const
void Copy(const InteractionGeneratorMap &xsmap)
const EventGeneratorList * fEventGeneratorList
const InteractionList & GetInteractionList(void) const
InteractionGeneratorMap & operator=(const InteractionGeneratorMap &xsmap)
void BuildMap(const InitialState &init_state)
A vector of Interaction objects.
Summary information for an interaction.
Definition Interaction.h:56
THE MAIN GENIE PROJECT NAMESPACE
Definition AlgCmp.h:25
ostream & operator<<(ostream &stream, const AlgConfigPool &config_pool)