simtools-plot-simulated-event-distributions#

Plot simulated event distributions for shower and/or triggered event data.

Reads reduced event data files and generate histogram plots e.g. for energy or core distance distributions.

Command line arguments

trigger_histogram_file (str, required)

Precomputed trigger-histogram HDF5 file from simtools-write-trigger-histograms.

array_layout_name (str, optional)

Optional array layout name to select from a precomputed trigger-histogram HDF5 file.

output_path (str, required)

Output directory for the generated plots.

Examples

Generate plots from a precomputed trigger-histogram file:

simtools-plot-simulated-event-distributions \
    --trigger_histogram_file trigger_histograms.hdf5 \
    --array_layout_name alpha \
    --output_path simtools_output

Command line arguments#

options#

–help

show this help message and exit

–trigger_histogram_file

Precomputed trigger-histogram HDF5 file from simtools-write-trigger-histograms.

Required.

–array_layout_name

Optional array layout name to select from a precomputed trigger-histogram file. If omitted, plot all layouts available in the file.

application#

–show_options

Print available values for a supported option and exit.

Example#

Plot simulated gamma-ray event distributions#

Visualize energy, core-distance, angular-distance, and trigger distributions from a North-array histogram file.

Application: simtools-plot-simulated-event-distributions

Integration test: plot_simulated_event_distributions.yml

Command

simtools-plot-simulated-event-distributions --config tests/integration_tests/config/plot_simulated_event_distributions.yml

Configuration

trigger_histogram_file: ${generated:gamma_diffuse_run000010_za20deg_azm000deg_North_CTAO-North-Alpha_7.0.0_test.trigger_histograms.hdf5}
array_layout_name: CTAO-North-Alpha
output_path: simtools-output