MCPcopy Create free account
hub / github.com/Geant4/geant4 / SetUserInformation

Method SetUserInformation

source/event/src/G4EventManager.cc:504–517  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

502}
503
504void 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
519G4VUserEventInformation* G4EventManager::GetUserInformation()
520{

Callers 15

ClassifyNewTrackMethod · 0.45
ConstructMethod · 0.45
PreUserTrackingActionMethod · 0.45
PreUserTrackingActionMethod · 0.45
PostStepDoItMethod · 0.45
PreUserTrackingActionMethod · 0.45
PreUserTrackingActionMethod · 0.45
GeneratePrimariesMethod · 0.45

Calls 1

G4ExceptionFunction · 0.85

Tested by

no test coverage detected