Skip to content
Snippets Groups Projects
Commit bab039ba authored by Chad Lantz's avatar Chad Lantz
Browse files

Remove event generation from Root file temporarily to avoid seg faults at the end of runs

parent c99d6d17
No related branches found
No related tags found
No related merge requests found
......@@ -149,15 +149,10 @@ int main(int argc,char** argv)
G4String command = "/Input/FileName ";
UImanager->ApplyCommand(command+input);
}
if ( macro.size() ) {
// Batch mode
UImanager->ExecuteMacroFile(macro);
PrimaryGeneratorAction* pga = (PrimaryGeneratorAction*)runManager->GetUserPrimaryGeneratorAction();
G4int nEvents = pga->GetnEvents();
if( nEvents > 0){
runManager->BeamOn(nEvents);
}
}
else // Define UI session for interactive mode
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment