km3pipe.io.aanet

Pump for the Aanet data format.

This is undoubtedly the ugliest module in the entire framework. If you have a way to read aanet files via the Jpp interface, your pull request is more than welcome!

Module Contents

Classes

AanetPump() A pump for binary Aanet files.
MetaParser(filename=None, string=None) A class which parses the JPrintMeta output for a given filenam
km3pipe.io.aanet.log[source]
km3pipe.io.aanet.FITINF2NUM[source]
km3pipe.io.aanet.FITINFDUSJ2NUM[source]
km3pipe.io.aanet.AANET_RECTYPE_PLACEHOLDER = 4000[source]
km3pipe.io.aanet.RECO2NUM[source]
km3pipe.io.aanet.JHIST_CHAINS[source]
km3pipe.io.aanet.FITINF2NAME[source]
km3pipe.io.aanet.FITINFDUSJ2NAME[source]
km3pipe.io.aanet.RECO2NAME[source]
km3pipe.io.aanet.IS_CC[source]
class km3pipe.io.aanet.AanetPump[source]

Bases:km3pipe.core.Pump

A pump for binary Aanet files.

Parameters:
filename: str, optional

Name of the file to open. If this parameter is not given, filenames needs to be specified instead.

ignore_hits: bool, optional [default=False]

If true, don’t read our the hits/mchits.

bare: bool, optional [default=False]

Do not create KM3Pipe specific data, just wrap the bare aanet API. This will only give you blob['evt'].

configure(self)[source]
get_blob(self, index)[source]
blob_generator(self)[source]

Create a blob generator.

process(self, blob=None)[source]
class km3pipe.io.aanet.MetaParser(filename=None, string=None)[source]

Bases:object

A class which parses the JPrintMeta output for a given filenam

parse_string(self, string)[source]

Parse ASCII output of JPrintMeta

get_table(self, name='Meta', h5loc='/meta')[source]

Convert metadata to a KM3Pipe Table.

Returns None if there is no data.

Each column’s dtype will be set to a fixed size string (numpy.string_) with the length of the longest entry, since writing variable length strings does not fit the current scheme.