i3extractor

Base I3Extractor class(es).

class graphnet.data.extractors.i3extractor.I3Extractor(name)[source]

Bases: ABC, Logger

Base class for extracting information from physics I3-frames.

All classes inheriting from I3Extractor should implement the __call__ method, and can be applied directly on icetray.I3Frame objects to return extracted, pure-python data.

Construct I3Extractor.

Parameters:

name (str) – Name of the I3Extractor instance. Used to keep track of the provenance of different data, and to name tables to which this data is saved.

set_files(i3_file, gcd_file)[source]

Store references to the I3- and GCD-files being processed.

Return type:

None

Parameters:
  • i3_file (str) –

  • gcd_file (str) –

property name: str

Get the name of the I3Extractor instance.

class graphnet.data.extractors.i3extractor.I3ExtractorCollection(*extractors)[source]

Bases: list

Class to manage multiple I3Extractors.

Construct I3ExtractorCollection.

Parameters:
  • *extractors (I3Extractor) – List of `I3Extractor`s to be treated as a single

  • collection.

set_files(i3_file, gcd_file)[source]

Store references to the I3- and GCD-files being processed.

Return type:

None

Parameters:
  • i3_file (str) –

  • gcd_file (str) –