From bab039baae6ee0ff741afae51f99ad3660a75603 Mon Sep 17 00:00:00 2001 From: Chad Lantz <clantz2@illinois.edu> Date: Wed, 10 Jul 2024 22:35:23 -0500 Subject: [PATCH] Remove event generation from Root file temporarily to avoid seg faults at the end of runs --- lightGuide.cc | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/lightGuide.cc b/lightGuide.cc index 9a2fcf7..7876622 100644 --- a/lightGuide.cc +++ b/lightGuide.cc @@ -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 { -- GitLab