Public Types | |
using | Parameters = art::EDAnalyzer::Table< Config > |
Public Member Functions | |
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... | |
Private Attributes | |
art::InputTag | fInputParticles |
name of MCParticle's data product More... | |
art::InputTag | fParticleTruthInfo |
name of MCParticle assns data product More... | |
std::string | fOutputCategory |
name of the stream for output More... | |
unsigned int | fPointsPerLine |
trajectory points per output line More... | |
unsigned int | fNEvents = 0U |
unsigned int | fNMissingTruth = 0U |
Count of events without truth association. More... | |
unsigned int | fNMissingTruthIndex = 0U |
Count of events without truth index. More... | |
Definition at line 74 of file DumpMCParticles_module.cc.
using sim::DumpMCParticles::Parameters = art::EDAnalyzer::Table<Config> |
Definition at line 77 of file DumpMCParticles_module.cc.
|
explicit |
Configuration-checking constructor.
Definition at line 206 of file DumpMCParticles_module.cc.
|
delete |
|
delete |
|
override |
Definition at line 250 of file DumpMCParticles_module.cc.
void sim::DumpMCParticles::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.
Stream | the type of output stream |
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 219 of file DumpMCParticles_module.cc.
|
override |
May print some warnings.
Definition at line 311 of file DumpMCParticles_module.cc.
|
delete |
|
delete |
|
private |
name of MCParticle's data product
Definition at line 125 of file DumpMCParticles_module.cc.
|
private |
Count of processed events.
Definition at line 130 of file DumpMCParticles_module.cc.
|
private |
Count of events without truth association.
Definition at line 132 of file DumpMCParticles_module.cc.
|
private |
Count of events without truth index.
Definition at line 134 of file DumpMCParticles_module.cc.
|
private |
name of the stream for output
Definition at line 127 of file DumpMCParticles_module.cc.
|
private |
name of MCParticle assns data product
Definition at line 126 of file DumpMCParticles_module.cc.
|
private |
trajectory points per output line
Definition at line 128 of file DumpMCParticles_module.cc.