#include <G4SubEventTrackStack.hh>
Definition at line 42 of file G4SubEventTrackStack.hh.
◆ G4SubEventTrackStack() [1/2]
G4SubEventTrackStack::G4SubEventTrackStack |
( |
| ) |
|
|
default |
◆ G4SubEventTrackStack() [2/2]
G4SubEventTrackStack::G4SubEventTrackStack |
( |
G4int | ty, |
|
|
std::size_t | maxEnt ) |
|
inlineexplicit |
◆ ~G4SubEventTrackStack()
G4SubEventTrackStack::~G4SubEventTrackStack |
( |
| ) |
|
◆ clearAndDestroy()
void G4SubEventTrackStack::clearAndDestroy |
( |
| ) |
|
◆ GetMaxNTrack()
std::size_t G4SubEventTrackStack::GetMaxNTrack |
( |
| ) |
const |
|
inline |
◆ GetNTrack()
G4int G4SubEventTrackStack::GetNTrack |
( |
| ) |
const |
|
inline |
◆ GetSubEventType()
G4int G4SubEventTrackStack::GetSubEventType |
( |
| ) |
const |
|
inline |
◆ operator!=()
◆ operator=()
◆ operator==()
◆ PrepareNewEvent()
void G4SubEventTrackStack::PrepareNewEvent |
( |
G4Event * | ev | ) |
|
Definition at line 52 of file G4SubEventTrackStack.cc.
53{
54 if(fCurrentSE!=nullptr)
55 {
57 ed << fCurrentSE->size() << " sub-events still remains in the previous event. PANIC!!!";
59 }
60 fCurrentSE = nullptr;
61 fCurrentEvent = ev;
62}
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
std::ostringstream G4ExceptionDescription
◆ PushToStack()
void G4SubEventTrackStack::PushToStack |
( |
const G4StackedTrack & | aStackedTrack | ) |
|
Definition at line 64 of file G4SubEventTrackStack.cc.
65{
66 if(fCurrentSE==nullptr)
67 {
68 fCurrentSE =
new G4SubEvent(fSubEventType,fMaxEnt);
69 }
70 else if(fCurrentSE->size()==fMaxEnt)
71 {
72
73 auto nSubEv = fCurrentEvent->
StoreSubEvent(fSubEventType,fCurrentSE);
74 if(verboseLevel>1)
75 {
77 << " -- sub-evnet " << nSubEv << " with " << fCurrentSE->size()
78 <<
" tracks is stored" <<
G4endl;
79 }
80 fCurrentSE =
new G4SubEvent(fSubEventType,fMaxEnt);
81 }
83}
G4GLOB_DLL std::ostream G4cout
G4int StoreSubEvent(G4int, G4SubEvent *)
void PushToStack(const G4StackedTrack &aStackedTrack)
◆ ReleaseSubEvent()
void G4SubEventTrackStack::ReleaseSubEvent |
( |
| ) |
|
Definition at line 85 of file G4SubEventTrackStack.cc.
86{
87
88
89
90 if(fCurrentEvent==nullptr)
91 {
93 "Valid pointer of the current event is not set. PANIC!!");
94 return;
95 }
96 if(fCurrentSE!=nullptr)
97 {
98 auto nSubEv = fCurrentEvent->
StoreSubEvent(fSubEventType,fCurrentSE);
99 if(verboseLevel>1)
100 {
102 << " -- sub-evnet " << nSubEv << " with " << fCurrentSE->size()
103 <<
" tracks is stored" <<
G4endl;
104 }
105 fCurrentSE = nullptr;
106 }
107 fCurrentEvent = nullptr;
108}
◆ SetVerboseLevel()
void G4SubEventTrackStack::SetVerboseLevel |
( |
G4int | val | ) |
|
|
inline |
The documentation for this class was generated from the following files: