Go Back to: C++ Manual General Site

LDMX.Packing package

Submodules

LDMX.Packing.rawio module

Module for configuring a raw data file

class LDMX.Packing.rawio.FiberTrackerRawDecoder(raw_file, output_name, name, ntuplize=True)

Bases: Producer

class LDMX.Packing.rawio.RawDataFile(name, is_output)

Bases: object

RawDataFile configuration class

class LDMX.Packing.rawio.RawIO(raw_file)

Bases: Producer

Producer which runs a single raw data file for input/output

This producer does _nothing_ except pass handles to the RawDataFile for reading or writing. We are just wrapping a configuration class for the underlying raw data file, so we modify parameters via the raw_file member variable.

rawinput = RawIO.source(‘my_data.raw’) rawinput.raw_file.ecal_object_name = ‘2Ecal2Raw’

destination()
source()
class LDMX.Packing.rawio.SingleSubsystemPacker(raw_file, input_name, input_pass='')

Bases: Analyzer

Configuration for packing a single subsystem’s encoded buffer into a raw data file in sequence.

Parameters:
  • raw_file (str) – File path to raw data file to write out

  • input_name (str) – event bus object name for encoded buffer

  • input_pass (str) – event bus object pass for encoded buffer

class LDMX.Packing.rawio.SingleSubsystemUnpacker(dat_file, output_name, subsystem, contributor=-1, frame_offset=0)

Bases: Producer

Configuration for unpacking a single subsystem’s raw data file into a series of vector buffers to put onto the event bus.

Parameters:
  • dat_file (str) – File path to raw data file to read in

  • output_name (str) – Name of buffer object for event bus

  • subsystem (int) – subsystem ID number to filter for

  • contributor (int) – contributor ID number to filter for (-1 means don’t apply the filter)

  • frame_offset (int) – number of frames for the subsystem to skip at the beginnig of the file

class LDMX.Packing.rawio.WRRawDecoder(raw_file, output_name, ntuplize=True, name='wr')

Bases: Producer

Module contents