#include <G4SmartTrackStack.hh>
Definition at line 42 of file G4SmartTrackStack.hh.
◆ G4SmartTrackStack()
G4SmartTrackStack::G4SmartTrackStack |
( |
| ) |
|
Definition at line 47 of file G4SmartTrackStack.cc.
48 : fTurn(0), nTurn(5), maxNTracks(0), nTracks(0)
49{
50 for(
G4int i=0; i<nTurn; ++i)
51 {
53 energies[i] = 0.;
54 }
55}
◆ ~G4SmartTrackStack()
G4SmartTrackStack::~G4SmartTrackStack |
( |
| ) |
|
◆ clear()
void G4SmartTrackStack::clear |
( |
| ) |
|
Definition at line 142 of file G4SmartTrackStack.cc.
143{
144 for (
G4int i = 0; i < nTurn; ++i)
145 {
146 stacks[i]->clear();
147 energies[i] = 0.0;
148 fTurn = 0;
149 }
150 nTracks = 0;
151}
◆ clearAndDestroy()
void G4SmartTrackStack::clearAndDestroy |
( |
| ) |
|
Definition at line 153 of file G4SmartTrackStack.cc.
154{
155 for (
G4int i = 0; i < nTurn; ++i)
156 {
158 energies[i] = 0.0;
159 fTurn = 0;
160 }
161 nTracks = 0;
162}
◆ dumpStatistics()
void G4SmartTrackStack::dumpStatistics |
( |
| ) |
|
Definition at line 35 of file G4SmartTrackStack.cc.
36{
37
38
39 for (
G4int i=0; i<nTurn; ++i)
40 {
43 }
45}
G4GLOB_DLL std::ostream G4cerr
G4double getTotalEnergy(void) const
std::size_t GetNTrack() const
◆ getEnergyOfStack()
◆ GetMaxNTrack()
G4int G4SmartTrackStack::GetMaxNTrack |
( |
| ) |
const |
|
inline |
◆ GetNTrack()
G4int G4SmartTrackStack::GetNTrack |
( |
| ) |
const |
|
inline |
◆ operator!=()
◆ operator=()
◆ operator==()
◆ PopFromStack()
Definition at line 74 of file G4SmartTrackStack.cc.
75{
77
78 if (nTracks)
79 {
80 while (true)
81 {
83 {
86 --nTracks;
87 break;
88 }
89 else
90 {
91 fTurn = (fTurn+1) % nTurn;
92 }
93 }
94 }
95
96 return aStackedTrack;
97}
G4double GetTotalEnergy() const
G4Track * GetTrack() const
G4StackedTrack PopFromStack()
const G4DynamicParticle * GetDynamicParticle() const
◆ PushToStack()
void G4SmartTrackStack::PushToStack |
( |
const G4StackedTrack & |
aStackedTrack | ) |
|
Definition at line 104 of file G4SmartTrackStack.cc.
105{
106
109 {
112 iDest = 2;
114 iDest = 3;
116 iDest = 4;
118 iDest = 1;
119 }
120 else
121 {
122
123 fTurn = 0;
124 }
127 ++nTracks;
128
131
132 if (dy1 > 0 || dy1 > dy2 ||
133 (iDest == 2 &&
134 stacks[iDest]->
GetNTrack() < 50 && energies[iDest] < energies[fTurn]))
135 {
136 fTurn = iDest;
137 }
138
139 if (nTracks > maxNTracks) maxNTracks = nTracks;
140}
void PushToStack(const G4StackedTrack &aStackedTrack)
G4int GetSafetyValue2() const
G4int GetSafetyValue1() const
G4int GetParentID() const
Referenced by G4TrackStack::TransferTo().
◆ TransferTo()
Definition at line 65 of file G4SmartTrackStack.cc.
66{
67 for (
G4int i=0; i<nTurn; ++i)
68 {
70 }
71 nTracks = 0;
72}
void TransferTo(G4TrackStack *aStack)
The documentation for this class was generated from the following files: