NuRadioReco.modules.ARA.triggerSimulator module
- class NuRadioReco.modules.ARA.triggerSimulator.triggerSimulator[source]
Bases:
object
Calculates the trigger of an event. Uses the ARA trigger logic of a tunnel diode. Implementation similar to PyRex by Ben Hokanson-Fasig/
Methods
has_triggered
(channel)Check if the detector system triggers on a given channel.
run
(evt, station, det[, power_threshold, ...])simulate ARA trigger logic
end
- has_triggered(channel)[source]
Check if the detector system triggers on a given channel. Passes the signal through the tunnel diode. Then compares the maximum and minimum values to a tunnel diode noise signal. Triggers if one of the maximum or minimum values exceed the noise mean +/- the noise rms times the power threshold.
- Parameters:
- channelChannel
Channel object on which to test the trigger condition.
- Returns:
- boolean
Whether or not the antenna triggers on channel.
- run(evt, station, det, power_threshold=6.5, coinc_window=110, number_concidences=3, triggered_channels=None, power_mean=None, power_std=None, trigger_name='default_integrated_power')[source]
simulate ARA trigger logic
- Parameters:
- evt: Event
The event on which to run the module
- station: Station
The station on which to run the module
- det: Detector or GenericDetector
The detector description
- power_threshold: float
The factor of sigma that the signal needs to exceed the noise
- coinc_window: float
time window in which number_concidences channels need to trigger
- number_concidences: int
number of channels that are requried in coincidence to trigger a station
- triggered_channels: array of ints
channels ids that are triggered on
- power_meanfloat
Parameter extracted in ARA from noise. If not given, it is calculated from generic noise
- power_stdfloat
Parameter extracted in ARA from noise. If not given, it is calculated from generic noise
- trigger_name: string
a unique name of this particular trigger