67 if(fCurrentSE==
nullptr)
69 fCurrentSE =
new G4SubEvent(fSubEventType,fMaxEnt);
70 fCurrentSE->SetEvent(fCurrentEvent);
72 else if(fCurrentSE->size()==fMaxEnt)
79 G4cout <<
"### event id " << fCurrentEvent->GetEventID()
80 <<
" -- sub-evnet " << nSubEv <<
" with " << fCurrentSE->size()
81 <<
" tracks is stored" <<
G4endl;
83 fCurrentSE =
new G4SubEvent(fSubEventType,fMaxEnt);
84 fCurrentSE->SetEvent(fCurrentEvent);
88 if(fCurrentEvent ==
nullptr || fCurrentSE->GetEvent() ==
nullptr
89 || fCurrentEvent != fCurrentSE->GetEvent())
92 ed <<
"Event object is broken or storing tracks of more than one events. PANIC!!!";
96 fCurrentSE->PushToStack(aStackedTrack);