Message: Re: Gracefully aborting a run Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Feedback Re: Gracefully aborting a run  

Forum: Run Management
Re: Question Gracefully aborting a run (Anthony Villano)
Re: Idea Re: Gracefully aborting a run (Tom Roberts)
Re: Question Re: Gracefully aborting a run (Anthony Villano)
Date: 30 Nov, 2010
From: Gumplinger Peter <Gumplinger Peter>

Hi Anthony,

What you need is (in .cc):

#include "G4RunManager.hh"

....

G4RunManager::GetRunManager()->AbortRun(true);

see for example:

http://www-geant4.kek.jp/lxr/source//examples/extended/eventgenerator/HepMC/HepMCEx01/src/HepMCG4Interface.cc#L139

However, I am somewhat perplexed by the logic in G4RunManager::AbortRun(G4bool softAbort):

http://www-geant4.kek.jp/lxr/source//run/src/G4RunManager.cc#L377

and the need for the user to call anEvent->SetEventAborted() him/herself in GeneratePrimaryVertex in addition to AbortRun(true). Tom have you discussed this before?

Peter

 Add Message Add Message
to: "Re: Gracefully aborting a run "

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]