| 97 | } |
| 98 | |
| 99 | void G4SubEventTrackStack::ReleaseSubEvent() |
| 100 | { |
| 101 | // This method should be invoked at the end of processing an event. |
| 102 | // A sub-event that is not yet full is transferred to G4Event for |
| 103 | // post-event-loop processing. |
| 104 | if(fCurrentEvent==nullptr) |
| 105 | { |
| 106 | G4Exception("G4SubEventTrackStack::ReleaseSubEvent()","SubEvt7002",FatalException, |
| 107 | "Valid pointer of the current event is not set. PANIC!!"); |
| 108 | return; // NOLINT: Explicit return required to silence Coverity |
| 109 | } |
| 110 | if(fCurrentSE!=nullptr) |
| 111 | { |
| 112 | auto nSubEv = G4EventManager::GetEventManager() |
| 113 | ->StoreSubEvent(fCurrentEvent,fSubEventType,fCurrentSE); |
| 114 | if(verboseLevel>1) |
| 115 | { |
| 116 | G4cout << "### event id " << fCurrentEvent->GetEventID() |
| 117 | << " -- sub-evnet " << nSubEv << " with " << fCurrentSE->size() |
| 118 | << " tracks is stored" << G4endl; |
| 119 | } |
| 120 | fCurrentSE = nullptr; |
| 121 | } |
| 122 | fCurrentEvent = nullptr; |
| 123 | } |
| 124 | |
| 125 | //G4StackedTrack G4SubEventTrackStack::PopFromStack() |
| 126 | //{ |
nothing calls this directly
no test coverage detected