Introduce possibility to simulate time-based with constant time between events. Refs #1792.
In time-based simulations, the time between two subsequent events is sampled from an exponential distribution (Poisson process). For debug reasons, it was requested to have the possibility to generate constant time intervals between events - see #1792. This MR introduces the required functionality.
For this, a new enum cbm::sim::TimDist was introduced, which can have the two value Poisson and Uniform. It has to be specified when specifying an input to the digitization run, as can be seen in run_digi.C:
CbmDigitization run;
cbm::sim::TimeDist timeDist = cbm::sim::TimeDist::Uniform;
run.AddInput(0, evntFile, timeDist, eventRate);
Merge request reports
Activity
changed milestone to %OCT23
added Simulation label
requested review from @v.singhal
assigned to @f.uhlig
you forgot to add the file Defs.h.
- Resolved by Florian Uhlig
added 1 commit
- 677c580f - Add Defs.h, forgotten in the previous commit
added 1 commit
- 43fafe68 - License in Defs.h; medmber initialisation in CbmDigitization.
Dear @f.uhlig, @p.-a.loizeau, @c.muentz, @m.deveaux, @v.friese,
you have been identified as code owner of at least one file which was changed with this merge request.
Please check the changes and approve them or request changes.
added CodeOwners label
added 27 commits
-
43fafe68...55cdf48c - 23 commits from branch
computing:master
- 46f20daf - Introduce possibility to simulate time-based with constant time between events. Refs #1792.
- c14af8ae - Install header-only file
- 8c97fdc1 - Add Defs.h, forgotten in the previous commit
- 8227fc35 - License in Defs.h; medmber initialisation in CbmDigitization.
Toggle commit list-
43fafe68...55cdf48c - 23 commits from branch
Since @v.singhal approved this MR (added
) I will merge it.enabled an automatic merge when the pipeline for 8227fc35 succeeds
mentioned in merge request !1270 (merged)
mentioned in merge request !2041 (merged)