Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4INCLFinalState.cc
Go to the documentation of this file.
1//
2// ********************************************************************
3// * License and Disclaimer *
4// * *
5// * The Geant4 software is copyright of the Copyright Holders of *
6// * the Geant4 Collaboration. It is provided under the terms and *
7// * conditions of the Geant4 Software License, included in the file *
8// * LICENSE and available at http://cern.ch/geant4/license . These *
9// * include a list of copyright holders. *
10// * *
11// * Neither the authors of this software system, nor their employing *
12// * institutes,nor the agencies providing financial support for this *
13// * work make any representation or warranty, express or implied, *
14// * regarding this software system or assume any liability for its *
15// * use. Please see the license in the file LICENSE and URL above *
16// * for the full disclaimer and the limitation of liability. *
17// * *
18// * This code implementation is the result of the scientific and *
19// * technical work of the GEANT4 collaboration. *
20// * By using, copying, modifying or distributing the software (or *
21// * any work based on the software) you agree to acknowledge its *
22// * use in resulting scientific publications, and indicate your *
23// * acceptance of all terms of the Geant4 Software license. *
24// ********************************************************************
25//
26// INCL++ intra-nuclear cascade model
27// Pekka Kaitaniemi, CEA and Helsinki Institute of Physics
28// Davide Mancusi, CEA
29// Alain Boudard, CEA
30// Sylvie Leray, CEA
31// Joseph Cugnon, University of Liege
32//
33// INCL++ revision: v5.1.8
34//
35#define INCLXX_IN_GEANT4_MODE 1
36
37#include "globals.hh"
38
39#include "G4INCLFinalState.hh"
40
41namespace G4INCL {
42
44 totalEnergyBeforeInteraction(0.0), validity(ValidFS),
45 blockedDelta(NULL)
46 {
47 }
48
50 {
51 }
52
54 {
55 modified.push_back(p);
56 }
57
59 {
60 outgoing.push_back(p);
61 }
62
64 {
65 destroyed.push_back(p);
66 }
67
69 {
70 created.push_back(p);
71 }
72
74 {
75 entering.push_back(p);
76 }
77
79 {
80 return modified;
81 }
82
84 {
85 return outgoing;
86 }
87
89 {
90 return destroyed;
91 }
92
94 {
95 return created;
96 }
97
99 {
100 return entering;
101 }
102
103 std::string FinalState::print() const {
104 std::stringstream ss;
105 ss << "Modified particles:" << std::endl;
106 for(ParticleIter iter = modified.begin(); iter != modified.end(); ++iter)
107 ss << (*iter)->print();
108 ss << "Outgoing particles:" << std::endl;
109 for(ParticleIter iter = outgoing.begin(); iter != outgoing.end(); ++iter)
110 ss << (*iter)->print();
111 ss << "Destroyed particles:" << std::endl;
112 for(ParticleIter iter = destroyed.begin(); iter != destroyed.end(); ++iter)
113 ss << (*iter)->print();
114 ss << "Created particles:" << std::endl;
115 for(ParticleIter iter = created.begin(); iter != created.end(); ++iter)
116 ss << (*iter)->print();
117 ss << "Entering particles:" << std::endl;
118 for(ParticleIter iter = entering.begin(); iter != entering.end(); ++iter)
119 ss << (*iter)->print();
120 return ss.str();
121 }
122
123}
void addEnteringParticle(Particle *p)
void addModifiedParticle(Particle *p)
ParticleList const & getOutgoingParticles() const
ParticleList const & getEnteringParticles() const
std::string print() const
ParticleList const & getModifiedParticles() const
void addOutgoingParticle(Particle *p)
ParticleList const & getDestroyedParticles() const
void addCreatedParticle(Particle *p)
ParticleList const & getCreatedParticles() const
void addDestroyedParticle(Particle *p)
std::list< G4INCL::Particle * > ParticleList
std::list< G4INCL::Particle * >::const_iterator ParticleIter