|
| DumpMCParticles (Parameters const &config) |
| Configuration-checking constructor. More...
|
|
| DumpMCParticles (DumpMCParticles const &)=delete |
|
| DumpMCParticles (DumpMCParticles &&)=delete |
|
DumpMCParticles & | operator= (DumpMCParticles const &)=delete |
|
DumpMCParticles & | operator= (DumpMCParticles &&)=delete |
|
void | analyze (art::Event const &event) override |
|
void | endJob () override |
| May print some warnings. More...
|
|
template<typename Stream > |
void | DumpMCParticle (Stream &&out, simb::MCParticle const &particle, art::InputTag const &truthTag, sim::GeneratedParticleInfo const &truthInfo, std::string indent="", bool bIndentFirst=true) const |
| Dumps the content of the specified particle in the output stream. More...
|
|
| DumpMCParticles (Parameters const &config) |
| Configuration-checking constructor. More...
|
|
| DumpMCParticles (DumpMCParticles const &)=delete |
|
| DumpMCParticles (DumpMCParticles &&)=delete |
|
DumpMCParticles & | operator= (DumpMCParticles const &)=delete |
|
DumpMCParticles & | operator= (DumpMCParticles &&)=delete |
|
void | analyze (art::Event const &event) override |
|
void | endJob () override |
| May print some warnings. More...
|
|
template<typename Stream > |
void | DumpMCParticle (Stream &&out, simb::MCParticle const &particle, art::InputTag const &truthTag, sim::GeneratedParticleInfo const &truthInfo, std::string indent="", bool bIndentFirst=true) const |
| Dumps the content of the specified particle in the output stream. More...
|
|
| EDAnalyzer (fhicl::ParameterSet const &pset) |
|
template<typename Config > |
| EDAnalyzer (Table< Config > const &config) |
|
std::string | workerType () const |
|
virtual | ~Analyzer () noexcept |
|
| Analyzer (fhicl::ParameterSet const &pset) |
|
template<typename Config > |
| Analyzer (Table< Config > const &config) |
|
void | doBeginJob (SharedResources const &resources) |
|
void | doEndJob () |
|
void | doRespondToOpenInputFile (FileBlock const &fb) |
|
void | doRespondToCloseInputFile (FileBlock const &fb) |
|
void | doRespondToOpenOutputFiles (FileBlock const &fb) |
|
void | doRespondToCloseOutputFiles (FileBlock const &fb) |
|
bool | doBeginRun (RunPrincipal &rp, ModuleContext const &mc) |
|
bool | doEndRun (RunPrincipal &rp, ModuleContext const &mc) |
|
bool | doBeginSubRun (SubRunPrincipal &srp, ModuleContext const &mc) |
|
bool | doEndSubRun (SubRunPrincipal &srp, ModuleContext const &mc) |
|
bool | doEvent (EventPrincipal &ep, ModuleContext const &mc, std::atomic< std::size_t > &counts_run, std::atomic< std::size_t > &counts_passed, std::atomic< std::size_t > &counts_failed) |
|
| ~Observer () noexcept |
|
| Observer (Observer const &)=delete |
|
| Observer (Observer &&)=delete |
|
Observer & | operator= (Observer const &)=delete |
|
Observer & | operator= (Observer &&)=delete |
|
void | registerProducts (ProductDescriptions &, ModuleDescription const &) |
|
void | fillDescriptions (ModuleDescription const &) |
|
fhicl::ParameterSetID | selectorConfig () const |
|
virtual | ~ModuleBase () noexcept |
|
| ModuleBase () |
|
ModuleDescription const & | moduleDescription () const |
|
void | setModuleDescription (ModuleDescription const &) |
|
std::array< std::vector< ProductInfo >, NumBranchTypes > const & | getConsumables () const |
|
void | sortConsumables (std::string const ¤t_process_name) |
|
template<typename T , BranchType BT> |
ViewToken< T > | consumesView (InputTag const &tag) |
|
template<typename T , BranchType BT> |
ViewToken< T > | mayConsumeView (InputTag const &tag) |
|
Definition at line 78 of file DumpMCParticles_module.cc.
template<typename Stream >
Dumps the content of the specified particle in the output stream.
- Template Parameters
-
Stream | the type of output stream |
- Parameters
-
out | the output stream |
particle | the particle to be dumped |
truthTag | input tag of the truth record the particle derived from |
truthIndex | index of particle in the truth record this derived from |
indent | base indentation string (default: none) |
bIndentFirst | if first output line should be indented (default: yes) |
The indent string is prepended to every line of output, with the possible exception of the first one, in case bIndentFirst is true.
If truthTag
module label is empty, it is assumed that this information could not be retrieved, and it will be silently omitted. If truthIndex
is sim::NoGeneratorIndex
, it is assumed that this information could not be retrieved, and it will be silently omitted.
The output starts on the current line, and the last line is NOT broken.
template<typename Stream >
Dumps the content of the specified particle in the output stream.
- Template Parameters
-
Stream | the type of output stream |
- Parameters
-
out | the output stream |
particle | the particle to be dumped |
truthTag | input tag of the truth record the particle derived from |
truthIndex | index of particle in the truth record this derived from |
indent | base indentation string (default: none) |
bIndentFirst | if first output line should be indented (default: yes) |
The indent string is prepended to every line of output, with the possible exception of the first one, in case bIndentFirst is true.
If truthTag
module label is empty, it is assumed that this information could not be retrieved, and it will be silently omitted. If truthIndex
is sim::NoGeneratorIndex
, it is assumed that this information could not be retrieved, and it will be silently omitted.
The output starts on the current line, and the last line is NOT broken.
Definition at line 223 of file DumpMCParticles_module.cc.
229 if (!truthTag.label().empty() || truthInfo.hasGeneratedParticleIndex()) {
231 if (truthTag.label().empty()) out <<
"unknown truth record";
232 else out <<
"'" << truthTag.encode() <<
"'";
233 if (truthInfo.hasGeneratedParticleIndex())
234 out <<
" particle #" << truthInfo.generatedParticleIndex();
239 (std::forward<Stream>(out), particle,
indent, bIndentFirst?
indent:
"");
241 const unsigned int nPoints = particle.NumberTrajectoryPoints();
245 std::forward<Stream>(out), particle.Trajectory(),
void DumpMCParticleTrajectory(Stream &&out, simb::MCTrajectory const &trajectory, unsigned int pointsPerLine, std::string indent)
Dumps the specified particle trajectory into the output stream.
unsigned int fPointsPerLine
trajectory points per output line
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.