NuRadioReco.modules.io.NuRadioRecoio module
- class NuRadioReco.modules.io.NuRadioRecoio.NuRadioRecoio(filenames, parse_header=True, parse_detector=True, fail_on_version_mismatch=True, fail_on_minor_version_mismatch=False, max_open_files=10, log_level=0, buffer_size=104857600)[source]
Bases:
object
Initialize NuRadioReco io
- Parameters:
- filenames: string or list of strings
the input file/files
- parse_header: boolean
If True, the event headers are parsed and can be accessed through the get_header() function
- parse_detector: boolean
If True, detector information in the files is parsed and can be accessed through the get_detector() function
- fail_on_version_mismatch: boolean
Controls if the module should try to read files with a different major version
- fail_on_minor_version_mismatch: boolean
Controls if the module should try to read files with a different minor version
- max_open_files: int
the maximum number of files that remain open simultaneously
- log_level: int, default=logging.NOTSET
Override the log level of this class
- buffer_size: int
the size of the read buffer in bytes (default 100MB)
Methods
If parse_detector was set True in the __init__() function, this function return the detector description (assuming there is one in the files).
returns a list of (run, eventid) tuples of all events contained in the data file
close_files
get_event
get_event_i
get_events
get_filenames
get_header
get_n_events
openFile
- get_event_ids()[source]
returns a list of (run, eventid) tuples of all events contained in the data file