NuRadioReco.modules.io.coreas.readCoREASShower module
- class NuRadioReco.modules.io.coreas.readCoREASShower.readCoREASShower[source]
Bases:
object
Methods
begin
(input_files[, det, logger_level, ...])begin method
run
()Reads in a CoREAS file and returns one event containing all simulated observer positions as stations.
end
- begin(input_files, det=None, logger_level=0, set_ascending_run_and_event_number=False)[source]
begin method
initialize readCoREASShower module
- Parameters:
- input_files: input files
list of coreas hdf5 files
- det: genericDetector object
If a genericDetector is passed, the stations from the CoREAS file will be added to it and the run method returns both the event and the detector
- logger_level: string or logging variable
Set verbosity level for logger (default: logging.NOTSET)
- set_ascending_run_and_event_number: bool
If set to True the run number and event id is set to self.__ascending_run_and_event_number instead of beeing taken from the simulation file. The value is increases monoton. This can be used to avoid ambiguities values (default: False)
- run()[source]
Reads in a CoREAS file and returns one event containing all simulated observer positions as stations. A detector description is not needed to run this module. If a genericDetector is passed to the begin method, the stations are added to it and the run method returns both the event and the detector.