detector_counts
grb_trigger.simulations.detector_counts(bkg, events)Inject events into a background time series.
Parameters
bkgtuple of numpy.ndarray-
(low, high)background counts. eventslist of dict-
Each dict has the keys
"signal"((low, high)arrays),"start_bin"(int, > 0),"type"(str, e.g."grb") and optionally"is_grb"(0 or 1).
Returns
low, highnumpy.ndarray-
Copies of the background with all events added.
Raises
- ValueError
-
If
eventsis empty, channel lengths differ, an event does not fit in the background, orstart_binis not positive.
See Also