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')[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

end()[source]