Skip to content

Enhanced trigger loop

Magne Eik Lauritzen requested to merge malaurit/YARR:enhancedTriggerLoop into devel

Adds a few more parameters to the trigger loop:

  • edgeDelay <int>: time gap in bunch crossings between injection command and CAL_edge rising edge (default 0)
  • edgeDuration <int>: duration in bunch crossings of CAL_edge when edgeMode is true (default 10)
  • auxMode <bool>: enables the CAL_aux signal (default false)
  • auxDelay <int>: time gap in 160MHz clocks between injection command and CAL_aux rising edge (default 20)

If they are not specified they take on default values which are completely compatible with the current triggerLoop. Therefore no edits to existing scan config files are necessary. These parameters are meant for advanced users who need access to all injection command parameters. This is clear from the documentation.

The trigger loop code has also been simplified by removing setEdgeMode() and creating a single function for generating the injection commands, namely setInjection().

The parameters edgeDuration, edgeDelay, and auxDelay are checked to be within range by verifyParameters() when loaded from the scan config file.

Edited by Magne Eik Lauritzen

Merge request reports