Update configs
This commit is contained in:
+383
-3
@@ -9,7 +9,7 @@ XrayFolder = f'/mnt/sls_det_storage/moench_data/2504_SoleilBeamtime/Moench040_g4
|
||||
Configs['SiemenStarLowerLeft'] = {
|
||||
'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'),
|
||||
'signalFileNames': [f'{XrayFolder}/15keV_signal_d0_f{i}_0.raw' for i in range(2000)],
|
||||
'Roi': [140, 240, 110, 220],
|
||||
'NX': 400, 'NY': 400,
|
||||
'energy': 15, # keV
|
||||
@@ -27,7 +27,7 @@ Configs['SiemenStarLowerLeft'] = {
|
||||
Configs['SiemenStarLowerRight'] = {
|
||||
'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'),
|
||||
'signalFileNames': [f'{XrayFolder}/15keV_signal_d0_f{i}_0.raw' for i in range( 20)],
|
||||
'Roi': [235, 345, 110, 220],
|
||||
'NX': 400, 'NY': 400,
|
||||
'energy': 15, # keV
|
||||
@@ -45,7 +45,7 @@ Configs['SiemenStarLowerRight'] = {
|
||||
Configs['SiemenStars'] = {
|
||||
'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'),
|
||||
'signalFileNames': [f'{XrayFolder}/15keV_signal_d0_f{i}_0.raw' for i in range(1000)],
|
||||
'Roi': [140, 350, 110, 350], ### Xmin, Xmax, Ymin, Ymax
|
||||
'NX': 400, 'NY': 400,
|
||||
'energy': 15, # keV
|
||||
@@ -57,4 +57,384 @@ Configs['SiemenStars'] = {
|
||||
'NThread': 16,
|
||||
'NChunks': 16,
|
||||
'runName': 'SiemenStars',
|
||||
}
|
||||
|
||||
Configs['15keVFlatField'] = {
|
||||
'caliFile': np.load('/home/xie_x1/MLED/data-process/utils/BacksidePulsing_Calibration/Moench040/Moench040_AduToKevMapping_g4_50us_150V_250423.npy'),
|
||||
'pedestalFileName': f'/mnt/sls_det_storage/moench_data/2504_SoleilBeamtime/Moench040_g4_150V_50us/15keV_pedestal_d0_f0_0.raw',
|
||||
'signalFileNames': glob(f'/mnt/sls_det_storage/moench_data/2504_SoleilBeamtime/Moench040_g4_150V_50us/15keV_signal_d0_f0_0.raw'),
|
||||
'Roi': [0, 400, 0, 400],
|
||||
'NX': 400, 'NY': 400,
|
||||
'energy': 15, # keV
|
||||
'selectionRange': 2,
|
||||
'headerSize': 56,
|
||||
# 'writeCluster': True,
|
||||
'outputFolder': '/home/xie_x1/MLXID/DataProcess/Samples/MonochromaticFlatField/',
|
||||
'NFrame': 1_000_0,
|
||||
'NThread': 16,
|
||||
'NChunks': 16,
|
||||
'runName': 'MonochromaticFlatField',
|
||||
}
|
||||
|
||||
Configs['Moench014_10keVFlatField'] = {
|
||||
'caliFile': np.load('/home/xie_x1/MLED/data-process/utils/BacksidePulsing_Calibration/Moench014/Moench014_AduToKevMapping_g4_50us_250305.npy'),
|
||||
'pedestalFileName': f'/mnt/sls_det_storage/moench_data/2504_SoleilBeamtime/Moench014_g4_150V_50us/10keV_pedestal_d0_f0_0.raw',
|
||||
'signalFileNames': [f'/mnt/sls_det_storage/moench_data/2504_SoleilBeamtime/Moench014_g4_150V_50us/10keV_signal_d0_f{i}.raw' for i in range(14)],
|
||||
'Roi': [0, 180, 100, 400],
|
||||
'NX': 400, 'NY': 400,
|
||||
'energy': 10, # keV
|
||||
'selectionRange': 2,
|
||||
'headerSize': 56,
|
||||
# 'writeCluster': True,
|
||||
'outputFolder': '/home/xie_x1/MLXID/DataProcess/Samples/MonochromaticFlatField/',
|
||||
'NFrame': 100_000,
|
||||
'NThread': 16,
|
||||
'NChunks': 16,
|
||||
'runName': 'Moench014_10keVFlatField_LowFlux',
|
||||
}
|
||||
|
||||
Configs['Moench014_15keVFlatField'] = {
|
||||
'caliFile': np.load('/home/xie_x1/MLED/data-process/utils/BacksidePulsing_Calibration/Moench014/Moench014_AduToKevMapping_g4_50us_250305.npy'),
|
||||
'pedestalFileName': f'/mnt/sls_det_storage/moench_data/2504_SoleilBeamtime/Moench014_g4_150V_50us/15keV_pedestal_d0_f0_0.raw',
|
||||
'signalFileNames': [f'/mnt/sls_det_storage/moench_data/2504_SoleilBeamtime/Moench014_g4_150V_50us/15keV_signal_d0_f{i}.raw' for i in range(14)],
|
||||
'Roi': [290, 350, 100, 400],
|
||||
'NX': 400, 'NY': 400,
|
||||
'energy': 15, # keV
|
||||
'selectionRange': 2,
|
||||
'headerSize': 56,
|
||||
# 'writeCluster': True,
|
||||
'outputFolder': '/home/xie_x1/MLXID/DataProcess/Samples/MonochromaticFlatField/',
|
||||
'NFrame': 100_000,
|
||||
'NThread': 16,
|
||||
'NChunks': 16,
|
||||
'runName': 'Moench014_15keVFlatField_HighFlux',
|
||||
}
|
||||
|
||||
|
||||
Configs['Moench014_20keVFlatField'] = {
|
||||
'caliFile': np.load('/home/xie_x1/MLED/data-process/utils/BacksidePulsing_Calibration/Moench014/Moench014_AduToKevMapping_g4_50us_250305.npy'),
|
||||
'pedestalFileName': f'/mnt/sls_det_storage/moench_data/2504_SoleilBeamtime/Moench014_g4_150V_50us/20keV_pedestal_d0_f0_0.raw',
|
||||
'signalFileNames': [f'/mnt/sls_det_storage/moench_data/2504_SoleilBeamtime/Moench014_g4_150V_50us/20keV_signal_d0_f{i}.raw' for i in range(14)],
|
||||
'Roi': [270, 350, 100, 310],
|
||||
'NX': 400, 'NY': 400,
|
||||
'energy': 20, # keV
|
||||
'selectionRange': 2,
|
||||
'headerSize': 56,
|
||||
# 'writeCluster': True,
|
||||
'outputFolder': '/home/xie_x1/MLXID/DataProcess/Samples/MonochromaticFlatField/',
|
||||
'NFrame': 100_000,
|
||||
'NThread': 16,
|
||||
'NChunks': 16,
|
||||
'runName': 'Moench014_20keVFlatField_HighFlux',
|
||||
}
|
||||
|
||||
|
||||
Configs['Moench014_25keVFlatField'] = {
|
||||
'caliFile': np.load('/home/xie_x1/MLED/data-process/utils/BacksidePulsing_Calibration/Moench014/Moench014_AduToKevMapping_g4_50us_250305.npy'),
|
||||
'pedestalFileName': f'/mnt/sls_det_storage/moench_data/2504_SoleilBeamtime/Moench014_g4_150V_50us/25keV_pedestal_d0_f0_0.raw',
|
||||
'signalFileNames': [f'/mnt/sls_det_storage/moench_data/2504_SoleilBeamtime/Moench014_g4_150V_50us/25keV_signal_d0_f{i}.raw' for i in range(14)],
|
||||
'Roi': [250, 340, 50, 300],
|
||||
'NX': 400, 'NY': 400,
|
||||
'energy': 25, # keV
|
||||
'selectionRange': 2,
|
||||
'headerSize': 56,
|
||||
# 'writeCluster': True,
|
||||
'outputFolder': '/home/xie_x1/MLXID/DataProcess/Samples/MonochromaticFlatField/',
|
||||
'NFrame': 100_000,
|
||||
'NThread': 16,
|
||||
'NChunks': 16,
|
||||
'runName': 'Moench014_25keVFlatField_HighFlux',
|
||||
}
|
||||
|
||||
Configs['Moench040_10keVFlatField'] = {
|
||||
'caliFile': np.load('/home/xie_x1/MLED/data-process/utils/BacksidePulsing_Calibration/Moench040/Moench040_AduToKevMapping_g4_50us_150V_250423.npy'),
|
||||
'pedestalFileName': f'/mnt/sls_det_storage/moench_data/2504_SoleilBeamtime/Moench040_g4_150V_50us/10keV_pedestal_d0_f0_0.raw',
|
||||
'signalFileNames': [f'/mnt/sls_det_storage/moench_data/2504_SoleilBeamtime/Moench040_g4_150V_50us/10keV_signal_d0_f{i}_0.raw' for i in range(10)],
|
||||
'Roi': [140, 265, 80, 340], ### low flux: x 70-135; high flux: x 140-265
|
||||
'NX': 400, 'NY': 400,
|
||||
'energy': 10, # keV
|
||||
'selectionRange': 2,
|
||||
'headerSize': 56,
|
||||
# 'writeCluster': True,
|
||||
'outputFolder': '/home/xie_x1/MLXID/DataProcess/Samples/MonochromaticFlatField/',
|
||||
'NFrame': 100_000,
|
||||
'NThread': 16,
|
||||
'NChunks': 16,
|
||||
'runName': 'Moench040_10keVFlatField_HighFlux',
|
||||
}
|
||||
|
||||
Configs['Moench040_15keVFlatField'] = {
|
||||
'caliFile': np.load('/home/xie_x1/MLED/data-process/utils/BacksidePulsing_Calibration/Moench040/Moench040_AduToKevMapping_g4_50us_150V_250423.npy'),
|
||||
'pedestalFileName': f'/mnt/sls_det_storage/moench_data/2504_SoleilBeamtime/Moench040_g4_150V_50us/15keV_pedestal_d0_f0_0.raw',
|
||||
'signalFileNames': [f'/mnt/sls_det_storage/moench_data/2504_SoleilBeamtime/Moench040_g4_150V_50us/15keV_signal_d0_f{i}_0.raw' for i in range(10)],
|
||||
'Roi': [80, 220, 0, 400], ### low flux: x 80-220; high flux: x 260-310
|
||||
'NX': 400, 'NY': 400,
|
||||
'energy': 15, # keV
|
||||
'selectionRange': 2,
|
||||
'headerSize': 56,
|
||||
# 'writeCluster': True,
|
||||
'outputFolder': '/home/xie_x1/MLXID/DataProcess/Samples/MonochromaticFlatField/',
|
||||
'NFrame': 100_000,
|
||||
'NThread': 16,
|
||||
'NChunks': 16,
|
||||
'runName': 'Moench040_15keVFlatField_LowFlux',
|
||||
}
|
||||
|
||||
Configs['Moench040_20keVFlatField'] = {
|
||||
'caliFile': np.load('/home/xie_x1/MLED/data-process/utils/BacksidePulsing_Calibration/Moench040/Moench040_AduToKevMapping_g4_50us_150V_250423.npy'),
|
||||
'pedestalFileName': f'/mnt/sls_det_storage/moench_data/2504_SoleilBeamtime/Moench040_g4_150V_50us/20keV_pedestal_d0_f0_0.raw',
|
||||
'signalFileNames': [f'/mnt/sls_det_storage/moench_data/2504_SoleilBeamtime/Moench040_g4_150V_50us/20keV_signal_d0_f{i}_0.raw' for i in range(10)],
|
||||
'Roi': [240, 300, 80, 340], ## low flux: x 80-200; high flux: x 240-300
|
||||
'NX': 400, 'NY': 400,
|
||||
'energy': 20, # keV
|
||||
'selectionRange': 2,
|
||||
'headerSize': 56,
|
||||
# 'writeCluster': True,
|
||||
'outputFolder': '/home/xie_x1/MLXID/DataProcess/Samples/MonochromaticFlatField/',
|
||||
'NFrame': 100_000,
|
||||
'NThread': 16,
|
||||
'NChunks': 16,
|
||||
'runName': 'Moench040_20keVFlatField_HighFlux',
|
||||
}
|
||||
|
||||
Configs['Moench040_25keVFlatField'] = {
|
||||
'caliFile': np.load('/home/xie_x1/MLED/data-process/utils/BacksidePulsing_Calibration/Moench040/Moench040_AduToKevMapping_g4_50us_150V_250423.npy'),
|
||||
'pedestalFileName': f'/mnt/sls_det_storage/moench_data/2504_SoleilBeamtime/Moench040_g4_150V_50us/25keV_pedestal_d0_f0_0.raw',
|
||||
'signalFileNames': [f'/mnt/sls_det_storage/moench_data/2504_SoleilBeamtime/Moench040_g4_150V_50us/25keV_signal_d0_f{i}_0.raw' for i in range(10)],
|
||||
'Roi': [215, 290, 80, 340], ## low flux: x 80-200; high flux: x 215-290
|
||||
'NX': 400, 'NY': 400,
|
||||
'energy': 25, # keV
|
||||
'selectionRange': 2,
|
||||
'headerSize': 56,
|
||||
# 'writeCluster': True,
|
||||
'outputFolder': '/home/xie_x1/MLXID/DataProcess/Samples/MonochromaticFlatField/',
|
||||
'NFrame': 100_000,
|
||||
'NThread': 16,
|
||||
'NChunks': 16,
|
||||
'runName': 'Moench040_25keVFlatField_HighFlux',
|
||||
}
|
||||
|
||||
Configs['260205_CuPbMoWires'] = {
|
||||
'caliFile': np.load('/home/xie_x1/MLED/data-process/utils/BacksidePulsing_Calibration/Moench040/Moench040_AduToKevMapping_g4_50us_150V_250423.npy'),
|
||||
'pedestalFileName': f'/mnt/sls_det_storage/moench_data/xiangyu/260205_FluorescenceSampleTestForMaxIVBeamTime/CuPbMoWires_pedestal_d0_f0_0.raw',
|
||||
'signalFileNames': glob(f'/mnt/sls_det_storage/moench_data/xiangyu/260205_FluorescenceSampleTestForMaxIVBeamTime/CuPbMoWires_signal_d0_f*_0.raw'),
|
||||
'Roi': [100, 300, 100, 400],
|
||||
'NX': 400, 'NY': 400,
|
||||
'energy': 10, # keV; for the model selection
|
||||
'selectionRange': 20, # keV
|
||||
'headerSize': 56,
|
||||
# 'writeCluster': True,
|
||||
'outputFolder': '/home/xie_x1/MLXID/DataProcess/Samples/CuPbMoWires/',
|
||||
'NFrame': 100_000,
|
||||
'NThread': 16,
|
||||
'NChunks': 16,
|
||||
'runName': 'CuPbMoWires',
|
||||
}
|
||||
Configs['260205_CuZnWires'] = {
|
||||
'caliFile': np.load('/home/xie_x1/MLED/data-process/utils/BacksidePulsing_Calibration/Moench040/Moench040_AduToKevMapping_g4_50us_150V_250423.npy'),
|
||||
'pedestalFileName': f'/mnt/sls_det_storage/moench_data/xiangyu/260205_FluorescenceSampleTestForMaxIVBeamTime/CuZnWires_pedestal_d0_f0_0.raw',
|
||||
'signalFileNames': glob(f'/mnt/sls_det_storage/moench_data/xiangyu/260205_FluorescenceSampleTestForMaxIVBeamTime/CuZnWires_signal_d0_f*_0.raw'),
|
||||
'Roi': [100, 300, 100, 400],
|
||||
'NX': 400, 'NY': 400,
|
||||
'energy': 10, # keV; for the model selection
|
||||
'selectionRange': 20, # keV
|
||||
'headerSize': 56,
|
||||
# 'writeCluster': True,
|
||||
'outputFolder': '/home/xie_x1/MLXID/DataProcess/Samples/CuZnWires/',
|
||||
'NFrame': 100_000,
|
||||
'NThread': 16,
|
||||
'NChunks': 16,
|
||||
'runName': 'CuZnWires',
|
||||
}
|
||||
Configs['260205_PdMoCuZnWires'] = {
|
||||
'caliFile': np.load('/home/xie_x1/MLED/data-process/utils/BacksidePulsing_Calibration/Moench040/Moench040_AduToKevMapping_g4_50us_150V_250423.npy'),
|
||||
'pedestalFileName': f'/mnt/sls_det_storage/moench_data/xiangyu/260205_FluorescenceSampleTestForMaxIVBeamTime/PdMoCuZnWires_pedestal_d0_f0_0.raw',
|
||||
'signalFileNames': glob(f'/mnt/sls_det_storage/moench_data/xiangyu/260205_FluorescenceSampleTestForMaxIVBeamTime/PdMoCuZnWires_signal_d0_f*_0.raw'),
|
||||
'Roi': [100, 300, 100, 400],
|
||||
'NX': 400, 'NY': 400,
|
||||
'energy': 10, # keV; for the model selection
|
||||
'selectionRange': 20, # keV
|
||||
'headerSize': 56,
|
||||
# 'writeCluster': True,
|
||||
'outputFolder': '/home/xie_x1/MLXID/DataProcess/Samples/CuZnWires/',
|
||||
'NFrame': 100_000,
|
||||
'NThread': 16,
|
||||
'NChunks': 16,
|
||||
'runName': 'PdMoCuZnWires',
|
||||
}
|
||||
Configs['260205_Screen'] = {
|
||||
'caliFile': np.load('/home/xie_x1/MLED/data-process/utils/BacksidePulsing_Calibration/Moench040/Moench040_AduToKevMapping_g4_50us_150V_250423.npy'),
|
||||
'pedestalFileName': f'/mnt/sls_det_storage/moench_data/xiangyu/260205_FluorescenceSampleTestForMaxIVBeamTime/Screen_pedestal_d0_f0_0.raw',
|
||||
'signalFileNames': glob(f'/mnt/sls_det_storage/moench_data/xiangyu/260205_FluorescenceSampleTestForMaxIVBeamTime/Screen_signal_d0_f*_0.raw'),
|
||||
'Roi': [100, 300, 100, 400],
|
||||
'NX': 400, 'NY': 400,
|
||||
'energy': 10, # keV; for the model selection
|
||||
'selectionRange': 20, # keV
|
||||
'headerSize': 56,
|
||||
# 'writeCluster': True,
|
||||
'outputFolder': '/home/xie_x1/MLXID/DataProcess/Samples/Screen/',
|
||||
'NFrame': 100_000,
|
||||
'NThread': 16,
|
||||
'NChunks': 16,
|
||||
'runName': 'Screen',
|
||||
}
|
||||
Configs['260205_NullSample'] = {
|
||||
'caliFile': np.load('/home/xie_x1/MLED/data-process/utils/BacksidePulsing_Calibration/Moench040/Moench040_AduToKevMapping_g4_50us_150V_250423.npy'),
|
||||
'pedestalFileName': f'/mnt/sls_det_storage/moench_data/xiangyu/260205_FluorescenceSampleTestForMaxIVBeamTime/NullSample_pedestal_d0_f0_0.raw',
|
||||
'signalFileNames': glob(f'/mnt/sls_det_storage/moench_data/xiangyu/260205_FluorescenceSampleTestForMaxIVBeamTime/NullSample_signal_d0_f*_0.raw'),
|
||||
'Roi': [100, 300, 100, 400],
|
||||
'NX': 400, 'NY': 400,
|
||||
'energy': 10, # keV; for the model selection
|
||||
'selectionRange': 20, # keV
|
||||
'headerSize': 56,
|
||||
# 'writeCluster': True,
|
||||
'outputFolder': '/home/xie_x1/MLXID/DataProcess/Samples/Screen/',
|
||||
'NFrame': 60_000,
|
||||
'NThread': 16,
|
||||
'NChunks': 16,
|
||||
'runName': 'NullSample',
|
||||
}
|
||||
Configs['260205_MoSolution'] = {
|
||||
'caliFile': np.load('/home/xie_x1/MLED/data-process/utils/BacksidePulsing_Calibration/Moench040/Moench040_AduToKevMapping_g4_50us_150V_250423.npy'),
|
||||
'pedestalFileName': f'/mnt/sls_det_storage/moench_data/xiangyu/260205_FluorescenceSampleTestForMaxIVBeamTime/MoSolution_pedestal_d0_f0_0.raw',
|
||||
'signalFileNames': glob(f'/mnt/sls_det_storage/moench_data/xiangyu/260205_FluorescenceSampleTestForMaxIVBeamTime/MoSolution_signal_d0_f*_0.raw'),
|
||||
'Roi': [100, 300, 100, 400],
|
||||
'NX': 400, 'NY': 400,
|
||||
'energy': 10, # keV; for the model selection
|
||||
'selectionRange': 20, # keV
|
||||
'headerSize': 56,
|
||||
# 'writeCluster': True,
|
||||
'outputFolder': '/home/xie_x1/MLXID/DataProcess/Samples/Screen/',
|
||||
'NFrame': 100_000,
|
||||
'NThread': 16,
|
||||
'NChunks': 16,
|
||||
'runName': 'MoSolution',
|
||||
}
|
||||
Configs['260205_SbSolution'] = {
|
||||
'caliFile': np.load('/home/xie_x1/MLED/data-process/utils/BacksidePulsing_Calibration/Moench040/Moench040_AduToKevMapping_g4_50us_150V_250423.npy'),
|
||||
'pedestalFileName': f'/mnt/sls_det_storage/moench_data/xiangyu/260205_FluorescenceSampleTestForMaxIVBeamTime/SbSolution_pedestal_d0_f0_0.raw',
|
||||
'signalFileNames': glob(f'/mnt/sls_det_storage/moench_data/xiangyu/260205_FluorescenceSampleTestForMaxIVBeamTime/SbSolution_signal_d0_f*_0.raw'),
|
||||
'Roi': [100, 300, 100, 400],
|
||||
'NX': 400, 'NY': 400,
|
||||
'energy': 10, # keV; for the model selection
|
||||
'selectionRange': 20, # keV
|
||||
'headerSize': 56,
|
||||
# 'writeCluster': True,
|
||||
'outputFolder': '/home/xie_x1/MLXID/DataProcess/Samples/Screen/',
|
||||
'NFrame': 100_000,
|
||||
'NThread': 16,
|
||||
'NChunks': 16,
|
||||
'runName': 'SbSolution',
|
||||
}
|
||||
Configs['260205_In'] = {
|
||||
'caliFile': np.load('/home/xie_x1/MLED/data-process/utils/BacksidePulsing_Calibration/Moench040/Moench040_AduToKevMapping_g4_50us_150V_250423.npy'),
|
||||
'pedestalFileName': f'/mnt/sls_det_storage/moench_data/xiangyu/260205_FluorescenceSampleTestForMaxIVBeamTime/In_pedestal_d0_f0_0.raw',
|
||||
'signalFileNames': glob(f'/mnt/sls_det_storage/moench_data/xiangyu/260205_FluorescenceSampleTestForMaxIVBeamTime/In_signal_d0_f*_0.raw'),
|
||||
'Roi': [100, 300, 100, 400],
|
||||
'NX': 400, 'NY': 400,
|
||||
'energy': 10, # keV; for the model selection
|
||||
'selectionRange': 20, # keV
|
||||
'headerSize': 56,
|
||||
# 'writeCluster': True,
|
||||
'outputFolder': '/home/xie_x1/MLXID/DataProcess/Samples/Screen/',
|
||||
'NFrame': 100_000,
|
||||
'NThread': 16,
|
||||
'NChunks': 16,
|
||||
'runName': '260205_In',
|
||||
}
|
||||
Configs['260205_InCrGreen'] = {
|
||||
'caliFile': np.load('/home/xie_x1/MLED/data-process/utils/BacksidePulsing_Calibration/Moench040/Moench040_AduToKevMapping_g4_50us_150V_250423.npy'),
|
||||
'pedestalFileName': f'/mnt/sls_det_storage/moench_data/xiangyu/260205_FluorescenceSampleTestForMaxIVBeamTime/InCrGreen_pedestal_d0_f0_0.raw',
|
||||
'signalFileNames': glob(f'/mnt/sls_det_storage/moench_data/xiangyu/260205_FluorescenceSampleTestForMaxIVBeamTime/InCrGreen_signal_d0_f*_0.raw'),
|
||||
'Roi': [100, 300, 100, 400],
|
||||
'NX': 400, 'NY': 400,
|
||||
'energy': 10, # keV; for the model selection
|
||||
'selectionRange': 20, # keV
|
||||
'headerSize': 56,
|
||||
# 'writeCluster': True,
|
||||
'outputFolder': '/home/xie_x1/MLXID/DataProcess/Samples/Screen/',
|
||||
'NFrame': 100_000,
|
||||
'NThread': 16,
|
||||
'NChunks': 16,
|
||||
'runName': 'InCrGreen',
|
||||
}
|
||||
Configs['260209_In'] = {
|
||||
'caliFile': np.load('/home/xie_x1/MLED/data-process/utils/BacksidePulsing_Calibration/Moench040/Moench040_AduToKevMapping_g4_50us_150V_250423.npy'),
|
||||
'pedestalFileName': f'/mnt/sls_det_storage/moench_data/xiangyu/260209_FluorescenceSampleTestForMaxIVBeamTime/In_pedestal_d0_f0_0.raw',
|
||||
'signalFileNames': glob(f'/mnt/sls_det_storage/moench_data/xiangyu/260209_FluorescenceSampleTestForMaxIVBeamTime/In_signal_d0_f*_0.raw'),
|
||||
'Roi': [100, 300, 100, 400],
|
||||
'NX': 400, 'NY': 400,
|
||||
'energy': 10, # keV; for the model selection
|
||||
'selectionRange': 20, # keV
|
||||
'headerSize': 56,
|
||||
# 'writeCluster': True,
|
||||
'outputFolder': '/home/xie_x1/MLXID/DataProcess/Samples/Screen/',
|
||||
'NFrame': 40_000,
|
||||
'NThread': 16,
|
||||
'NChunks': 16,
|
||||
'runName': '260209_In',
|
||||
}
|
||||
Configs['260209_InDeepGreen'] = {
|
||||
'caliFile': np.load('/home/xie_x1/MLED/data-process/utils/BacksidePulsing_Calibration/Moench040/Moench040_AduToKevMapping_g4_50us_150V_250423.npy'),
|
||||
'pedestalFileName': f'/mnt/sls_det_storage/moench_data/xiangyu/260209_FluorescenceSampleTestForMaxIVBeamTime/InDeepGreen_pedestal_d0_f0_0.raw',
|
||||
'signalFileNames': glob(f'/mnt/sls_det_storage/moench_data/xiangyu/260209_FluorescenceSampleTestForMaxIVBeamTime/InDeepGreen_signal_d0_f*_0.raw'),
|
||||
'Roi': [100, 300, 100, 400],
|
||||
'NX': 400, 'NY': 400,
|
||||
'energy': 10, # keV; for the model selection
|
||||
'selectionRange': 20, # keV
|
||||
'headerSize': 56,
|
||||
# 'writeCluster': True,
|
||||
'outputFolder': '/home/xie_x1/MLXID/DataProcess/Samples/Screen/',
|
||||
'NFrame': 40_000,
|
||||
'NThread': 16,
|
||||
'NChunks': 16,
|
||||
'runName': '260209_InDeepGreen',
|
||||
}
|
||||
Configs['260209_InBrilliantBlue'] = {
|
||||
'caliFile': np.load('/home/xie_x1/MLED/data-process/utils/BacksidePulsing_Calibration/Moench040/Moench040_AduToKevMapping_g4_50us_150V_250423.npy'),
|
||||
'pedestalFileName': f'/mnt/sls_det_storage/moench_data/xiangyu/260209_FluorescenceSampleTestForMaxIVBeamTime/InBrilliaBluent_pedestal_d0_f0_0.raw',
|
||||
'signalFileNames': glob(f'/mnt/sls_det_storage/moench_data/xiangyu/260209_FluorescenceSampleTestForMaxIVBeamTime/InBrilliaBluent_signal_d0_f*_0.raw'),
|
||||
'Roi': [100, 300, 100, 400],
|
||||
'NX': 400, 'NY': 400,
|
||||
'energy': 10, # keV; for the model selection
|
||||
'selectionRange': 20, # keV
|
||||
'headerSize': 56,
|
||||
# 'writeCluster': True,
|
||||
'outputFolder': '/home/xie_x1/MLXID/DataProcess/Samples/Screen/',
|
||||
'NFrame': 40_000,
|
||||
'NThread': 16,
|
||||
'NChunks': 16,
|
||||
'runName': '260209_InBrilliantBlue',
|
||||
}
|
||||
Configs['260209_AgNaplesYellow'] = {
|
||||
'caliFile': np.load('/home/xie_x1/MLED/data-process/utils/BacksidePulsing_Calibration/Moench040/Moench040_AduToKevMapping_g4_50us_150V_250423.npy'),
|
||||
'pedestalFileName': f'/mnt/sls_det_storage/moench_data/xiangyu/260209_FluorescenceSampleTestForMaxIVBeamTime/AgNaplesYellow_pedestal_d0_f0_0.raw',
|
||||
'signalFileNames': glob(f'/mnt/sls_det_storage/moench_data/xiangyu/260209_FluorescenceSampleTestForMaxIVBeamTime/AgNaplesYellow_signal_d0_f*_0.raw'),
|
||||
'Roi': [100, 300, 100, 400],
|
||||
'NX': 400, 'NY': 400,
|
||||
'energy': 10, # keV; for the model selection
|
||||
'selectionRange': 20, # keV
|
||||
'headerSize': 56,
|
||||
# 'writeCluster': True,
|
||||
'outputFolder': '/home/xie_x1/MLXID/DataProcess/Samples/Screen/',
|
||||
'NFrame': 40_000,
|
||||
'NThread': 16,
|
||||
'NChunks': 16,
|
||||
'runName': '260209_AgNaplesYellow',
|
||||
}
|
||||
Configs['260209_Ag'] = {
|
||||
'caliFile': np.load('/home/xie_x1/MLED/data-process/utils/BacksidePulsing_Calibration/Moench040/Moench040_AduToKevMapping_g4_50us_150V_250423.npy'),
|
||||
'pedestalFileName': f'/mnt/sls_det_storage/moench_data/xiangyu/260209_FluorescenceSampleTestForMaxIVBeamTime/Ag_pedestal_d0_f0_0.raw',
|
||||
'signalFileNames': glob(f'/mnt/sls_det_storage/moench_data/xiangyu/260209_FluorescenceSampleTestForMaxIVBeamTime/Ag_signal_d0_f*_0.raw'),
|
||||
'Roi': [100, 300, 100, 400],
|
||||
'NX': 400, 'NY': 400,
|
||||
'energy': 10, # keV; for the model selection
|
||||
'selectionRange': 20, # keV
|
||||
'headerSize': 56,
|
||||
# 'writeCluster': True,
|
||||
'outputFolder': '/home/xie_x1/MLXID/DataProcess/Samples/Screen/',
|
||||
'NFrame': 40_000,
|
||||
'NThread': 16,
|
||||
'NChunks': 16,
|
||||
'runName': '260209_Ag',
|
||||
}
|
||||
+1
-1
@@ -245,7 +245,7 @@ def _processFrames(idxChunk): ### for both single and double photon events, usin
|
||||
offset = (headerSize + idxFrame * (NX * NY + headerSize)) * 2
|
||||
signalAduFrame = np.fromfile(f'{signalFileNames[idxFile]}', dtype=np.uint16, offset=offset, count=NX * NY).astype(np.int32).reshape(NX, NY)
|
||||
except Exception as e:
|
||||
print(f'Error reading frame {idxFrame} from file {signalFileNames[idxFile]}: {e}, stop processing this chunk ({startFrame}-{endFrame})')
|
||||
print(f'Error reading frame {idxFrame+startFrame} from file {signalFileNames[idxFile]}: {e}, stop processing this chunk ({startFrame}-{endFrame})')
|
||||
return _hists
|
||||
|
||||
signalAduFrame = signalAduFrame - _pedestalAduFrame
|
||||
|
||||
Reference in New Issue
Block a user