Add Configs; Clean codes using hist dictionary

This commit is contained in:
2025-11-05 14:39:19 +01:00
parent 8caa048da4
commit 1161082b8f
3 changed files with 88 additions and 91 deletions
+23
View File
@@ -0,0 +1,23 @@
from glob import glob
import numpy as np
Configs = {}
XrayFolder = f'/mnt/sls_det_storage/moench_data/2504_SoleilBeamtime/Moench040_g4_SimonStars_150V_50us'
Configs['SiemenStarUpperLeft'] = {
'caliFile': np.load('/home/xie_x1/MLED/data-process/utils/BacksidePulsing_Calibration/Moench040/Moench040_AduToKevMapping_g4_50us_150V_250423.npy'),
'pedestalFileName': f'{XrayFolder}/15keV_pedestal_d0_f0_0.raw',
'signalFileNames': glob(f'{XrayFolder}/15keV_signal_d0_f*_0.raw'),
# 'etaxLUT': '/mnt/sls_det_storage/moench_data/MLXID/EtaInterpolation/Moench040_EtaxLUT_g4_50us_150V_250423.npy',
# 'etayLUT': '/mnt/sls_det_storage/moench_data/MLXID/EtaInterpolation/Moench040_EtayLUT_g4_50us_150V_250423.npy',
'Roi': [140, 230, 120, 210],
'NX': 400, 'NY': 400,
'energy': 15, # keV
'selectionRange': 2,
'headerSize': 56,
# 'write3x3Cluster': True,
'NFrame': 20_000_000, ### 20_000_000 in total
'NThread': 16,
'NChunks': 200,
}