whizard is hosted by Hepforge, IPPP Durham

Changes between Version 52 and Version 53 of Ticket #418


Ignore:
Timestamp:
Dec 12, 2013, 1:56:07 PM (10 years ago)
Author:
kilian
Comment:

Partially done:

  1. events_per_file, including starting number

Implemented for the eio_ascii set of formats. The global variables are sample_split_n_evt and {{sample_split_index}}}. Not yet implemented for other formats, but this should be straightforward. the relevant TBP is called eio_split_out.

Also done:

  1. signal handling: save/restore vamp grid CONTENTS

Signals are blocked by default. At important points in code, the signal status is queried by signal_is_pending and, if necessary, the current routine returns. This works like a poor-man's exception mechanism. The actual termination points are after each SINDARIN command. (In the cascades module, I kept termination points as they were before.)

This way of treating signals allows to do some cleanup, such as properly closing event files, before the program aborts. In the previous implementation, there was only the possibility of immediate abort at various points.

The issue of snapshooting VAMP is nontrivial. I deferred this to #572.

There are no tests for signal handling; this is difficult. Practice should show whether I missed something.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #418 – Description

    v52 v53  
    1   1. events_per_file, including starting number
    2   1. signal handling: save/restore vamp grid CONTENTS
     1  1. events_per_file, including starting number, for some formats
    32  1. show_* for debug output format
    43