129 if (
dynamic_cast<Quirk*
>(particle) != 0) {
130 G4ProcessManager* pmanager = particle->GetProcessManager();
135 while (pmanager->GetProcessListLength() != 0) pmanager->RemoveProcess(0);
137 pmanager->AddProcess(aTransportation);
138 pmanager->SetProcessOrderingToFirst(aTransportation, idxAlongStep);
139 pmanager->SetProcessOrderingToFirst(aTransportation, idxPostStep);
140 pmanager->AddProcess(
new G4hMultipleScattering,-1, 1, 1);
141 pmanager->AddProcess(
new G4hIonisation, -1, 2, 2);
142 pmanager->AddProcess(
new G4hBremsstrahlung, -1, 3, 3);
143 pmanager->AddProcess(
new G4hPairProduction, -1, 4, 4);
152 G4RunManager* runManager = G4RunManager::GetRunManager();
153 runManager->SetNumberOfAdditionalWaitingStacks(1);
154 G4UserStackingAction* defaultStackingAction = G4EventManager::GetEventManager()->GetUserStackingAction();
155 ATH_MSG_WARNING(
"This tool is interfering with the normal G4Atlas workflow, by forcing a differentcustom StackingAction instead of the default one. This is acceptable only as a temporary solution, and should be fixed asap.");