9bool GstreamerTextFactory::publishEventTrueInfoDataImpl(
const std::string& detectorName,
10 const std::vector<const GTrueInfoData*>& trueInfoData) {
13 ofile <<
GTAB <<
"Detector <" << detectorName <<
"> True Info Bank {\n";
15 for (
auto trueInfoHit : trueInfoData) {
18 ofile <<
GTABTAB <<
"Hit address: " << identifierString <<
" {\n";
20 for (
const auto& [variableName, value] : trueInfoHit->getDoubleVariablesMap()) {
21 ofile <<
GTABTABTAB << variableName <<
": " << value <<
"\n";
23 for (
const auto& [variableName, value] : trueInfoHit->getStringVariablesMap()) {
24 ofile <<
GTABTABTAB << variableName <<
": " << value <<
"\n";
29 ofile <<
GTAB <<
"}\n";
34bool GstreamerTextFactory::publishEventGeneratedParticlesImpl(
const std::string& bankName,
38 ofile <<
GTAB <<
"Generated Particle Bank <" << bankName <<
"> {\n";
40 for (
const auto& particle : particles) {
41 ofile <<
GTABTAB <<
"Particle {\n";
42 ofile <<
GTABTABTAB <<
"name: " << particle.name <<
"\n";
43 ofile <<
GTABTABTAB <<
"pid: " << particle.pid <<
"\n";
44 ofile <<
GTABTABTAB <<
"type: " << particle.type <<
"\n";
45 ofile <<
GTABTABTAB <<
"multiplicity: " << particle.multiplicity <<
"\n";
46 ofile <<
GTABTABTAB <<
"p: " << particle.p <<
"\n";
47 ofile <<
GTABTABTAB <<
"theta: " << particle.theta <<
"\n";
48 ofile <<
GTABTABTAB <<
"phi: " << particle.phi <<
"\n";
49 ofile <<
GTABTABTAB <<
"vx: " << particle.vx <<
"\n";
50 ofile <<
GTABTABTAB <<
"vy: " << particle.vy <<
"\n";
51 ofile <<
GTABTABTAB <<
"vz: " << particle.vz <<
"\n";
55 ofile <<
GTAB <<
"}\n";
std::shared_ptr< GLogger > log
void error(int exit_code, Args &&... args) const
std::vector< GGeneratedParticleData > GGeneratedParticleBank
std::string getIdentityString(std::vector< GIdentifier > gidentity)
ASCII streamer plugin declarations.
Shared constants and error codes for the gstreamer module.
#define ERR_CANTOPENOUTPUT
Output medium could not be opened successfully.