LDMX Software
SingleSubsystemUnpacker.h
1#ifndef PACKING_SINGLESUBSYSTEMUNPACKER_H
2#define PACKING_SINGLESUBSYSTEMUNPACKER_H
3
5#include "Framework/Exception/Exception.h"
6#include "Packing/Utility/Reader.h"
7
8namespace packing {
9
17 public:
19 SingleSubsystemUnpacker(const std::string& name, framework::Process& p)
20 : framework::Producer(name, p) {}
22 virtual ~SingleSubsystemUnpacker() = default;
23
30
36 void produce(framework::Event& event) override;
37
38 private:
50 std::string output_name_;
55}; // SingleSubsystemUnpacker
56
57} // namespace packing
58
59#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:42
Class which represents the process under execution.
Definition Process.h:37
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:29
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.