simtools-analyze-flasher-response#
Plot gain-resolved pulse response from a simulated flasher intensity sequence.
Analyze raw HG and LG calibration waveforms from a flasher intensity sequence. The application writes per-event and summary ECSV tables and a PDF containing peak, ADC sum, width, and mean-waveform plots. Error bars show event-to-event standard deviations; the peak curve is the mean of individual-event peaks.
Supply one file per intensity, or one file containing all steps in declared
order. events_per_level must match the actual counts; one value broadcasts to
all steps. Analyze only scan files containing the declared calibration events.
The illumination axis is the requested photon count, not detected p.e.
Monitoring pedestals are converted to per-sample values separately for both gains. If monitoring is unavailable, provide an explicit per-sample pedestal. There is no automatic baseline estimate from possibly saturated pulse tails. A pulse lacking width crossings inside the readout window is flagged as truncated; its ADC sum covers only the recorded window.
Command line arguments#
options#
- –help
show this help message and exit
- –simtel_files
One file per intensity, or one ordered scan file
Required.
- –illumination
Requested photons per intensity step, in file/event order
Required.
- –events_per_level
Expected events per step; one count broadcasts to all steps
Required.
- –pixels
Pixel IDs to analyze independently
Default: [0].
- –pedestal
Explicit per-sample pedestal for both gains; otherwise monitoring
- –width_fraction
Fraction of pulse peak defining its width
Default: 0.95.
- –threshold_adc
Absolute width threshold above pedestal, overriding the fraction
simulation model#
- –telescope
telescope model name (e.g., LSTN-01, SSTS-design, …)
application#
- –show_options
Print available values for a supported option and exit.
Workflow#
Run the configurations under tests/integration_tests/config/ with
simtools-run-application --config_file <workflow.yml> --replace __OUTPUT__=<directory>.
The direct-injection and full-simulation configurations run the existing flasher
application followed by the analyzer. Use more events and intensity levels for
statistical studies. Synthetic response tables test software behavior; comparison
with measured curves requires measured tables and matching camera settings.
The saturation scan workflows record a longer readout window to include broadened
pulses. For whole-camera bright flashes, set MAX_PHOTOELECTRONS=25000000 before
running the workflow; the integration test sets this capacity automatically.
The full-simulation smoke test uses photon bunches of 100 for speed. Use bunches
of one and more events when studying photon statistics or comparing measurements.
The direct-injection workflow also writes a matched linear/clipped control under
linear/, with the non-linear pulse tables disabled.
LST direct_injection saturation scan#
Simulate four illumination levels and analyze both raw gain channels.
Application: simtools-simulate-flasher
Integration test: validate_saturation_direct_injection_lst.yml
Command
simtools-simulate-flasher --config tests/integration_tests/config/validate_saturation_direct_injection_lst.yml
Configuration
run_mode: direct_injection
light_source_type: flat_fielding
telescopes:
- LSTN-01
model_version: 8.0.0
site: North
run_number: 100
number_of_events: 2
flasher_photons:
- 100
- 500
- 3000
- 10000
label: saturation
output_path: __OUTPUT__/simulation
sim_telarray_seed:
- 101
- 102
overwrite_model_parameters: '{"LSTN-01": {"fadc_bins": 120, "fadc_sum_bins": 100}}'