gstreamer
Loading...
Searching...
No Matches
event.cc
Go to the documentation of this file.
1// gstreamer
2
5
6// using \n instead of endl so flushing isn't forced at each line
7// Non-Doxygen implementation file: behavior is documented in the header.
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 later row emission in publish routines.
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
Shared constants and error codes for the gstreamer module.
#define ERR_CANTOPENOUTPUT
Output medium could not be opened (file/device not accessible).