GENIEGenerator
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
EventGeneratorList.cxx
Go to the documentation of this file.
1 //____________________________________________________________________________
2 /*
3  Copyright (c) 2003-2024, The GENIE Collaboration
4  For the full text of the license visit http://copyright.genie-mc.org
5 
6  Costas Andreopoulos <c.andreopoulos \at cern.ch>
7  University of Liverpool
8 */
9 //____________________________________________________________________________
10 
14 
15 using std::endl;
16 using namespace genie;
17 
18 //____________________________________________________________________________
19 namespace genie {
20  ostream & operator << (ostream & stream, const EventGeneratorList & evgl)
21  {
22  evgl.Print(stream);
23  return stream;
24  }
25 }
26 //___________________________________________________________________________
28 {
29 
30 }
31 //___________________________________________________________________________
33 {
34 
35 }
36 //___________________________________________________________________________
37 void EventGeneratorList::Print(ostream & stream) const
38 {
39  EventGeneratorList::const_iterator iter;
40 
41  for(iter = this->begin(); iter != this->end(); ++iter) {
42 
43  const EventGeneratorI * evg = *iter;
44 
45  if(evg) stream << *evg;
46  else stream << "\n********* NULL EVENT GENERATOR *********" << endl;
47  }
48 }
49 //___________________________________________________________________________
void Print(ostream &stream) const
Defines the EventGeneratorI interface.
ostream & operator<<(ostream &stream, const AlgConfigPool &config_pool)
A vector of EventGeneratorI objects.