NuRadioReco.modules.channelTemplateCorrelation module

class NuRadioReco.modules.channelTemplateCorrelation.channelTemplateCorrelation(template_directory)[source]

Bases: object

Calculates correlation of waveform with neutrino/cr templates

Methods

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

Parameters:

begin

end

match_sampling

begin(debug=False)[source]
match_sampling(ref_template, resampling_factor)[source]
run(evt, station, det, channels_to_use=None, cosmic_ray=False, n_templates=1)[source]
Parameters:
evt: Event

Event to run the module on

station: Station

Station to run the module on

det: Detector

The detector description

channels_to_use: List of int (default: [0, 1, 2, 3])

List of channel IDs for which the template correlation shall be calculated

cosmic_ray: bool

Switch for cosmic ray and neutrino analysis. Default is neutrino templates.

n_templates: int

default is 1: use just on standard template for all channels if n_templates is larger than one multiple templates are used and the average cross correlation for all templates is calculated. The set of templates contains several coreas input pulses and different incoming directions. The index first loops first over 6 different coreas pulses with different frequency content and then over azimuth angles of 0, 22.5 and 45 degree and then over zenith angles of 60, 50 and 70 degree

end()[source]