44 if(fCurrentSE!=
nullptr)
54 if(fCurrentSE!=
nullptr)
57 ed << fCurrentSE->size() <<
" sub-events still remains in the previous event. PANIC!!!";
66 if(fCurrentSE==
nullptr)
68 fCurrentSE =
new G4SubEvent(fSubEventType,fMaxEnt);
70 else if(fCurrentSE->size()==fMaxEnt)
73 auto nSubEv = fCurrentEvent->
StoreSubEvent(fSubEventType,fCurrentSE);
77 <<
" -- sub-evnet " << nSubEv <<
" with " << fCurrentSE->size()
78 <<
" tracks is stored" <<
G4endl;
80 fCurrentSE =
new G4SubEvent(fSubEventType,fMaxEnt);
90 if(fCurrentEvent==
nullptr)
93 "Valid pointer of the current event is not set. PANIC!!");
96 if(fCurrentSE!=
nullptr)
98 auto nSubEv = fCurrentEvent->
StoreSubEvent(fSubEventType,fCurrentSE);
102 <<
" -- sub-evnet " << nSubEv <<
" with " << fCurrentSE->size()
103 <<
" tracks is stored" <<
G4endl;
105 fCurrentSE =
nullptr;
107 fCurrentEvent =
nullptr;
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
std::ostringstream G4ExceptionDescription
G4GLOB_DLL std::ostream G4cout
G4int StoreSubEvent(G4int, G4SubEvent *)
void PushToStack(const G4StackedTrack &aStackedTrack)
void PrepareNewEvent(G4Event *ev)
void PushToStack(const G4StackedTrack &aStackedTrack)