GENIEGenerator
Loading...
Searching...
No Matches
EventGeneratorList.cxx
Go to the documentation of this file.
1//____________________________________________________________________________
2/*
3 Copyright (c) 2003-2025, 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
15using std::endl;
16using namespace genie;
17
18//____________________________________________________________________________
19namespace genie {
20 ostream & operator << (ostream & stream, const EventGeneratorList & evgl)
21 {
22 evgl.Print(stream);
23 return stream;
24 }
25}
26//___________________________________________________________________________
31//___________________________________________________________________________
36//___________________________________________________________________________
37void 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//___________________________________________________________________________
Defines the EventGeneratorI interface.
void Print(ostream &stream) const
THE MAIN GENIE PROJECT NAMESPACE
Definition AlgCmp.h:25
ostream & operator<<(ostream &stream, const AlgConfigPool &config_pool)