Public Member Functions | Friends | List of all members
genie::InteractionList Class Reference

A vector of Interaction objects. More...

#include "/cvmfs/nova.opensciencegrid.org/externals/genie/v3_00_06_p01a/Linux64bit+3.10-2.17-e19-debug/GENIE-Generator/src/Framework/EventGen/InteractionList.h"

Inheritance diagram for genie::InteractionList:

Public Member Functions

 InteractionList ()
 
 InteractionList (const InteractionList &intl)
 
 ~InteractionList ()
 
void Reset (void)
 
void Append (const InteractionList &intl)
 
void Copy (const InteractionList &intl)
 
void Print (ostream &stream) const
 
InteractionListoperator= (const InteractionList &intl)
 

Friends

ostream & operator<< (ostream &stream, const InteractionList &intl)
 

Detailed Description

A vector of Interaction objects.

Author
Costas Andreopoulos <costas.andreopoulos stfc.ac.uk> University of Liverpool & STFC Rutherford Appleton Lab

May 13, 2005

Copyright (c) 2003-2019, The GENIE Collaboration For the full text of the license visit http://copyright.genie-mc.org or see $GENIE/LICENSE

Definition at line 35 of file InteractionList.h.

Constructor & Destructor Documentation

InteractionList::InteractionList ( )

Definition at line 34 of file InteractionList.cxx.

34  :
35 vector<Interaction *>()
36 {
37 
38 }
InteractionList::InteractionList ( const InteractionList intl)

Definition at line 40 of file InteractionList.cxx.

References Copy().

40  :
41 vector<Interaction *>()
42 {
43  this->Copy(intl);
44 }
void Copy(const InteractionList &intl)
InteractionList::~InteractionList ( )

Definition at line 46 of file InteractionList.cxx.

References Reset().

47 {
48  this->Reset();
49 }

Member Function Documentation

void InteractionList::Append ( const InteractionList intl)

Definition at line 63 of file InteractionList.cxx.

Referenced by genie::XSecAlgorithmMap::BuildMap(), and genie::InteractionGeneratorMap::BuildMap().

64 {
65  InteractionList::const_iterator iter;
66  for(iter = intl.begin(); iter != intl.end(); ++iter) {
67  Interaction * interaction = *iter;
68  this->push_back(new Interaction(*interaction));
69  }
70 }
Summary information for an interaction.
Definition: Interaction.h:56
void InteractionList::Copy ( const InteractionList intl)

Definition at line 72 of file InteractionList.cxx.

References Reset().

Referenced by InteractionList(), and operator=().

73 {
74  this->Reset();
75 
76  InteractionList::const_iterator iter;
77  for(iter = intl.begin(); iter != intl.end(); ++iter) {
78  Interaction * interaction = *iter;
79  this->push_back(new Interaction(*interaction));
80  }
81 }
Summary information for an interaction.
Definition: Interaction.h:56
InteractionList & InteractionList::operator= ( const InteractionList intl)

Definition at line 94 of file InteractionList.cxx.

References Copy().

95 {
96  this->Copy(intl);
97  return (*this);
98 }
void Copy(const InteractionList &intl)
void InteractionList::Print ( ostream &  stream) const

Definition at line 83 of file InteractionList.cxx.

References febshutoff_auto::end, and allTimeWatchdog::endl.

Referenced by genie::operator<<().

84 {
85  InteractionList::const_iterator iter;
86 
87  for(iter = this->begin(); iter != this->end(); ++iter) {
88  Interaction * interaction = *iter;
89  if(interaction) stream << *interaction;
90  else stream << "\n******** NULL INTERACTION ********" << endl;
91  }
92 }
Summary information for an interaction.
Definition: Interaction.h:56
void InteractionList::Reset ( void  )

Definition at line 51 of file InteractionList.cxx.

References clear, and febshutoff_auto::end.

Referenced by Copy(), and ~InteractionList().

52 {
53  InteractionList::const_iterator iter;
54 
55  for(iter = this->begin(); iter != this->end(); ++iter) {
56  Interaction * interaction = *iter;
57  delete interaction;
58  interaction = 0;
59  }
60  this->clear();
61 }
vector< vector< double > > clear
Summary information for an interaction.
Definition: Interaction.h:56

Friends And Related Function Documentation

ostream& operator<< ( ostream &  stream,
const InteractionList intl 
)
friend

Definition at line 26 of file InteractionList.cxx.

27  {
28  intl.Print(stream);
29 
30  return stream;
31  }
void Print(ostream &stream) const

The documentation for this class was generated from the following files: