#include <G4ITReactionChange.hh>
Similar to G4ParticleChange, but deal with two tracks rather than one.
Definition at line 58 of file G4ITReactionChange.hh.
◆ G4ITReactionChange() [1/2]
G4ITReactionChange::G4ITReactionChange |
( |
| ) |
|
Default constructor
Definition at line 37 of file G4ITReactionChange.cc.
37 :
42{
43
44}
G4bool fParticleChangeIsSet
G4int fNumberOfSecondaries
std::vector< G4Track * > * fSecondaries
◆ ~G4ITReactionChange()
G4ITReactionChange::~G4ITReactionChange |
( |
| ) |
|
|
virtual |
◆ G4ITReactionChange() [2/2]
◆ AddSecondary()
void G4ITReactionChange::AddSecondary |
( |
G4Track * |
aSecondary | ) |
|
◆ GetfSecondary()
std::vector< G4Track * > * G4ITReactionChange::GetfSecondary |
( |
| ) |
|
|
inline |
◆ GetNumberOfSecondaries()
G4int G4ITReactionChange::GetNumberOfSecondaries |
( |
| ) |
const |
|
inline |
◆ GetParticleChange()
Definition at line 121 of file G4ITReactionChange.cc.
122{
123 std::map<const G4Track*, G4VParticleChange*>::iterator it =
fParticleChange
124 .find(track);
125
127 else return it->second;
128}
std::map< const G4Track *, G4VParticleChange * > fParticleChange
◆ GetSecondary()
G4Track * G4ITReactionChange::GetSecondary |
( |
G4int |
anIndex | ) |
const |
|
inline |
◆ GetTrackA()
const G4Track * G4ITReactionChange::GetTrackA |
( |
| ) |
|
Definition at line 130 of file G4ITReactionChange.cc.
131{
134 {
135 return it->first;
136 }
137
139 exceptionDescription
140 << "No track A found ! Have you initialized the ReactionChange ?";
141 G4Exception(
"G4ITReactionChange::GetTrackA",
"ITReactionChange001",
143 return 0;
144}
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
std::ostringstream G4ExceptionDescription
◆ GetTrackB()
const G4Track * G4ITReactionChange::GetTrackB |
( |
| ) |
|
Definition at line 146 of file G4ITReactionChange.cc.
147{
149 auto next = it++;
151 {
153 exceptionDescription
154 << "No track B found ! Have you initialized the ReactionChange ?";
155 G4Exception(
"G4ITReactionChange::GetTrackB",
"ITReactionChange002",
157 }
158
159 return it->first;
160}
◆ Initialize()
Definition at line 71 of file G4ITReactionChange.cc.
75{
79
80 if (particleChangeA || particleChangeB)
81 {
82 G4bool test = particleChangeA && particleChangeB;
83
84 if (test == false)
85 {
87 exceptionDescription << "If you give for one track a particleChange, ";
88 exceptionDescription
89 << "G4ITReactionChange is expecting that you give for both ";
90 exceptionDescription << "reacting tracks a particleChange.";
91 G4Exception(
"G4ITReactionChange::Initialize",
"ITReactionChange001",
93 }
94
96
99 ;
100
101 }
102
106}
◆ KillParents()
void G4ITReactionChange::KillParents |
( |
G4bool |
kill | ) |
|
|
inline |
◆ operator!=()
◆ operator=()
Assignment operator
- Parameters
-
other | Object to assign from |
- Returns
- A reference to this
Definition at line 64 of file G4ITReactionChange.cc.
65{
66 if (this == &rhs) return *this;
67
68 return *this;
69}
◆ operator==()
◆ UpdateStepInfo()
void G4ITReactionChange::UpdateStepInfo |
( |
G4Step * |
stepA, |
|
|
G4Step * |
stepB |
|
) |
| |
◆ WereParentsKilled()
G4bool G4ITReactionChange::WereParentsKilled |
( |
| ) |
const |
|
inline |
◆ fKillParents
G4bool G4ITReactionChange::fKillParents |
|
protected |
◆ fNumberOfSecondaries
G4int G4ITReactionChange::fNumberOfSecondaries |
|
protected |
◆ fParticleChange
◆ fParticleChangeIsSet
G4bool G4ITReactionChange::fParticleChangeIsSet |
|
protected |
◆ fSecondaries
std::vector<G4Track*>* G4ITReactionChange::fSecondaries |
|
protected |
The documentation for this class was generated from the following files: