Page History
...
- laser on, beam off: builds a reference/background based on just the laser (unless the user has configured TimeTool.Analyze to load the reference from a file)
- laser on, beam on: when it has a reference of just the laser background, computes its results and puts them in the Event.
- laser off: nothing
The laser on/off beam on/off logic is typically determined based on evr codes, and looking at energy in the beam monitors (ipmb data) - which evr codes and ipmb's is configurable. However for some experiments, users need to override this logic and make their own decision. Starting in ana-0.13.17, this can be done as follows
...
Next one needs to write a Psana Module (not a standard Python script) that adds these variables into the event - note, this . A good reference for Psana Modules is psana - User Manual. Note - this link is different then the links that discuss writing Python scripts, such as psana - Python Script Analysis Manual. The Psana module will have to add the variables for every event - once you specify a value for beam_on_off_key, or laser_on_off_key, those keys need to be present for all events. An example Psana Module written in Python might be
...