gstreamer
Loading...
Searching...
No Matches
publishDigitized.cc
Go to the documentation of this file.
1// gstreamer
4
5// Implementation summary:
6// Fill the run-level digitized ROOT tree for one detector.
7
8bool GstreamerRootFactory::publishRunDigitizedDataImpl(const std::string& detectorName,
9 const std::vector<const GDigitizedData*>& digitizedData) {
10 if (rootfile == nullptr) {
11 log->error(gstreamer::ERR_CANTOPENOUTPUT, "GstreamerRootFactory: file is not initialized");
12 }
13
14 // Lazily create the detector tree from the first hit, then fill it with the full collection.
15 if (!digitizedData.empty()) {
16 const auto& digitizedDataTree = getOrInstantiateDigitizedDataTree(detectorName, digitizedData.front());
17
18 return digitizedDataTree->fillTree(digitizedData);
19 }
20
21 return false;
22}
std::shared_ptr< GLogger > log
Shared constants and error codes for the gstreamer module.
ROOT streamer plugin declarations.
constexpr int ERR_CANTOPENOUTPUT
Output medium could not be opened successfully.