Functions to dump Monte Carlo object information into a stream. More...
Functions | |
template<typename Stream > | |
void | DumpMCParticle (Stream &&out, simb::MCParticle const &particle, std::string indent, std::string firstIndent) |
Dumps the content of the specified particle in the output stream. More... | |
template<typename Stream > | |
void | DumpMCParticle (Stream &&out, simb::MCParticle const &particle, std::string indent="") |
template<typename Stream > | |
void | DumpMCParticleTrajectory (Stream &&out, simb::MCTrajectory const &trajectory, unsigned int pointsPerLine, std::string indent) |
Dumps the specified particle trajectory into the output stream. More... | |
template<typename Stream > | |
void | DumpMCParticleTrajectory (Stream &&out, simb::MCTrajectory const &trajectory) |
template<typename Stream > | |
void | DumpMCNeutrino (Stream &&out, simb::MCNeutrino const &neutrino, std::string indent, std::string firstIndent) |
Dumps the content of the specified neutrino in the output stream. More... | |
template<typename Stream > | |
void | DumpMCNeutrino (Stream &&out, simb::MCNeutrino const &neutrino, std::string indent="") |
template<typename Stream > | |
void | DumpMCTruth (Stream &&out, simb::MCTruth const &truth, unsigned int pointsPerLine, std::string indent, std::string firstIndent) |
Dumps the content of the specified MC truth in the output stream. More... | |
template<typename Stream > | |
void | DumpMCTruth (Stream &&out, simb::MCTruth const &truth, unsigned int pointsPerLine, std::string indent="") |
template<typename Stream > | |
void | DumpMCTruth (Stream &&out, simb::MCTruth const &truth, std::string indent, std::string firstIndent) |
template<typename Stream > | |
void | DumpMCTruth (Stream &&out, simb::MCTruth const &truth, std::string indent="") |
template<typename Stream > | |
void | DumpGTruth (Stream &&out, simb::GTruth const &truth, std::string indent, std::string firstIndent) |
Dumps the content of the GENIE truth in the output stream. More... | |
template<typename Stream > | |
void | DumpGTruth (Stream &&out, simb::GTruth const &truth, std::string indent="") |
Functions to dump Monte Carlo object information into a stream.
void sim::dump::DumpGTruth | ( | Stream && | out, |
simb::GTruth const & | truth, | ||
std::string | indent, | ||
std::string | firstIndent | ||
) |
Dumps the content of the GENIE truth in the output stream.
Stream | the type of output stream |
out | the output stream |
truth | the truth information to be dumped |
indent | base indentation string (default: none) |
firstIndent | string to be used for indentation of the first line (default: as indent ) |
The indent
string is prepended to every line of output, except for the first one, where firstIndent
is used.
The output starts on the current line, and the last line is NOT broken.
Definition at line 379 of file MCDumpers.h.
void sim::dump::DumpGTruth | ( | Stream && | out, |
simb::GTruth const & | truth, | ||
std::string | indent = "" |
||
) |
Definition at line 212 of file MCDumpers.h.
void sim::dump::DumpMCNeutrino | ( | Stream && | out, |
simb::MCNeutrino const & | neutrino, | ||
std::string | indent, | ||
std::string | firstIndent | ||
) |
Dumps the content of the specified neutrino in the output stream.
Stream | the type of output stream |
out | the output stream |
neutrino | the neutrino to be dumped |
indent | base indentation string (default: none) |
firstIndent | string to be used for indentation of the first line (default: as indent ) |
The indent
string is prepended to every line of output, except for the first one, where firstIndent
is used.
The output starts on the current line, and the last line is NOT broken.
Definition at line 310 of file MCDumpers.h.
void sim::dump::DumpMCNeutrino | ( | Stream && | out, |
simb::MCNeutrino const & | neutrino, | ||
std::string | indent = "" |
||
) |
Definition at line 126 of file MCDumpers.h.
void sim::dump::DumpMCParticle | ( | Stream && | out, |
simb::MCParticle const & | particle, | ||
std::string | indent, | ||
std::string | firstIndent | ||
) |
Dumps the content of the specified particle in the output stream.
Stream | the type of output stream |
out | the output stream |
particle | the particle to be dumped |
indent | base indentation string (default: none) |
firstIndent | indentation of first line (default: as indent ) |
The indent
string is prepended to every line of output, except for the first one, where firstIndent
is used.
The output starts on the current line, and the last line is NOT broken.
Definition at line 228 of file MCDumpers.h.
void sim::dump::DumpMCParticle | ( | Stream && | out, |
simb::MCParticle const & | particle, | ||
std::string | indent = "" |
||
) |
Definition at line 61 of file MCDumpers.h.
void sim::dump::DumpMCParticleTrajectory | ( | Stream && | out, |
simb::MCTrajectory const & | trajectory, | ||
unsigned int | pointsPerLine, | ||
std::string | indent | ||
) |
Dumps the specified particle trajectory into the output stream.
Stream | the type of output stream |
out | the output stream |
trajectory | the particle trajectory to be dumped |
pointsPerLine | number of points dumped per line (default: all) |
indent | base indentation string (default: none) |
All points of the specified Monte Carlo trajectory
are printed on screen, pointsPerLine
on each line. The points are printed starting on a new line, and each line is applied the same indentation string (indent
). As an exception, if pointsPerLine
is not specified, all points are printed on the current line and indent
is ignored.
The last line of the output is NOT broken.
Definition at line 289 of file MCDumpers.h.
void sim::dump::DumpMCParticleTrajectory | ( | Stream && | out, |
simb::MCTrajectory const & | trajectory | ||
) |
Definition at line 94 of file MCDumpers.h.
void sim::dump::DumpMCTruth | ( | Stream && | out, |
simb::MCTruth const & | truth, | ||
unsigned int | pointsPerLine, | ||
std::string | indent, | ||
std::string | firstIndent | ||
) |
Dumps the content of the specified MC truth in the output stream.
Stream | the type of output stream |
out | the output stream |
truth | the truth information to be dumped |
pointsPerLine | (optional) number of trajectory points dumped per line (default: 0 , no points shown) |
indent | base indentation string (default: none) |
firstIndent | string to be used for indentation of the first line (default: same as indent ) |
The indent
string is prepended to every line of output, except for the first one, where firstIndent
is used.
The argument pointsPerLine
regulates the dump of trajectory points from all the particles in the record (except the ones stored in the neutrino object). Setting it to 0
, or leaving it out, will suppress the dump of particle trajectories completely. There is no option to reduce the number of printed trajectory points: it's just all or none.
The output starts on the current line, and the last line is NOT broken.
Definition at line 346 of file MCDumpers.h.
void sim::dump::DumpMCTruth | ( | Stream && | out, |
simb::MCTruth const & | truth, | ||
unsigned int | pointsPerLine, | ||
std::string | indent = "" |
||
) |
Definition at line 163 of file MCDumpers.h.
void sim::dump::DumpMCTruth | ( | Stream && | out, |
simb::MCTruth const & | truth, | ||
std::string | indent, | ||
std::string | firstIndent | ||
) |
Definition at line 173 of file MCDumpers.h.
void sim::dump::DumpMCTruth | ( | Stream && | out, |
simb::MCTruth const & | truth, | ||
std::string | indent = "" |
||
) |
Definition at line 180 of file MCDumpers.h.