gstreamer
Loading...
Searching...
No Matches
publishDigitized.cc
Go to the documentation of this file.
1// gstreamer
4
5// Implementation summary:
6// Fill one detector digitized ROOT tree for the current event.
7
8bool GstreamerRootFactory::publishEventDigitizedDataImpl(const std::string& detectorName,
9 const std::vector<const GDigitizedData*>& digitizedData) {
10 if (rootfile == nullptr) { log->error(ERR_CANTOPENOUTPUT, "GstreamerRootFactory: file is not initialized"); }
11
12 if (!digitizedData.empty()) {
13 const auto& digitizedDataTree = getOrInstantiateDigitizedDataTree(detectorName, digitizedData.front());
14
15 return digitizedDataTree->fillTree(digitizedData);
16 }
17
18 return false;
19}
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 successfully.
ROOT streamer plugin declarations.