-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improvements to simulate for trigger rate #1007
Improvements to simulate for trigger rate #1007
Conversation
Signed-off-by: Victor Barbosa Martins <victorbarbosamartins@yahoo.com.br>
Signed-off-by: Victor Barbosa Martins <victorbarbosamartins@yahoo.com.br>
Signed-off-by: Victor Barbosa Martins <victorbarbosamartins@yahoo.com.br>
…simtel" Signed-off-by: Victor Barbosa Martins <victorbarbosamartins@yahoo.com.br>
Signed-off-by: Victor Barbosa Martins <victorbarbosamartins@yahoo.com.br>
Signed-off-by: Victor Barbosa Martins <victorbarbosamartins@yahoo.com.br>
Signed-off-by: Victor Barbosa Martins <victorbarbosamartins@yahoo.com.br>
This comment has been minimized.
This comment has been minimized.
Signed-off-by: Victor Barbosa Martins <victorbarbosamartins@yahoo.com.br>
Signed-off-by: Victor Barbosa Martins <victorbarbosamartins@yahoo.com.br>
Signed-off-by: Victor Barbosa Martins <victorbarbosamartins@yahoo.com.br>
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A couple of minor items, see below.
Did you check the trigger rates with the results we had before? 4 kHz seems to be quite low for an MST - I remember it to be in the rage of 10-15 kHz. Note also that bias curves are calculates as a function of trigger threshold setting (depending on the trigger type; e.g., as function of discriminator threshold) and not as function of energy. In bias curves, we also include pure NSB trigger (which gives us the threshold). |
Signed-off-by: Victor Barbosa Martins <victorbarbosamartins@yahoo.com.br>
I believe it is because we used to use the threshold at 8 GeV before and not it is at 10 GeV, but I will double check. The simtools trigger rate tool was already validated by the rht tool, so I tend to believe the results at this first glance. I am not aware of the definitions you mentioned of "discriminator threshold" and threshold estimated from the NSB. I followed your explanation here #1001 (comment). Could you point me to some references? Ok, so no need for an application to estimate the bias curve for now. |
Hi @GernotMaier, thank you for the comments. Please let me know if something is missing and you can have a look again once the tests pass. |
The important point is that we want to get an understand how telescope triggers change with changes in the setting of the trigger parameters (e.g., trigger discriminator thresholds (or sums), patterns, multiplicities). So will need the trigger rate as function of those parameters for both proton and NSB triggers. I've looked again into KB's results (here and those results give:
So LST/MST look fine; SST a bit high. (the 10-15 kHz for the MST I had in mind was protons + NSB trigger). |
Signed-off-by: Victor Barbosa Martins <victorbarbosamartins@yahoo.com.br>
This comment has been minimized.
This comment has been minimized.
1 similar comment
Analysis Details0 IssuesCoverage and DuplicationsProject ID: gammasim_simtools_AY_ssha9WiFxsX-2oy_w |
I used the very same simulation results for the SST here as input to the rht tool and got 1.38 KHz, hence compatible with the simtools trigger estimate. The differences are either configuration or model:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for checking the SST rates. All good now and ready to merge.
Thanks! |
Summary:
This PR improves and tests the
simtools-simulate-showers-for-trigger-rates
application. It includes also a new file in the DB (see details below). Related to #1001.Small history of the development:
simtools-simulate-showers-for-trigger-rates
for a very concentrated energetic (1TeV) beam of protons with--array_layout_name 1MST
has never lead to triggered events (always 0).array_triggers
which points to a filearray_trigger_prod5_lapalma_extended.dat
where the array trigger conditions are defined. In this file, every trigger condition is defined starting with at least 2 telescopes, which explains why it did not work to use this trigger condition for a single telescope;array_trigger_1MST_lapalma.dat
with a single lineTrigger 1 of 1
replacing the previous list of trigger conditions and uploaded this file to our currently default DBStaging-CTA-Simulation-Model-v0-3-0
;array_triggers
to point to the new file in the DB.simtools-simulate-showers-for-trigger-rates
with this commandsimtools-simulate-showers-for-trigger-rates --array_layout_name 1MST --primary proton --scatter_x 5 --scatter_y 5 --energy_min 1 --energy_max 2 --site North --nruns 1 --nevents 1 --view_cone 1 --submit_command local --output_path 1MST --use_plain_output_path --run_number 1
and calculated the trigger rate of the resulting simulation withsimtools-calculate-trigger-rate --simtel_file_names simtools-output/simulate_showers_for_trigger_rates/simtel-data/North/proton/data/run000001_proton_za020deg_azm000deg_North_1MST_simulate_showers_for_trigger_rates.simtel.zst
and finally got all of the simulated events also triggered by the single MST at the center of the array.Statistics of the simulation and trigger rate estimate
MST (North)
time simtools-simulate-showers-for-trigger-rates --array_layout_name 1MST --primary proton --energy_min 0.01 --energy_max 300 --scatter_x 1500 --scatter_y 0 --site North --nruns 1 --nevents 10000 --view_cone 10 --submit_command local --output_path 1MST --use_plain_output_path --run_number 1
. Total time real 28m1.828ssimtools-calculate-trigger-rate --simtel_file_names simtools-output/simulate_showers_for_trigger_rates/simtel-data/North/proton/data/run000001_proton_za020deg_azm000deg_North_1MST_simulate_showers_for_trigger_rates.simtel.zst
. Trigger rate 3.9522e+03 ± 4.8656e+02 HzLST (North)
time simtools-simulate-showers-for-trigger-rates --array_layout_name 1LST --primary proton --energy_min 0.01 --energy_max 300 --scatter_x 1500 --scatter_y 0 --site North --nruns 1 --nevents 10000 --view_cone 10 --submit_command local --output_path 1LST --use_plain_output_path --run_number 2
. Total time real 41m31.767ssimtools-calculate-trigger-rate --simtel_file_names simtools-output/simulate_showers_for_trigger_rates/simtel-data/North/proton/data/run000002_proton_za020deg_azm000deg_North_1LST_simulate_showers_for_trigger_rates.simtel.zst
. Trigger rate 4.7178e+03 ± 4.8932e+02 HzSST (South)
time simtools-simulate-showers-for-trigger-rates --array_layout_name 1SST --primary proton --energy_min 0.01 --energy_max 300 --scatter_x 1500 --scatter_y 0 --site South --nruns 1 --nevents 10000 --view_cone 10 --submit_command local --output_path 1SST --use_plain_output_path --run_number 3
. Total time real 33m12.787ssimtools-calculate-trigger-rate --simtel_file_names simtools-output/simulate_showers_for_trigger_rates/simtel-data/South/proton/data/run000003_proton_za020deg_azm000deg_South_1SST_simulate_showers_for_trigger_rates.simtel.zst
. Trigger rate 1.3247e+03 ± 1.9122e+02 HzBias curve
Should we perhaps create an application to directly generate bias curves @GernotMaier ?