Add 2photon cluster writing; Clean codes

This commit is contained in:
2025-11-06 08:22:14 +01:00
parent 1161082b8f
commit 2561eff511
3 changed files with 91 additions and 67 deletions

View File

@@ -9,14 +9,13 @@ 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,
# 'writeCluster': True,
'outputFolder': '/mnt/sls_det_storage/moench_data/MLXID/Samples/Measurement/2504_SOLEIL_SiemenStarClusters_MOENCH040_150V/',
'NFrame': 20_000_000, ### 20_000_000 in total
'NThread': 16,
'NChunks': 200,