Skip to Content.
Sympa Menu

opal - [Opal] [bug?] Probe data is not always saved

opal AT

Subject: The OPAL Discussion Forum

List archive

[Opal] [bug?] Probe data is not always saved

Chronological Thread 
  • From: James Gerity <jgerity AT>
  • To: Opal AT
  • Subject: [Opal] [bug?] Probe data is not always saved
  • Date: Tue, 13 Jun 2017 16:46:10 -0500

It seems that any tracker error raised in the
ParallelCyclotronTracker will prevent the finalization of probes in

This function calls one of several Tracker_*() functions that may
throw an error and when this is the case, the end of execute() is
skipped, so that finalise() is not called for each element in the
selected beamline, including any probes that might have stored data.

I've locally modified my working copy of OPAL (1.4.0-rc3, but at a
glance the execute() function looks similar in the development
version) to catch the thrown OpalException, finalise() the entire
beamline, and re-throw the exception. For the simulations I'm running,
it is most convenient to track particles until they are "lost" rather
than a particular duration, and it seems to me that the general
end-user would expect the probes to output events seen before the
error, rather than discarding all of this data.


Archive powered by MHonArc 2.6.19.

Top of Page