"A more detailed view into the distribution of pulse heights as a function of TOF, e.g. to indicate whether the spectrometer transmission may depend on the kinetic energy and/or (in the case of ions) mass."
]
},
{
"cell_type": "markdown",
"metadata": {},
...
...
%% Cell type:code id: tags:
``` python
# Data selection parameters.
run=104# Run ID.
in_folder='/gpfs/exfel/exp/SQS/202101/p002535/raw'# Partial input path appended with run ID.
out_folder='/gpfs/exfel/exp/SQS/202101/p002535/scratch/cal_test'# Full path to output folder.
calib_config_path='/gpfs/exfel/exp/SQS/202101/p002535/usr/config_board2+4.yaml'# Path to correction and transform configuration
# These parameters are required by xfel-calibrate but ignored in this notebook.
cycle=''# Proposal cycle, currently not used.
cal_db_timeout=0# Calibration DB timeout, currently not used.
cal_db_interface='foo'# Calibration DB interface, currently not used.
karabo_da='bar'# Karabo data aggregator name, currently not used
# Output parameters.
karabo_id='SQS_REMI_DLD6'# Karabo device ID root for virtual output device.
proposal=''# Proposal, leave empty for auto detection based on in_folder
out_aggregator='REMI01'# Aggregator name for output files.
out_seq_len=5000# Number of trains per sequence file in output.
det_device_id='{karabo_id}/DET/{det_name}'# Karabo device ID for virtual output device.
det_output_key='output'# Pipeline name for fast data output.
save_raw_triggers=True# Whether to save trigger position in files.
save_raw_edges=True# Whether to save digitized edge positions in files.
save_raw_amplitudes=True# Whether to save analog pulse amplitudes in files.
save_rec_signals=True# Whether to save reconstructed signals (u1-w2, mcp) in files.
save_rec_hits=True# Whether to save reoncstructed hits (x,y,t,m) in files.
chunks_triggers=[500]# HDF chunk size for triggers.
chunks_edges=[500,7,50]# HDF chunk size for edges.
chunks_amplitudes=[500,7,50]# HDF chunk size for amplitudes.
chunks_hits=[50,50]# HDF chunk size for hits.
chunks_signals=[50,50]# HDF chunk size for signals.
A more detailed view into the distribution of pulse heights as a function of TOF, e.g. to indicate whether the spectrometer transmission may depend on the kinetic energy and/or (in the case of ions) mass.
Each hit may be reconstructed by one of 19 different methods. These differ by the number of real signals across the channels, which could be combined to form the hit. Each of these methods is designed by a number between `0` and `19` (with empty hits using `-1`), which can be found in the `m` key of a hit, e.g.:
*`0`: All six anode signals and the corresponding MCP signal were found.
*`4`: One signal on layer `u` is missing, all other signals for this event were found.
*`18`: Only one anode signal on each layer was found and the MCP signal is missing. There is no way to check whether this combination of signals is actually valid.
* For hits reconstructed with method `> 10`, extra attention should be given to ensure they add meaningful signal.
* Any method `> 14` has to considered risky, because neither a time sum nor the position can be checked. If the scale factors and/or `w` shift are not correct, then the number of events reconstructed with the risky methods will increase. They will most likely be *ghost hits*, which do not correspond to actual impacts on the detector.