| 502 | } |
| 503 | |
| 504 | void G4EventManager::SetUserInformation(G4VUserEventInformation* anInfo) |
| 505 | { |
| 506 | G4ApplicationState currentState = stateManager->GetCurrentState(); |
| 507 | if(currentState != G4State_EventProc || currentEvent == nullptr) |
| 508 | { |
| 509 | G4Exception("G4EventManager::SetUserInformation", |
| 510 | "Event0003", JustWarning, |
| 511 | "G4VUserEventInformation cannot be set because of absence "\ |
| 512 | "of G4Event."); |
| 513 | return; |
| 514 | } |
| 515 | |
| 516 | currentEvent->SetUserInformation(anInfo); |
| 517 | } |
| 518 | |
| 519 | G4VUserEventInformation* G4EventManager::GetUserInformation() |
| 520 | { |
no test coverage detected