Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
Generator
src
Framework
EventGen
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
11
#include "
Framework/EventGen/InteractionList.h
"
12
#include "
Framework/Interaction/Interaction.h
"
13
#include "
Framework/Messenger/Messenger.h
"
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
//___________________________________________________________________________
28
InteractionList::InteractionList
() :
29
vector
<
Interaction
*>()
30
{
31
32
}
33
//___________________________________________________________________________
34
InteractionList::InteractionList
(
const
InteractionList
& intl) :
35
vector
<
Interaction
*>()
36
{
37
this->
Copy
(intl);
38
}
39
//___________________________________________________________________________
40
InteractionList::~InteractionList
()
41
{
42
this->
Reset
();
43
}
44
//___________________________________________________________________________
45
void
InteractionList::Reset
(
void
)
46
{
47
InteractionList::const_iterator
iter;
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
//___________________________________________________________________________
57
void
InteractionList::Append
(
const
InteractionList
& intl)
58
{
59
InteractionList::const_iterator
iter;
60
for
(iter = intl.begin(); iter != intl.end(); ++iter) {
61
Interaction
*
interaction
= *iter;
62
this->
push_back
(
new
Interaction
(*interaction));
63
}
64
}
65
//___________________________________________________________________________
66
void
InteractionList::Copy
(
const
InteractionList
& intl)
67
{
68
this->
Reset
();
69
70
InteractionList::const_iterator
iter;
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
{
79
InteractionList::const_iterator
iter;
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
//___________________________________________________________________________
88
InteractionList
&
InteractionList::operator =
(
const
InteractionList
& intl)
89
{
90
this->
Copy
(intl);
91
return
(*
this
);
92
}
93
//___________________________________________________________________________
ValidateOpDetReco.end
end
while True: pbar.update(maxval-len(onlies[E][S])) #print iS, "/", len(onlies[E][S]) found = False for...
Definition:
ValidateOpDetReco.py:548
genie::InteractionList::~InteractionList
~InteractionList()
Definition:
InteractionList.cxx:40
genie
THE MAIN GENIE PROJECT NAMESPACE
Definition:
AlgCmp.h:25
cvn::Interaction
Interaction
Definition:
InteractionType.h:16
InteractionList.h
vector
struct vector vector
genie::InteractionList::Reset
void Reset(void)
Definition:
InteractionList.cxx:45
const_iterator
intermediate_table::const_iterator const_iterator
Definition:
intermediate_table.cc:28
genie::Interaction
Summary information for an interaction.
Definition:
Interaction.h:56
Interaction.h
push_back
fInnerVessel push_back(Point(-578.400000, 0.000000, 0.000000))
cvn::interaction
Definition:
InteractionType.h:60
generate_datataset.stream
stream
Definition:
generate_datataset.py:30
Messenger.h
genie::InteractionList::InteractionList
InteractionList()
Definition:
InteractionList.cxx:28
genie::InteractionList::Append
void Append(const InteractionList &intl)
Definition:
InteractionList.cxx:57
genie::operator<<
ostream & operator<<(ostream &stream, const AlgConfigPool &config_pool)
Definition:
AlgConfigPool.cxx:41
genie::InteractionList
A vector of Interaction objects.
Definition:
InteractionList.h:34
clear
vector< vector< double > > clear
Definition:
INukeNucleonCorr.cxx:114
util::begin
decltype(auto) constexpr begin(T &&obj)
ADL-aware version of std::begin.
Definition:
StdUtils.h:72
genie::InteractionList::Print
void Print(ostream &stream) const
Definition:
InteractionList.cxx:77
genie::InteractionList::Copy
void Copy(const InteractionList &intl)
Definition:
InteractionList.cxx:66
genie::InteractionList::operator=
InteractionList & operator=(const InteractionList &intl)
Definition:
InteractionList.cxx:88
endl
QTextStream & endl(QTextStream &s)
Definition:
qtextstream.cpp:2030
Generated by
1.8.11