[JUNGFRAU][FF] Feat: new notebook for producing gain constants.
Description
These are the new gain-generation notebooks for Jungfrau by @mramilli
There are 4 notebooks: Path for the used original source for the NBs -> /gpfs/exfel/data/scratch/ahmedk/test/dont_remove/
1- gainCal_JF_Create_Spectra_Histos.ipynb
-> Histogram of single photon spectra
2- gainCal_JF_Fit_Spectra_Histos.ipynb
-> G0 map from single photon spectra
3- create_gain_map.ipynb
-> Create gain map
4- SendJFToDB.ipynb
-> Inject gain maps to CALCAT
Moved code for notebooks/Jungfrau/gainCal_JF_Create_Spectra_Histos.ipynb
and notebooks/Jungfrau/gainCal_JF_Fit_Spectra_Histos.ipynb
into one notebook -> notebooks/Jungfrau/gainCal_JF_Create_Spectra_Histos.ipynb
This can be run by xfel-calibrate xfel-calibrate Jungfrau FF_FIT --in-folder --out-folder --runs
Move the other two notebooks into notebooks/Jungfrau/create_gain_map.ipynb
to create gain maps and inject constants.
xfel-calibrate Jungfrau FF --in-folder --out-folder --runs
How Has This Been Tested?
Relevant Documents (optional)
Burst mode:
Single cell:
CHARGE_SHARING
CHARGE_SHARING_2
CHARGE_SHARING_2_Single_Cells.pdf
Types of changes
- New feature (non-breaking change which adds functionality)
Checklist:
-
Inject 1st constants using this branch -
Add documentations -
Add tests for the jungfrau_ff