LDMX Software
SingleSubsystemUnpacker.h
1#ifndef PACKING_SINGLESUBSYSTEMUNPACKER_H
2#define PACKING_SINGLESUBSYSTEMUNPACKER_H
3
5#include "Packing/Utility/Reader.h"
6
7namespace packing {
8
16 public:
18 SingleSubsystemUnpacker(const std::string& name, framework::Process& p)
19 : framework::Producer(name, p) {}
21 virtual ~SingleSubsystemUnpacker() = default;
22
29
35 void produce(framework::Event& event) override;
36
37 private:
49 std::string output_name_;
54}; // SingleSubsystemUnpacker
55
56} // namespace packing
57
58#endif // PACKING_SINGLESUBSYSTEMUNPACKER_H
Base classes for all user event processing components to extend.
Implements an event buffer system for storing event data.
Definition Event.h:40
Class which represents the process under execution.
Definition Process.h:34
Base class for a module which produces a data product.
Producer(const std::string &name, Process &process)
Class constructor.
Class encapsulating parameters for configuring a processor.
Definition Parameters.h:26
This producer unpacks the data from the a single subsystem into a single buffer for a downstream proc...
utility::Reader reader_
raw data file we are reading
virtual ~SingleSubsystemUnpacker()=default
empty destructor
int subsystem_
subsystem ID to filter for
int frame_offset_
number of frames to skip before sending data
std::string output_name_
destination object name
SingleSubsystemUnpacker(const std::string &name, framework::Process &p)
normal constructor
void produce(framework::Event &event) override
Actually do the unpacking/decoding.
int contributor_
contributor ID to filter for
void configure(framework::config::Parameters &ps) override
Configure the unpacker and open the raw data file for IO.
int frame_count_
frame count from beginning of file for frame_offset_
Reading a raw data file.
Definition Reader.h:20
All classes in the ldmx-sw project use this namespace.