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

Method StoreUserActions

source/run/src/G4MaterialScanner.cc:93–110  ·  view source on GitHub ↗

--------------------------------------------------------------------

Source from the content-addressed store, hash-verified

91
92// --------------------------------------------------------------------
93void G4MaterialScanner::StoreUserActions()
94{
95 theUserEventAction = theEventManager->GetUserEventAction();
96 theUserStackingAction = theEventManager->GetUserStackingAction();
97 theUserTrackingAction = theEventManager->GetUserTrackingAction();
98 theUserSteppingAction = theEventManager->GetUserSteppingAction();
99
100 theEventManager->SetUserAction(theMatScannerEventAction);
101 theEventManager->SetUserAction(theMatScannerStackingAction);
102 theEventManager->SetUserAction(theMatScannerTrackingAction);
103 theEventManager->SetUserAction(theMatScannerSteppingAction);
104
105 G4SDManager* theSDMan = G4SDManager::GetSDMpointerIfExist();
106 if (theSDMan != nullptr) {
107 theSDMan->Activate("/", false);
108 }
109
110}
111
112// --------------------------------------------------------------------
113void G4MaterialScanner::RestoreUserActions()

Callers

nothing calls this directly

Calls 6

GetUserEventActionMethod · 0.45
GetUserStackingActionMethod · 0.45
GetUserTrackingActionMethod · 0.45
GetUserSteppingActionMethod · 0.45
SetUserActionMethod · 0.45
ActivateMethod · 0.45

Tested by

no test coverage detected