Adding scan repeats
Disclaimer: This is a request from ID21 and it applies to 1D scans of the primary beam energy (XANES scan). However it may appear in other types of scans at other beamlines?
Request: When doing an energy scan which needs 1 second exposure time per point, 10 scans of 0.1 exposure time per point are executed instead of 1 scan with 1 second exposure time per point. The 10 x 0.1 seconds is just an example, it could be anything.
The data of the individual scans is used to diagnose potential beam damage. What we want in addition is an "extra" XANES scan which is the "sum" of the 10 repeats.
Details:
- Although the energy positions will not be exactly the same for all scans, we don't care and the energy positions of the "sum" are the energy positions of the first scan.
- All counters (0D and 1D in the XANES case) need to be summed. For some counters this will not make any sense. For example: the MCA deadtime, a calculation counter which does
mca_roi1/I0
, ... In the spec days, we didn't care, but we may want to exclude some channels from the "sum". - As for motor positions at start and end of scan and detector metadata: in the spec days we didn't care, but could we mix data from the first and the last scan? Not the most crucial though.
This is a very complicated request and the final result might be "pymca needs to do this on-the-fly" (or any other data processing tool) so Bliss is not involved at all.
@salome, @cotte, @castillo: feel free to modify this request in case something is missing
@sole: this gets a -1 from you because you don't want Bliss to generate "extra" scans (they will look like real scans though ...)
@cyril.guilloud, @pguillou @matias.guijarro, @berruyer: all spectroscopy beamlines need this, so feel free to get them involved here