NuRadioReco.modules.efieldToVoltageConverter module

class NuRadioReco.modules.efieldToVoltageConverter.efieldToVoltageConverter(log_level=0)[source]

Bases: object

Convolves electric field with antenna response to get the voltage output of the antenna

Module that should be used to convert simulations to data. It assumes that at least one efield is given per channel as input. It will convolve the electric field with the corresponding antenna response for the incoming direction specified in the channel object. The station id, defines antenna location and antenna type.

Methods

begin([debug, uncertainty, time_resolution, ...])

Begin method, sets general parameters of module

end

run

begin(debug=False, uncertainty=None, time_resolution=0.1, pre_pulse_time=200, post_pulse_time=200)[source]

Begin method, sets general parameters of module

Parameters:
debug: bool

enable/disable debug mode (default: False -> no debug output)

uncertainty: dictionary (default: {})

optional argument to specify systematic uncertainties. currently supported keys

  • ‘sys_dx’: systematic uncertainty of x position of antenna

  • ‘sys_dy’: systematic uncertainty of y position of antenna

  • ‘sys_dz’: systematic uncertainty of z position of antenna

  • ‘sys_amp’: systematic uncertainty of the amplifier aplification,

    specify value as relative difference of linear gain

  • ‘amp’: statistical uncertainty of the amplifier aplification,

    specify value as relative difference of linear gain

time_resolution: float

time resolution of shifting pulse times

pre_pulse_time: float

length of empty samples that is added before the first pulse

post_pulse_time: float

length of empty samples that is added after the simulated trace

run(evt, station, det, channel_ids=None)[source]
end()[source]
NuRadioReco.modules.efieldToVoltageConverter.calculate_time_shift_for_cosmic_ray(det, station, efield, channel_id)[source]

Calculate the time shift for a cosmic ray event

Parameters:
detDetector
stationStation
efieldElectricField
Returns:
float

time shift in ns