LArSoft
v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
|
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="") |
Dumps the content of the specified particle in the output stream. More... | |
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) |
Dumps the specified particle trajectory into the output stream. More... | |
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="") |
Dumps the content of the specified neutrino in the output stream. More... | |
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="") |
Dumps the content of the specified MC truth in the output stream. More... | |
template<typename Stream > | |
void | DumpMCTruth (Stream &&out, simb::MCTruth const &truth, 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, std::string indent="") |
Dumps the content of the specified MC truth in the output stream. More... | |
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="") |
Dumps the content of the GENIE truth in the output stream. More... | |
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.
References simb::GTruth::fDiffXsec, simb::GTruth::fFShadSystP4, simb::GTruth::fGint, simb::GTruth::fgQ2, simb::GTruth::fgq2, simb::GTruth::fGscatter, simb::GTruth::fgT, simb::GTruth::fgW, simb::GTruth::fgX, simb::GTruth::fgY, simb::GTruth::fHitNucP4, simb::GTruth::fIsCharm, simb::GTruth::fIsSeaQuark, simb::GTruth::fNumNeutron, simb::GTruth::fNumPi0, simb::GTruth::fNumPiMinus, simb::GTruth::fNumPiPlus, simb::GTruth::fNumProton, simb::GTruth::fprobability, simb::GTruth::fProbeP4, simb::GTruth::fProbePDG, simb::GTruth::fResNum, simb::GTruth::ftgtA, simb::GTruth::ftgtPDG, simb::GTruth::ftgtZ, simb::GTruth::fVertex, simb::GTruth::fweight, simb::GTruth::fXsec, and sim::ParticleName().
Referenced by sim::DumpGTruth::analyze(), DumpGTruth(), DumpMCTruth(), and evgen::GENIEGen::produce().
void sim::dump::DumpGTruth | ( | Stream && | out, |
simb::GTruth const & | truth, | ||
std::string | indent = "" |
||
) |
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 212 of file MCDumpers.h.
References DumpGTruth().
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.
References simb::MCNeutrino::CCNC(), DumpMCParticle(), simb::MCNeutrino::HitNuc(), simb::MCNeutrino::HitQuark(), simb::MCNeutrino::InteractionType(), simb::MCNeutrino::Lepton(), simb::MCNeutrino::Mode(), simb::MCNeutrino::Nu(), sim::ParticleName(), simb::MCNeutrino::Pt(), simb::MCNeutrino::QSqr(), simb::MCNeutrino::Target(), simb::MCNeutrino::Theta(), sim::TruthCCNCname(), sim::TruthInteractionTypeName(), sim::TruthReactionMode(), simb::MCNeutrino::W(), simb::MCNeutrino::X(), and simb::MCNeutrino::Y().
Referenced by DumpMCNeutrino(), DumpMCParticleTrajectory(), and DumpMCTruth().
void sim::dump::DumpMCNeutrino | ( | Stream && | out, |
simb::MCNeutrino const & | neutrino, | ||
std::string | indent = "" |
||
) |
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 126 of file MCDumpers.h.
References DumpMCNeutrino(), and DumpMCTruth().
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.
References simb::MCParticle::EndMomentum(), simb::MCParticle::EndPosition(), simb::MCParticle::EndProcess(), simb::MCParticle::FirstDaughter(), simb::MCParticle::GetGvtx(), simb::MCParticle::LastDaughter(), simb::MCParticle::Mass(), simb::MCParticle::Momentum(), simb::MCParticle::Mother(), simb::MCParticle::NumberDaughters(), simb::MCParticle::NumberTrajectoryPoints(), sim::ParticleName(), sim::ParticleStatusName(), simb::MCParticle::PdgCode(), simb::MCParticle::Polarization(), simb::MCParticle::Position(), simb::MCParticle::Process(), simb::MCParticle::Rescatter(), simb::MCParticle::StatusCode(), simb::MCTrajectory::TotalLength(), simb::MCParticle::TrackId(), simb::MCParticle::Trajectory(), lar::dump::vector3D(), and simb::MCParticle::Weight().
Referenced by DumpMCNeutrino(), DumpMCParticle(), sim::DumpMCParticles::DumpMCParticle(), DumpMCTruth(), and larg4::LArG4::produce().
void sim::dump::DumpMCParticle | ( | Stream && | out, |
simb::MCParticle const & | particle, | ||
std::string | indent = "" |
||
) |
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 61 of file MCDumpers.h.
References DumpMCParticle(), and DumpMCParticleTrajectory().
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.
Referenced by DumpMCParticle(), sim::DumpMCParticles::DumpMCParticle(), DumpMCParticleTrajectory(), and DumpMCTruth().
void sim::dump::DumpMCParticleTrajectory | ( | Stream && | out, |
simb::MCTrajectory const & | trajectory | ||
) |
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 94 of file MCDumpers.h.
References DumpMCNeutrino(), and DumpMCParticleTrajectory().
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.
References DumpMCNeutrino(), DumpMCParticle(), DumpMCParticleTrajectory(), simb::MCTruth::GetNeutrino(), simb::MCTruth::GetParticle(), simb::MCTruth::NeutrinoSet(), simb::MCTruth::NParticles(), simb::MCParticle::NumberTrajectoryPoints(), simb::MCTruth::Origin(), simb::MCParticle::Trajectory(), and sim::TruthOriginName().
Referenced by sim::DumpMCTruth::analyze(), DumpMCNeutrino(), DumpMCTruth(), evgen::GENIEGen::produce(), and larg4::LArG4::produce().
void sim::dump::DumpMCTruth | ( | Stream && | out, |
simb::MCTruth const & | truth, | ||
unsigned int | pointsPerLine, | ||
std::string | indent = "" |
||
) |
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 163 of file MCDumpers.h.
References DumpMCTruth().
void sim::dump::DumpMCTruth | ( | Stream && | out, |
simb::MCTruth const & | truth, | ||
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 173 of file MCDumpers.h.
References DumpMCTruth().
void sim::dump::DumpMCTruth | ( | Stream && | out, |
simb::MCTruth const & | truth, | ||
std::string | indent = "" |
||
) |
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 180 of file MCDumpers.h.
References DumpGTruth(), and DumpMCTruth().