8bool GstreamerRootFactory::publishEventTrueInfoDataImpl(
const std::string& detectorName,
9 const std::vector<const GTrueInfoData*>& trueInfoData) {
12 if (!trueInfoData.empty()) {
13 const auto& trueInforDataTree = getOrInstantiateTrueInfoDataTree(detectorName, trueInfoData.front());
15 return trueInforDataTree->fillTree(trueInfoData);
21bool GstreamerRootFactory::publishEventGeneratedParticlesImpl(
const std::string& bankName,
25 const auto& generatedTree = getOrInstantiateGeneratedParticleTree(bankName, particles);
26 return generatedTree->fillTree(particles);
29bool GstreamerRootFactory::publishEventAncestorsImpl(
const GAncestorBank& ancestors) {
31 return getOrInstantiateAncestorTree(ancestors)->
fillTree(ancestors);
std::shared_ptr< GLogger > log
void error(int exit_code, Args &&... args) const
bool fillTree(const std::unique_ptr< GEventHeader > &gevent_header)
Fill the event-header tree with one event header entry.
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.