Skip to content

Make BeamlineOffset configurable for Allen-in-Moore

Adds BeamlineOffset to allen_non_event_data_config, which propagates it so DumpBeamline in config.py, where run_allen_reconstruction is defined. This way the DumpBeamline service can be configured, when calling Allen from Moore.

This is the usage in a Moore options script is the following:

from Allen.config import allen_non_event_data_config
with (allen_non_event_data_config.bind(beamline_offset=(0.2, 0.))):
    run_allen_reconstruction(options, make_reconstruction)

similarly when calling allen_control_flow:

with (allen_sequence.bind(sequence="hlt1_pp_forward_then_matching_no_ut"),
      allen_non_event_data_config.bind(beamline_offset=(0.2, 0.))):
    config = configure_input(options)
    allen_node = allen_control_flow(options)
    config.update(configure(options, allen_node))

Closes #492 (closed).

Edited by Roel Aaij

Merge request reports