9bool GstreamerTextFactory::publishEventTrueInfoDataImpl(
const std::string& detectorName,
10 const std::vector<const GTrueInfoData*>& trueInfoData) {
11 if (!ofile.is_open()) {
15 ofile <<
guts::GTAB <<
"Detector <" << detectorName <<
"> True Info Bank {\n";
17 for (
auto trueInfoHit : trueInfoData) {
20 ofile <<
guts::GTABTAB <<
"Hit address: " << identifierString <<
" {\n";
22 for (
const auto& [variableName, value] : trueInfoHit->getDoubleVariablesMap()) {
25 for (
const auto& [variableName, value] : trueInfoHit->getStringVariablesMap()) {
36bool GstreamerTextFactory::publishEventGeneratedParticlesImpl(
const std::string& bankName,
38 if (!ofile.is_open()) {
42 ofile <<
guts::GTAB <<
"Generated Particle Bank <" << bankName <<
"> {\n";
44 for (
const auto& particle : particles) {
49 ofile <<
guts::GTABTABTAB <<
"multiplicity: " << particle.multiplicity <<
"\n";
63bool GstreamerTextFactory::publishEventAncestorsImpl(
const GAncestorBank& ancestors) {
64 if (!ofile.is_open()) {
69 for (
const auto& ancestor : ancestors) {
std::shared_ptr< GLogger > log
std::vector< GAncestorData > GAncestorBank
std::vector< GGeneratedParticleData > GGeneratedParticleBank
std::string getIdentityString(std::vector< GIdentifier > gidentity)
ASCII streamer plugin declarations.
Shared constants and error codes for the gstreamer module.
constexpr int ERR_CANTOPENOUTPUT
Output medium could not be opened successfully.
constexpr char GTABTABTAB[]