NuRadioReco.modules.io.eventReader module

class NuRadioReco.modules.io.eventReader.eventReader[source]

Bases: object

read events from file

Methods

begin(filename[, read_detector, log_level])

Setup function for the eventReader module

get_detector()

If read_detector was set True in the begin() function, this function return the detector description (assuming there is one in the files).

get_header()

returns the header information of all events, useful to get a quick overview of all events without looping through all events

end

run

begin(filename, read_detector=False, log_level=30)[source]

Setup function for the eventReader module

Parameters:
filename: array if strings

names of the input files

read_detector: boolean
If True, the eventReader will parse the detector description and event event headers

in the event files. This is necessary to use the get_detector functions

log_level: logging enum
run()[source]
end()[source]
get_header()[source]

returns the header information of all events, useful to get a quick overview of all events without looping through all events

get_detector()[source]

If read_detector was set True in the begin() function, this function return the detector description (assuming there is one in the files). If several files with different detectors are read, the detector for the last returned event is given.