InteractionList.cxx
Go to the documentation of this file.
1 //____________________________________________________________________________
2 /*
3  Copyright (c) 2003-2020, The GENIE Collaboration
4  For the full text of the license visit http://copyright.genie-mc.org
5 
6  Costas Andreopoulos <constantinos.andreopoulos \at cern.ch>
7  University of Liverpool & STFC Rutherford Appleton Laboratory
8 */
9 //____________________________________________________________________________
10 
14 
15 using std::endl;
16 using namespace genie;
17 
18 //____________________________________________________________________________
19 namespace genie {
20  ostream & operator << (ostream & stream, const InteractionList & intl)
21  {
22  intl.Print(stream);
23 
24  return stream;
25  }
26 }
27 //___________________________________________________________________________
30 {
31 
32 }
33 //___________________________________________________________________________
36 {
37  this->Copy(intl);
38 }
39 //___________________________________________________________________________
41 {
42  this->Reset();
43 }
44 //___________________________________________________________________________
46 {
48 
49  for(iter = this->begin(); iter != this->end(); ++iter) {
50  Interaction * interaction = *iter;
51  delete interaction;
52  interaction = 0;
53  }
54  this->clear();
55 }
56 //___________________________________________________________________________
58 {
60  for(iter = intl.begin(); iter != intl.end(); ++iter) {
61  Interaction * interaction = *iter;
62  this->push_back(new Interaction(*interaction));
63  }
64 }
65 //___________________________________________________________________________
67 {
68  this->Reset();
69 
71  for(iter = intl.begin(); iter != intl.end(); ++iter) {
72  Interaction * interaction = *iter;
73  this->push_back(new Interaction(*interaction));
74  }
75 }
76 //___________________________________________________________________________
77 void InteractionList::Print(ostream & stream) const
78 {
80 
81  for(iter = this->begin(); iter != this->end(); ++iter) {
82  Interaction * interaction = *iter;
83  if(interaction) stream << *interaction;
84  else stream << "\n******** NULL INTERACTION ********" << endl;
85  }
86 }
87 //___________________________________________________________________________
89 {
90  this->Copy(intl);
91  return (*this);
92 }
93 //___________________________________________________________________________
end
while True: pbar.update(maxval-len(onlies[E][S])) #print iS, "/", len(onlies[E][S]) found = False for...
THE MAIN GENIE PROJECT NAMESPACE
Definition: AlgCmp.h:25
struct vector vector
intermediate_table::const_iterator const_iterator
Summary information for an interaction.
Definition: Interaction.h:56
fInnerVessel push_back(Point(-578.400000, 0.000000, 0.000000))
void Append(const InteractionList &intl)
ostream & operator<<(ostream &stream, const AlgConfigPool &config_pool)
A vector of Interaction objects.
vector< vector< double > > clear
decltype(auto) constexpr begin(T &&obj)
ADL-aware version of std::begin.
Definition: StdUtils.h:72
void Print(ostream &stream) const
void Copy(const InteractionList &intl)
InteractionList & operator=(const InteractionList &intl)
QTextStream & endl(QTextStream &s)