gstreamer
Loading...
Searching...
No Matches
event.cc
Go to the documentation of this file.
1// gstreamer
4
5// Implementation summary:
6// Cache per-event state needed by later CSV publish routines.
7
8bool GstreamerCsvFactory::startEventImpl([[maybe_unused]] const std::shared_ptr<GEventDataCollection>& event_data) {
9 if (!ofile_true_info.is_open()) {
10 log->error(ERR_CANTOPENOUTPUT, SFUNCTION_NAME, "Error: can't access ", filename_true_info());
11 }
12 if (!ofile_digitized.is_open()) {
13 log->error(ERR_CANTOPENOUTPUT, SFUNCTION_NAME, "Error: can't access ", filename_digitized());
14 }
15
16 // Cache the event number for the detector rows written later in the publish sequence.
17 event_number = event_data->getHeader()->getG4LocalEvn();
18
19 return true;
20}
21
22
23bool GstreamerCsvFactory::endEventImpl([[maybe_unused]] const std::shared_ptr<GEventDataCollection>& event_data) {
24 return true;
25}
std::shared_ptr< GLogger > log
void error(int exit_code, Args &&... args) const
CSV streamer plugin declarations.
Shared constants and error codes for the gstreamer module.
#define ERR_CANTOPENOUTPUT
Output medium could not be opened successfully.