#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 |
◆ ~G4ITReactionChange()
G4ITReactionChange::~G4ITReactionChange |
( |
| ) |
|
|
virtual |
Default destructor
Definition at line 40 of file G4ITReactionChange.cc.
41{
42
45}
std::vector< G4Track * > * fSecondaries
◆ 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 110 of file G4ITReactionChange.cc.
111{
113 .find(track);
114
116 return it->second;
117}
std::map< const G4Track *, G4VParticleChange * > fParticleChange
◆ GetSecondary()
G4Track * G4ITReactionChange::GetSecondary |
( |
G4int | anIndex | ) |
const |
|
inline |
◆ GetTrackA()
const G4Track * G4ITReactionChange::GetTrackA |
( |
| ) |
|
Definition at line 119 of file G4ITReactionChange.cc.
120{
123 {
124 return it->first;
125 }
126
128 exceptionDescription
129 << "No track A found ! Have you initialized the ReactionChange ?";
130 G4Exception(
"G4ITReactionChange::GetTrackA",
"ITReactionChange001",
132 return nullptr;
133}
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
std::ostringstream G4ExceptionDescription
◆ GetTrackB()
const G4Track * G4ITReactionChange::GetTrackB |
( |
| ) |
|
Definition at line 135 of file G4ITReactionChange.cc.
136{
138 auto next = it++;
140 {
142 exceptionDescription
143 << "No track B found ! Have you initialized the ReactionChange ?";
144 G4Exception(
"G4ITReactionChange::GetTrackB",
"ITReactionChange002",
146 }
147
148 return it->first;
149}
◆ Initialize()
Definition at line 60 of file G4ITReactionChange.cc.
64{
68
69 if ((particleChangeA != nullptr) || (particleChangeB != nullptr))
70 {
71 G4bool test = (particleChangeA !=
nullptr) && (particleChangeB !=
nullptr);
72
73 if (!test)
74 {
76 exceptionDescription << "If you give for one track a particleChange, ";
77 exceptionDescription
78 << "G4ITReactionChange is expecting that you give for both ";
79 exceptionDescription << "reacting tracks a particleChange.";
80 G4Exception(
"G4ITReactionChange::Initialize",
"ITReactionChange001",
82 }
83
85
88 ;
89
90 }
91
95}
G4bool fParticleChangeIsSet
◆ 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 53 of file G4ITReactionChange.cc.
54{
55 if (this == &rhs) return *this;
56
57 return *this;
58}
◆ operator==()
◆ UpdateStepInfo()
void G4ITReactionChange::UpdateStepInfo |
( |
G4Step * | stepA, |
|
|
G4Step * | stepB ) |
◆ WereParentsKilled()
G4bool G4ITReactionChange::WereParentsKilled |
( |
| ) |
const |
|
inline |
◆ fKillParents
G4bool G4ITReactionChange::fKillParents {false} |
|
protected |
◆ fNumberOfSecondaries
G4int G4ITReactionChange::fNumberOfSecondaries {0} |
|
protected |
◆ fParticleChange
◆ fParticleChangeIsSet
G4bool G4ITReactionChange::fParticleChangeIsSet {false} |
|
protected |
◆ fSecondaries
std::vector<G4Track*>* G4ITReactionChange::fSecondaries {nullptr} |
|
protected |
The documentation for this class was generated from the following files: