The Shifter-Interface is a TUI designed to be used to enable/disable elements of the detector. Currently it can interface with 3 elements
- Detector Subsystems: These are large scale elements of the detector possibly consisting of many components, for example the NP04 APAs.
- Dataflow Applications: Straightforwardly, these are simply the applications which control dataflow from the detector
- Triggers: Specifically triggers controlled by detector components i.e. TPG in ReadoutApplications.
The TUI is installable with a daq enviroment through with pip
pip install [-e] .
The interface is initialised with
runconf-shifter-ui
optionally the following CLI flags exist for custom paths:
-a, --apparatus Set the detector apparatus i.e. NP02/NP04
-s, --shifter-interface-config Set default yaml config for this interface
-d, --daq-config-directory Where do you want to download configs
from/where are they located
--session-name Name of daq session
--base-url Base URL for the interface, not used for
local operation
--operation-url Operation URL for the interface, not used
for local operation
--debug Set the debug log level
-l, --local-config Use local config files instead of
downloading from the github, expert use
only! [flag option]
--help Show help
The default settings can be found in src/cider/configuration/np02_configuration.yml
and can be set either directly or via environment variable. Specifying an option in the CLI overrides the yaml default.
To get started pick a version of the daq configuration from the left hand side drop down menu. If only one version/directory is available this menu will be disabled & and that version automatically picked. Next pick your configuration from the right hand menu, again this will be disabled and automated if only one configuration file is available.
Currently there are 3 categories of objects that can be enabled or disabled:
- Detector subsystems: For example the APAs, PDS, etc.
- The Trigger System: Triggers to enable/disable including trigger primitive generation
- Dataflow applications: Objects that control dataflow
To disable/enable items simply press the buttons on the left side of the screen. Each set of objects is given its own tab. In addition, we provide 3 views of the detector configuration, although this is mostly intended for expert use.
- Configuration view: View a tree describing detector configuration
- Detector system view: Summary of detector subsystems which are enabled/disabled
- Trigger View: A summary of triggers/trigger objects which are enabled/disabled
Once you have made the desired changes, press the "Create" button to save the configuration. By default the current configuration is saved in the /current_config directory. Older configurations are automatically moved to /old_configs/run_ when a new configuration is saved.
If you are unhappy with changes + want to revert to the original configuration, press the "Reset" button.
Finally to quit the interface, press the "create" button. The configuration can be run in drunc using the command provided after quitting.
If you have any questions, please contact the DAQ shifter on duty. Enjoy your shift!
Specific instructions for setting up the interface YAMLs can be found here.
Developer instruction can be found here.