NuRadioReco.modules.channelTimeWindow module

class NuRadioReco.modules.channelTimeWindow.channelTimeWindow[source]

Bases: object

Set trace outside time window to zero.

Methods

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

Parameters:

begin

end

begin(debug=False)[source]
run(evt, station, det, window=None, window_function='rectangular', around_pulse=True, window_width=50, window_rise_time=20)[source]
Parameters:
evt, station, det

Event, Station, Detector

window: list or None

[time_window_start, time_window_end] in which the signal should be kept (in units of time)

window_function: string

select window function * rectangular * hanning

around_pulse: float or None

if not None: specifies time interval around ‘signal_time’, if this option is set, ‘window’ is ignored

window_width: float

if around_pulse is set, defines the time width of the trace where the filter is 1.

window_rise_time: float

if window_function is not rectangular, defines the rise time where the filter goes from 0 to 1.

end()[source]