|
pflib v3.9.4-7-gb2e7f4f
Pretty Fine HGCROC Interaction Library
|
specializatin of DecodeAndWrite that holds a std::ofstream for the user with functions for writing the header and events More...
#include <daq_run.h>
Public Member Functions | |
| DecodeAndWriteToCSV (const std::string &file_name, std::function< void(std::ofstream &)> write_header, std::function< void(std::ofstream &, const EventPacket &)> write_event, int n_links) | |
| virtual void | write_event (const EventPacket &ep) final |
| call write_event with our file handle | |
Public Member Functions inherited from DecodeAndWrite< EventPacket > | |
| DecodeAndWrite (int n_links) | |
| virtual void | consume (std::vector< uint32_t > &event) final |
| Decode the input event packet into our pflib::packing::SingleROCEventPacket and then call write_event on it. | |
| DecodeAndWrite (int _n_links) | |
Public Member Functions inherited from DAQRunConsumer | |
| virtual void | start_run () |
| virtual void | end_run () |
Private Attributes | |
| std::ofstream | file_ |
| output file writing to | |
| std::function< void(std::ofstream &, const EventPacket &)> | write_event_ |
| function that writes row(s) to csv given an event | |
Additional Inherited Members | |
Protected Attributes inherited from DecodeAndWrite< EventPacket > | |
| mutable::pflib::logging::logger | the_log_ |
| logging for warning messages on empty events | |
specializatin of DecodeAndWrite that holds a std::ofstream for the user with functions for writing the header and events
|
finalvirtual |
call write_event with our file handle
Implements DecodeAndWrite< EventPacket >.