Process and plot measured beam sizes from beamDB with envelope
@tplanche @pjung just to get the discussion started: There now exists a snapshot app that will routinely start recording RPM profiles during snapshot taken by operators during delivery to an experiment or tuning. This saves the profile and relevant beam info including the optics setpoints into the beam database. An example can be seen here:
https://beta.hla.triumf.ca/jaya/data/get/171/
I would like someone to add a functionality to envelope such that I can do either of:
- Specify an snapshot ID number on the envelope page using some UI with a button/text box
- Specify the ID to be plotted in a URL to that envelope page and have it done automatically, like:
https://dev.envelope.triumf.ca/isac/DSB-Beamline?snapshot_id=171
Envelope should get the beam properties and optics setpoints from the data, identify any profile elements in that length of beamlien and see if any matching elements are found in the data. Then using https://gitlab.triumf.ca/hla/acc-utilities/profiles plot the 2rms size with the envelope.
Initially I think it is Ok to assume the initial conditions are unchanged, but I'd like to also get to the point where we are saving emittance or quad scan measurements to beam DB as well, so that I can also specify a tomo_id to envelope that would also update the initial conditions. Something like:
https://dev.envelope.triumf.ca/isac/DSB-Beamline?snapshot_id=171&tomo_id=179