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