Skip to content

[JUNGFRAU][FF] Feat: new notebook for producing gain constants.

Karim Ahmed requested to merge feat/JF_FF_Characterization_NB into master

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:

burst_JF_FF_HISTS.pdf

Screenshot_from_2024-01-18_10-36-21

Histo Fitting

Single cell:

CHARGE_SHARING

single_create_gain_map.pdf

Histos time summary FF create gain map

CHARGE_SHARING_2

CHARGE_SHARING_2_Single_Cells.pdf

Histos time summary Histos time summary

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

Reviewers

@schmidtp

Edited by Karim Ahmed

Merge request reports