--------------------------------------------------------------------
| 91 | |
| 92 | // -------------------------------------------------------------------- |
| 93 | void 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 | // -------------------------------------------------------------------- |
| 113 | void G4MaterialScanner::RestoreUserActions() |
nothing calls this directly
no test coverage detected