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(instance_name: str = 'FiberTrackerRawDecoder', histograms: list[LDMX.Framework._histogram.Histogram] = <factory>, input_file: str = '', output_name: str = '', ntuplize: bool = True)¶
Bases:
Processor- class_name: str = 'packing::FiberTrackerRawDecoder'¶
- input_file: str = ''¶
- instance_name: str = 'FiberTrackerRawDecoder'¶
- module_name: str = 'Packing'¶
- ntuplize: bool = True¶
- output_name: str = ''¶
- class LDMX.Packing.rawio.RawDataFile(filename: str = '', is_output: bool = False, ecal_object_name: str = 'EcalRaw', hcal_object_name: str = 'HcalRaw', tracker_object_name: str = 'TrackerRaw', triggerpad_object_name: str = 'TriggerPadRaw', pass_name: str = '', skip_unavailable: bool = True, ecal_object_passname_: str = '', hcal_object_passname_: str = '', triggerpad_object_passname_: str = '', tracker_object_event_passname_: str = '')¶
Bases:
objectRawDataFile configuration class
- static destination(file_name)¶
- ecal_object_name: str = 'EcalRaw'¶
- ecal_object_passname_: str = ''¶
- filename: str = ''¶
- hcal_object_name: str = 'HcalRaw'¶
- hcal_object_passname_: str = ''¶
- is_output: bool = False¶
- pass_name: str = ''¶
- static source(file_name)¶
- tracker_object_event_passname_: str = ''¶
- tracker_object_name: str = 'TrackerRaw'¶
- triggerpad_object_name: str = 'TriggerPadRaw'¶
- triggerpad_object_passname_: str = ''¶
- class LDMX.Packing.rawio.RawIO(instance_name: str = 'RawIO', histograms: list[Histogram] = <factory>, raw_file: RawDataFile = <factory>)¶
Bases:
ProcessorProducer 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’
- class_name: str = 'packing::RawIO'¶
- static destination(file_name)¶
- instance_name: str = 'RawIO'¶
- module_name: str = 'Packing'¶
- raw_file: RawDataFile¶
- static source(file_name)¶
- class LDMX.Packing.rawio.SingleSubsystemPacker(instance_name: str = 'SingleSubsystemPacker', histograms: list[Histogram] = <factory>, raw_file: str = '', input_name: str = '', input_pass: str = '')¶
Bases:
ProcessorConfiguration 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_name: str = 'packing::SingleSubsystemPacker'¶
- input_name: str = ''¶
- input_pass: str = ''¶
- instance_name: str = 'SingleSubsystemPacker'¶
- module_name: str = 'Packing'¶
- raw_file: str = ''¶
- class LDMX.Packing.rawio.SingleSubsystemUnpacker(instance_name: str = 'SingleSubsystemUnpacker', histograms: list[Histogram] = <factory>, dat_file: str = '', output_name: str = '', subsystem: int = -1, subsystem_name: str = '', contributor: int = -1, frame_offset: int = 0)¶
Bases:
ProcessorConfiguration 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 (-1 if using subsystem_name)
subsystem_name (str) – subsystem name to filter for (empty if using subsystem int)
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 beginning of the file
- class_name: str = 'packing::SingleSubsystemUnpacker'¶
- contributor: int = -1¶
- dat_file: str = ''¶
- frame_offset: int = 0¶
- instance_name: str = 'SingleSubsystemUnpacker'¶
- module_name: str = 'Packing'¶
- output_name: str = ''¶
- subsystem: int = -1¶
- subsystem_name: str = ''¶
- class LDMX.Packing.rawio.WRRawDecoder(instance_name: str = 'wr', histograms: list[LDMX.Framework._histogram.Histogram] = <factory>, input_file: str = '', output_name: str = '', ntuplize: bool = True)¶
Bases:
Processor- class_name: str = 'packing::WRRawDecoder'¶
- input_file: str = ''¶
- instance_name: str = 'wr'¶
- module_name: str = 'Packing'¶
- ntuplize: bool = True¶
- output_name: str = ''¶