![]() |
LArSoft
v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
|
#include "Worker.h"
Classes | |
| struct | ImplDoWork |
| struct | ImplDoWork< BranchActionBegin > |
| struct | ImplDoWork< BranchActionEnd > |
| struct | ImplDoWork< BranchActionProcess > |
Public Types | |
| enum | State { Ready, Pass, Fail, Working, Exception } |
Public Member Functions | |
| Worker (ModuleDescription const &iMD, WorkerParams const &iWP) | |
| virtual | ~Worker () noexcept=default |
| template<typename T > | |
| bool | doWork (typename T::MyPrincipal &, CurrentProcessingContext const *cpc) |
| void | beginJob () |
| void | endJob () |
| void | respondToOpenInputFile (FileBlock const &fb) |
| void | respondToCloseInputFile (FileBlock const &fb) |
| void | respondToOpenOutputFiles (FileBlock const &fb) |
| void | respondToCloseOutputFiles (FileBlock const &fb) |
| void | reset () |
| ModuleDescription const & | description () const |
| ModuleDescription const * | descPtr () const |
| void | setActivityRegistry (cet::exempt_ptr< ActivityRegistry > areg) |
| void | clearCounters () |
| std::size_t | timesRun () const |
| std::size_t | timesVisited () const |
| std::size_t | timesPassed () const |
| std::size_t | timesFailed () const |
| std::size_t | timesExcept () const |
| State | state () const |
| virtual bool | modifiesEvent () const =0 |
| std::string const & | label () const |
Protected Member Functions | |
| virtual std::string | workerType () const =0 |
| virtual bool | implDoProcess (EventPrincipal &, CurrentProcessingContext const *cpc, CountingStatistics &)=0 |
| virtual bool | implDoBegin (RunPrincipal &rp, CurrentProcessingContext const *cpc)=0 |
| virtual bool | implDoEnd (RunPrincipal &rp, CurrentProcessingContext const *cpc)=0 |
| virtual bool | implDoBegin (SubRunPrincipal &srp, CurrentProcessingContext const *cpc)=0 |
| virtual bool | implDoEnd (SubRunPrincipal &srp, CurrentProcessingContext const *cpc)=0 |
| virtual void | implBeginJob ()=0 |
| virtual void | implEndJob ()=0 |
Private Member Functions | |
| virtual void | implRespondToOpenInputFile (FileBlock const &fb)=0 |
| virtual void | implRespondToCloseInputFile (FileBlock const &fb)=0 |
| virtual void | implRespondToOpenOutputFiles (FileBlock const &fb)=0 |
| virtual void | implRespondToCloseOutputFiles (FileBlock const &fb)=0 |
Private Attributes | |
| CountingStatistics | counts_ {} |
| State | state_ {Ready} |
| ModuleDescription | md_ |
| ActionTable const & | actions_ |
| std::shared_ptr< art::Exception > | cached_exception_ |
| cet::exempt_ptr< ActivityRegistry > | actReg_ {nullptr} |
| enum art::Worker::State |
| Enumerator | |
|---|---|
| Ready | |
| Pass | |
| Fail | |
| Working | |
| Exception | |
Definition at line 53 of file Worker.h.
| art::Worker::Worker | ( | ModuleDescription const & | iMD, |
| WorkerParams const & | iWP | ||
| ) |
|
virtualdefaultnoexcept |
| void art::Worker::beginJob | ( | ) |
Definition at line 18 of file Worker.cc.
References actReg_, art::errors::BadExceptionType, description(), e, implBeginJob(), md_, art::errors::OtherArt, s, art::errors::StdException, art::errors::Unknown, and workerType().
|
inline |
Definition at line 88 of file Worker.h.
References counts_.
|
inline |
Definition at line 79 of file Worker.h.
References md_, and setActivityRegistry().
|
inline |
Definition at line 74 of file Worker.h.
References md_.
Referenced by beginJob(), art::OutputWorker::closeFile(), endJob(), art::OutputWorker::openFile(), and art::OutputWorker::OutputWorker().
| bool art::Worker::doWork | ( | typename T::MyPrincipal & | p, |
| CurrentProcessingContext const * | cpc | ||
| ) |
Definition at line 218 of file Worker.h.
References actions_, actReg_, art::errors::BadAlloc, art::errors::BadExceptionType, cached_exception_, counts_, e, art::Event, Exception, art::detail::exceptionContext(), Fail, art::actions::FailModule, art::actions::FailPath, art::ActionTable::find(), art::actions::IgnoreCompletely, art::CurrentProcessingContext::isEndPath(), md_, art::errors::OtherArt, Pass, Ready, art::actions::Rethrow, s, art::errors::ScheduleExecutionFailure, art::actions::SkipEvent, state_, art::errors::StdException, art::errors::Unknown, and Working.
| void art::Worker::endJob | ( | ) |
Definition at line 68 of file Worker.cc.
References actReg_, art::errors::BadExceptionType, description(), e, implEndJob(), md_, art::errors::OtherArt, s, art::errors::StdException, art::errors::Unknown, and workerType().
Referenced by art::EndPathExecutor::endJob(), and art::Schedule::endJob().
|
protectedpure virtual |
Implemented in art::WorkerT< T >, and art::WorkerT< OutputModule >.
Referenced by beginJob(), and label().
|
protectedpure virtual |
Implemented in art::WorkerT< T >, and art::WorkerT< OutputModule >.
Referenced by art::Worker::ImplDoWork< BranchActionBegin >::invoke(), and label().
|
protectedpure virtual |
Implemented in art::WorkerT< T >, and art::WorkerT< OutputModule >.
|
protectedpure virtual |
Implemented in art::WorkerT< T >, and art::WorkerT< OutputModule >.
Referenced by art::Worker::ImplDoWork< BranchActionEnd >::invoke(), and label().
|
protectedpure virtual |
Implemented in art::WorkerT< T >, and art::WorkerT< OutputModule >.
|
protectedpure virtual |
Implemented in art::WorkerT< T >, and art::WorkerT< OutputModule >.
Referenced by art::Worker::ImplDoWork< BranchActionProcess >::invoke(), and label().
|
protectedpure virtual |
Implemented in art::WorkerT< T >, and art::WorkerT< OutputModule >.
|
privatepure virtual |
Implemented in art::WorkerT< T >, and art::WorkerT< OutputModule >.
Referenced by respondToCloseInputFile().
|
privatepure virtual |
Implemented in art::WorkerT< T >, and art::WorkerT< OutputModule >.
Referenced by respondToCloseOutputFiles().
|
privatepure virtual |
Implemented in art::WorkerT< T >, and art::WorkerT< OutputModule >.
Referenced by respondToOpenInputFile().
|
privatepure virtual |
Implemented in art::WorkerT< T >, and art::WorkerT< OutputModule >.
Referenced by respondToOpenOutputFiles().
|
inline |
Definition at line 127 of file Worker.h.
References implBeginJob(), implDoBegin(), implDoEnd(), implDoProcess(), implEndJob(), md_, art::ModuleDescription::moduleLabel(), and workerType().
Referenced by art::EndPathExecutor::closeAllOutputFiles(), art::EndPathExecutor::openAllOutputFiles(), and art::OutputWorker::OutputWorker().
|
pure virtual |
Implemented in art::WorkerT< T >, and art::WorkerT< OutputModule >.
Referenced by state().
|
inline |
Definition at line 68 of file Worker.h.
| void art::Worker::respondToCloseInputFile | ( | FileBlock const & | fb | ) |
Definition at line 128 of file Worker.cc.
References actReg_, implRespondToCloseInputFile(), and md_.
| void art::Worker::respondToCloseOutputFiles | ( | FileBlock const & | fb | ) |
Definition at line 146 of file Worker.cc.
References actReg_, implRespondToCloseOutputFiles(), and md_.
| void art::Worker::respondToOpenInputFile | ( | FileBlock const & | fb | ) |
Definition at line 119 of file Worker.cc.
References actReg_, implRespondToOpenInputFile(), and md_.
| void art::Worker::respondToOpenOutputFiles | ( | FileBlock const & | fb | ) |
Definition at line 137 of file Worker.cc.
References actReg_, implRespondToOpenOutputFiles(), and md_.
| void art::Worker::setActivityRegistry | ( | cet::exempt_ptr< ActivityRegistry > | areg | ) |
|
inline |
Definition at line 119 of file Worker.h.
References modifiesEvent(), and state_.
|
inline |
Definition at line 114 of file Worker.h.
References counts_, and art::ExecutionCounts< ARGS >::times().
|
inline |
Definition at line 109 of file Worker.h.
References counts_, and art::ExecutionCounts< ARGS >::times().
|
inline |
Definition at line 104 of file Worker.h.
References counts_, and art::ExecutionCounts< ARGS >::times().
|
inline |
Definition at line 94 of file Worker.h.
References counts_, and art::ExecutionCounts< ARGS >::times().
|
inline |
Definition at line 99 of file Worker.h.
References counts_, and art::ExecutionCounts< ARGS >::times().
|
protectedpure virtual |
Implemented in art::WorkerT< T >, and art::WorkerT< OutputModule >.
Referenced by beginJob(), endJob(), and label().
|
private |
|
private |
Definition at line 164 of file Worker.h.
Referenced by beginJob(), doWork(), endJob(), respondToCloseInputFile(), respondToCloseOutputFiles(), respondToOpenInputFile(), respondToOpenOutputFiles(), and setActivityRegistry().
|
private |
|
private |
Definition at line 157 of file Worker.h.
Referenced by clearCounters(), doWork(), art::Worker::ImplDoWork< BranchActionProcess >::invoke(), timesExcept(), timesFailed(), timesPassed(), timesRun(), and timesVisited().
|
private |
Definition at line 160 of file Worker.h.
Referenced by beginJob(), descPtr(), description(), doWork(), endJob(), label(), respondToCloseInputFile(), respondToCloseOutputFiles(), respondToOpenInputFile(), and respondToOpenOutputFiles().