Public Types | |
using | Parameters = art::EDAnalyzer::Table< Config > |
using | Parameters = art::EDAnalyzer::Table< Config > |
![]() | |
using | WorkerType = WorkerT< EDAnalyzer > |
using | ModuleType = EDAnalyzer |
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... | |
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) |
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... | |
Additional Inherited Members | |
![]() | |
std::string const & | processName () const |
bool | wantAllEvents () const noexcept |
bool | wantEvent (ScheduleID id, Event const &e) const |
Handle< TriggerResults > | getTriggerResults (Event const &e) const |
Observer (fhicl::ParameterSet const &config) | |
Observer (std::vector< std::string > const &select_paths, std::vector< std::string > const &reject_paths, fhicl::ParameterSet const &config) | |
![]() | |
ConsumesCollector & | consumesCollector () |
template<typename T , BranchType = InEvent> | |
ProductToken< T > | consumes (InputTag const &) |
template<typename Element , BranchType = InEvent> | |
ViewToken< Element > | consumesView (InputTag const &) |
template<typename T , BranchType = InEvent> | |
void | consumesMany () |
template<typename T , BranchType = InEvent> | |
ProductToken< T > | mayConsume (InputTag const &) |
template<typename Element , BranchType = InEvent> | |
ViewToken< Element > | mayConsumeView (InputTag const &) |
template<typename T , BranchType = InEvent> | |
void | mayConsumeMany () |
Definition at line 78 of file DumpMCParticles_module.cc.
Definition at line 77 of file DumpMCParticles_module.cc.
Definition at line 81 of file DumpMCParticles_module.cc.
|
explicit |
Configuration-checking constructor.
Definition at line 210 of file DumpMCParticles_module.cc.
|
delete |
|
delete |
|
explicit |
Configuration-checking constructor.
|
delete |
|
delete |
|
overridevirtual |
Implements art::EDAnalyzer.
|
overridevirtual |
Implements art::EDAnalyzer.
Definition at line 254 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.
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 223 of file DumpMCParticles_module.cc.
|
overridevirtual |
May print some warnings.
Reimplemented from art::EDAnalyzer.
|
overridevirtual |
May print some warnings.
Reimplemented from art::EDAnalyzer.
Definition at line 315 of file DumpMCParticles_module.cc.
|
delete |
|
delete |
|
delete |
|
delete |
|
private |
name of MCParticle's data product
Definition at line 129 of file DumpMCParticles_module.cc.
|
private |
Count of processed events.
Definition at line 134 of file DumpMCParticles_module.cc.
|
private |
Count of events without truth association.
Definition at line 136 of file DumpMCParticles_module.cc.
|
private |
Count of events without truth index.
Definition at line 138 of file DumpMCParticles_module.cc.
|
private |
name of the stream for output
Definition at line 131 of file DumpMCParticles_module.cc.
|
private |
name of MCParticle assns data product
Definition at line 130 of file DumpMCParticles_module.cc.
|
private |
trajectory points per output line
Definition at line 132 of file DumpMCParticles_module.cc.