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

Idea Re: Gracefully aborting a run  

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

What you can do is give runManager->BeamOn() a very large number of events; when you determine you have processed all of the events available, call runManager->AbortRun(false).

Note, however that calling AbortRun(false) does not work from inside UserGeneratePrimaries(). Instead do:

    // RunManager cannot abort the event from inside
    // UserGeneratePrimaries(), so we do a soft abort
    // to the RunManager, and abort the event ourselves.
    // The result is the same as a hard abort.

I do this routinely when processing a file of events for which the count is not known until the EOF is read inside UserGeneratePrimaries().

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 Question: Re: Gracefully aborting a run   (Anthony Villano - 30 Nov, 2010)
(_ Feedback: Re: Gracefully aborting a run   (Gumplinger Peter - 30 Nov, 2010)
 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 ]