GEVGPool.h
Go to the documentation of this file.
1 //____________________________________________________________________________
2 /*!
3 
4 \class genie::GEVGPool
5 
6 \brief A pool of GEVGDriver objects with an initial state key
7 
8 \author Costas Andreopoulos <constantinos.andreopoulos \at cern.ch>
9  University of Liverpool & STFC Rutherford Appleton Laboratory
10 
11 \created May 24, 2005
12 
13 \cpright Copyright (c) 2003-2020, The GENIE Collaboration
14  For the full text of the license visit http://copyright.genie-mc.org
15 */
16 //____________________________________________________________________________
17 
18 #ifndef _GEVG_DRIVER_POOL_H_
19 #define _GEVG_DRIVER_POOL_H_
20 
21 #include <map>
22 #include <string>
23 #include <ostream>
24 
25 using std::map;
26 using std::string;
27 using std::ostream;
28 
29 namespace genie {
30 
31 class GEVGPool;
32 class GEVGDriver;
33 class InitialState;
34 
35 ostream & operator << (ostream & stream, const GEVGPool & pool);
36 
37 class GEVGPool : public map<string, GEVGDriver *> {
38 
39 public :
40 
41  GEVGPool();
42  ~GEVGPool();
43 
44  GEVGDriver * FindDriver (const InitialState & init) const;
45  GEVGDriver * FindDriver (string init) const;
46 
47  void Print (ostream & stream) const;
48 
49  friend ostream & operator << (ostream & stream, const GEVGPool & pool);
50 };
51 
52 } // genie namespace
53 
54 #endif // _GEVG_DRIVER_POOL_H_
friend ostream & operator<<(ostream &stream, const GEVGPool &pool)
Definition: GEVGPool.cxx:21
THE MAIN GENIE PROJECT NAMESPACE
Definition: AlgCmp.h:25
std::string string
Definition: nybbler.cc:12
init
Definition: train.py:42
GEVGDriver * FindDriver(const InitialState &init) const
Definition: GEVGPool.cxx:44
GENIE Event Generation Driver. A minimalist user interface object for generating neutrino interaction...
Definition: GEVGDriver.h:54
void Print(ostream &stream) const
Definition: GEVGPool.cxx:65
ostream & operator<<(ostream &stream, const AlgConfigPool &config_pool)
Initial State information.
Definition: InitialState.h:48
A pool of GEVGDriver objects with an initial state key.
Definition: GEVGPool.h:37