Motivation
Code location
The main class and examples of how to use it in code is in
expmon/src/SSQSourceSelector.py expmon/examples/ex_select_sources.py
See: https://github.com/lcls-psana/expmon
Setup environment
In any directory on psana node which has access to data use command
source conda_setup --reldir /reg/neh/home/dubrovin/LCLS/con-ana-sioan
In case If conda_setup does not work, then first use command
source /reg/g/psdm/bin/conda_setup
Run test
python /reg/neh/home/dubrovin/LCLS/con-ana-sioan/expmon/examples/ex_select_sources.py 1 ... python /reg/neh/home/dubrovin/LCLS/con-ana-sioan/expmon/examples/ex_select_sources.py 6
Selector GUI
At start of the test
python /reg/neh/home/dubrovin/LCLS/con-ana-sioan/expmon/examples/ex_select_sources.py 1
application opens a window with GUI (left plot) which helps to select instrument, experiment, and run. When instrument, experiment, and run selected the list of detector sources and epics variables shows up as a check-list (right plot). Click on check-boxes of sources and close the window.
After closing the window the list of selected sources is saved in the file with other configuration parameters printed and on terminal:
List of selected sources: 00 SxrBeamline.0:Opal1000.0 01 PhaseCavity 02 EBeam 03 LAS:FS2:VIT:FS_TGT_TIME_DIAL