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(raw_file, output_name, num_bytes_per_event, detector_name)¶
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:
raw_file (str) – File path to raw data file to read in
output_name (str) – Name of buffer object for event bus
num_bytes_per_event (int) – Number of bytes to put onto each event bus
detector_name (str) – Name of the detector GDML file