creation_time=""# To overwrite the measured creation_time. Required Format: YYYY-MM-DD HR:MN:SC e.g. "2022-06-28 13:00:00"
g_map_old=''# '/gpfs/exfel/data/user/mramilli/jungfrau/module_PSI_gainmaps/M302/gainMaps_M302_2022-02-23.h5' # old gain map file path to calculate gain ratios G0/G1 and G1/G2. Set to "" to get last gain constant from the database.
old_gain_dataset_name='gain_map_g0'# name of the data structure in the old gain map
correct_offset=False# correct the photon peak value with a pedestal fit position
db_output=False# A boolean to inject the gain maps to the database.
local_output=True# A boolean to store a local version of the constants in the out-folder
g0_fit_dataset='gainMap_fit'# name of the data structure in the fit files
E_ph=8.048# photon energy of the peak fitted
badpixel_threshold_sigma=3.# number of std in gain distribution to mark bad pixels
roi=[0,1024,0,512]# ROI to consider to evaluate gain distribution (for bad pixels evaluation)
# CALCAT API parameters
cal_db_interface="tcp://max-exfl-cal001:8020"# the database interface to use
Currently only the high gain map can be generated. To calculate the new medium and low gain maps, we depend on the past gain maps to calculate both gain maps from the ratio on G0/G1 and G1/G2. If we can't use any old gain maps, it would be impossible to calculate gain maps for medium and low gain at the moment.