Geant4 11.1.1
Toolkit for the simulation of the passage of particles through matter
|
#include <G4ITBox.hh>
Public Member Functions | |
G4ITBox () | |
~G4ITBox () | |
void | ResetStack () |
void | Push (G4IT *) |
void | Extract (G4IT *) |
G4IT * | FindIT (const G4Track &) |
const G4IT * | FindIT (const G4Track &) const |
void | TransferTo (G4ITBox *) |
G4bool | Empty () const |
G4int | GetNTrack () const |
G4IT * | GetFirstIT () |
G4IT * | GetLastIT () |
const G4IT * | GetFirstIT () const |
const G4IT * | GetLastIT () const |
void | SetNextBox (G4ITBox *box) |
G4ITBox * | GetNextBox () |
const G4ITBox * | GetNextBox () const |
void | SetPreviousBox (G4ITBox *box) |
G4ITBox * | GetPreviousBox () |
const G4ITBox * | GetPreviousBox () const |
G4ITBox behaves just like a stack for G4IT. You can search for specific tracks. Each G4IT knows to which G4ITBox it belongs and its corresponding node. This makes the deletion of an element very fast. The drawback is that a G4IT can only belong to one G4ITBox. If you are not looking for this feature, please use std::list.
Definition at line 60 of file G4ITBox.hh.
G4ITBox::G4ITBox | ( | ) |
Definition at line 37 of file G4ITBox.cc.
G4ITBox::~G4ITBox | ( | ) |
Definition at line 40 of file G4ITBox.cc.
|
inline |
Definition at line 106 of file G4ITBox.hh.
void G4ITBox::Extract | ( | G4IT * | aStackedIT | ) |
Definition at line 86 of file G4ITBox.cc.
Referenced by G4IT::TakeOutBox(), and TransferTo().
The FindIT methods are used for check only. Those methods are not effective due to the linear search. It is better to use GetIT(track) in order to retrieve the IT and GetIT(track)->GetBox() in order to check which is the box pointer.
Definition at line 109 of file G4ITBox.cc.
Definition at line 129 of file G4ITBox.cc.
|
inline |
Definition at line 115 of file G4ITBox.hh.
|
inline |
Definition at line 124 of file G4ITBox.hh.
|
inline |
Definition at line 119 of file G4ITBox.hh.
|
inline |
Definition at line 128 of file G4ITBox.hh.
|
inline |
Definition at line 138 of file G4ITBox.hh.
|
inline |
|
inline |
Definition at line 111 of file G4ITBox.hh.
|
inline |
Definition at line 148 of file G4ITBox.hh.
|
inline |
void G4ITBox::Push | ( | G4IT * | aIT | ) |
Definition at line 69 of file G4ITBox.cc.
Referenced by TransferTo().
void G4ITBox::ResetStack | ( | ) |
|
inline |
|
inline |
Definition at line 143 of file G4ITBox.hh.
Referenced by ~G4ITBox().
void G4ITBox::TransferTo | ( | G4ITBox * | aStack | ) |