NuRadioReco.modules.trigger.simpleThreshold module

NuRadioReco.modules.trigger.simpleThreshold.get_threshold_triggers(trace, threshold)[source]

Calculats a simple threshold trigger.

Parameters:
trace: array of floats

The signal trace

threshold: float

The threshold

Returns:
triggered bins: array of bools

The bins where the trigger condition is satisfied

class NuRadioReco.modules.trigger.simpleThreshold.triggerSimulator[source]

Bases: object

Calculate a very simple amplitude trigger.

Methods

run(evt, station, det[, threshold, ...])

Simulate simple trigger logic, no time window, just threshold in all channels

begin

end

begin()[source]
run(evt, station, det, threshold=0.06, number_concidences=1, triggered_channels=None, coinc_window=200, trigger_name='default_simple_threshold', pre_trigger_time=None)[source]

Simulate simple trigger logic, no time window, just threshold in all channels

Parameters:
evt: Event

The event to run the module on

station: Station

The station to run the module on

det: Detector

The detector description

number_concidences: int

number of channels that are requried in coincidence to trigger a station

threshold: float or dict of floats

threshold above (or below) a trigger is issued, absolute amplitude a dict can be used to specify a different threshold per channel where the key is the channel id

triggered_channels: array of ints or None

channels ids that are triggered on, if None trigger will run on all channels

coinc_window: float

time window in which number_concidences channels need to trigger

trigger_name: string

a unique name of this particular trigger

pre_trigger_time: float or dict of floats

Defines the amount of trace recorded before the trigger time. This module does not cut the traces, but this trigger property is later used to trim traces accordingly. if a dict is given, the keys are the channel_ids, and the value is the pre_trigger_time between the start of the trace and the trigger time. if only a float is given, the same pre_trigger_time is used for all channels If none, the default value of the Trigger class is used, which is currently 55ns.

end()[source]