#include <G4TrackStack.hh>
Definition at line 44 of file G4TrackStack.hh.
◆ G4TrackStack() [1/2]
G4TrackStack::G4TrackStack |
( |
| ) |
|
|
default |
◆ G4TrackStack() [2/2]
G4TrackStack::G4TrackStack |
( |
std::size_t | n | ) |
|
|
inlineexplicit |
Definition at line 49 of file G4TrackStack.hh.
50 : safetyValue1(
G4int(4*n/5)),
51 safetyValue2(
G4int(4*n/5-100)), nstick(100) { reserve(n); }
◆ ~G4TrackStack()
G4TrackStack::~G4TrackStack |
( |
| ) |
|
◆ clearAndDestroy()
void G4TrackStack::clearAndDestroy |
( |
| ) |
|
◆ GetMaxNTrack()
std::size_t G4TrackStack::GetMaxNTrack |
( |
| ) |
const |
|
inline |
◆ GetNStick()
G4int G4TrackStack::GetNStick |
( |
| ) |
const |
|
inline |
◆ GetNTrack()
std::size_t G4TrackStack::GetNTrack |
( |
| ) |
const |
|
inline |
◆ GetSafetyValue1()
G4int G4TrackStack::GetSafetyValue1 |
( |
| ) |
const |
|
inline |
◆ GetSafetyValue2()
G4int G4TrackStack::GetSafetyValue2 |
( |
| ) |
const |
|
inline |
◆ getTotalEnergy()
G4double G4TrackStack::getTotalEnergy |
( |
| ) |
const |
Definition at line 68 of file G4TrackStack.cc.
69{
71 for (const auto & i : *this)
72 {
73 totalEnergy += i.GetTrack()->GetDynamicParticle()->GetTotalEnergy();
74 }
75 return totalEnergy;
76}
◆ operator!=()
◆ operator=()
◆ operator==()
◆ PopFromStack()
◆ PushToStack()
void G4TrackStack::PushToStack |
( |
const G4StackedTrack & | aStackedTrack | ) |
|
|
inline |
◆ SetSafetyValue2()
void G4TrackStack::SetSafetyValue2 |
( |
G4int | x | ) |
|
|
inline |
◆ TransferTo() [1/2]
Definition at line 60 of file G4TrackStack.cc.
61{
62 while (!this->empty())
63 {
65 }
66}
void PushToStack(const G4StackedTrack &aStackedTrack)
G4StackedTrack PopFromStack()
◆ TransferTo() [2/2]
The documentation for this class was generated from the following files: