NuRadioReco.modules.io.snowshovel.readARIANNADataCalib module

class NuRadioReco.modules.io.snowshovel.readARIANNADataCalib.readARIANNAData[source]

Bases: object

Reads ARIANNA data as preprocessed in snowShovel. Can read RawData, FPNCorrectedData and CalibratedData.

Methods

begin(input_files[, trigger_types, ...])

read FPN and gain calibrated ARIANNA data (snowshovel data format)

end

run

begin(input_files, trigger_types=None, time_interval=None, tree='AmpOutData', run_number=None, event_ids=None, random_iterator=False)[source]

read FPN and gain calibrated ARIANNA data (snowshovel data format)

Parameters:
input_files: array of strings

a list of input files

trigger_types: list of strings or None

only events that have the specified trigger types are read. The trigger types can [‘thermal’, ‘forced’]. Default is None which means that all events are read regardless of their trigger type

time_interval: [datetime, datetime] or None

all events outside of the specified time interval are skipped Default is None, i.e., all events are read

tree: string
low level reconstruction stage. Available options are
  • RawData: the raw ADC counts

  • FPNSubData: FPN subtracted data (still ADC counts but with mean zero)

  • AmpOutData: FPN and gain calibrated data (default)

run_number: int or None

run number, all events with a different run number will be skipped. Default is None which means that all events are read in

event_ids: dictionary or None

specify any combination of run and event ids, all other events will be skipped. key is the run id, values are the event ids Default is None which means that all events are read in

random_iterator: bool (default False)

if True walk through event in a random order

run()[source]
end()[source]