8bool GstreamerRootFactory::publishEventTrueInfoDataImpl(
const std::string& detectorName,
9 const std::vector<const GTrueInfoData*>& trueInfoData) {
10 if (rootfile ==
nullptr) {
log->error(
ERR_CANTOPENOUTPUT,
"GstreamerRootFactory: file is not initialized"); }
12 if (!trueInfoData.empty()) {
13 const auto& trueInforDataTree = getOrInstantiateTrueInfoDataTree(detectorName, trueInfoData.front());
15 return trueInforDataTree->fillTree(trueInfoData);
21bool GstreamerRootFactory::publishEventGeneratedParticlesImpl(
const std::string& bankName,
23 if (rootfile ==
nullptr) {
log->error(
ERR_CANTOPENOUTPUT,
"GstreamerRootFactory: file is not initialized"); }
25 const auto& generatedTree = getOrInstantiateGeneratedParticleTree(bankName, particles);
26 return generatedTree->fillTree(particles);
29bool GstreamerRootFactory::publishEventAncestorsImpl(
const GAncestorBank& ancestors) {
30 if (rootfile ==
nullptr) {
log->error(
ERR_CANTOPENOUTPUT,
"GstreamerRootFactory: file is not initialized"); }
31 return getOrInstantiateAncestorTree(ancestors)->fillTree(ancestors);
std::shared_ptr< GLogger > log
std::vector< GAncestorData > GAncestorBank
std::vector< GGeneratedParticleData > GGeneratedParticleBank
Shared constants and error codes for the gstreamer module.
#define ERR_CANTOPENOUTPUT
Output medium could not be opened successfully.
ROOT streamer plugin declarations.