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(
11 gstreamer::ERR_CANTOPENOUTPUT, "%1Error: can't access %2", SFUNCTION_NAME, filename_true_info());
12 }
13 if (!ofile_digitized.is_open()) {
14 log->error(
15 gstreamer::ERR_CANTOPENOUTPUT, "%1Error: can't access %2", SFUNCTION_NAME, filename_digitized());
16 }
17
18 // Cache the event number for the detector rows written later in the publish sequence.
19 event_number = event_data->getHeader()->getG4LocalEvn();
20
21 return true;
22}
23
24
25bool GstreamerCsvFactory::endEventImpl([[maybe_unused]] const std::shared_ptr<GEventDataCollection>& event_data) {
26 return true;
27}
std::shared_ptr< GLogger > log
CSV streamer plugin declarations.
Shared constants and error codes for the gstreamer module.
constexpr int ERR_CANTOPENOUTPUT
Output medium could not be opened successfully.