icecube.genie_reader.I3GenieSystWeightTracReader module

class icecube.genie_reader.I3GenieSystWeightTracReader.I3GenieSystWeightTracReader(context)

Bases: I3Module

I3GenieSystWeightTracReader module.

Parameters:
  • SystWghtFileNameList (list of str, default=None) – List of names for the GENIE reweight files to use.

  • SystWghtDictName (str, default="I3GenieSystWeightDict") – Name of the output systematic weight dictionary.

Configure()

Configures I3GenieSystWeightTracReader:

sets frame index to zero, opens all input GENIE systematic weight files, sets number of events.

DAQ(frame)

Gets systematic weight lists for all povided GENIE ReWeight files, stores them in dictionary and then writes it to a DAQ frame (I3GenieSystWeightDict).

Finish()

Finish, check if number of processed frames matches to the number obtained from the files during configuration.

get_systematic(syst_name, syst_iter, event_number)

Reads systematic weights array for systematic with of a given name for a specified event number.