LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
#include "OutputWorker.h"
Public Types | |
enum | State { Ready, Pass, Fail, Working, ExceptionThrown } |
Protected Member Functions | |
std::string const & | label () const |
Protected Attributes | |
std::atomic< std::size_t > | counts_visited_ {} |
std::atomic< std::size_t > | counts_run_ {} |
std::atomic< std::size_t > | counts_passed_ {} |
std::atomic< std::size_t > | counts_failed_ {} |
std::atomic< std::size_t > | counts_thrown_ {} |
Private Member Functions | |
hep::concurrency::SerialTaskQueueChain * | doSerialTaskQueueChain () const override |
void | doBeginJob (detail::SharedResources const &) override |
void | doEndJob () override |
void | doRespondToOpenInputFile (FileBlock const &) override |
void | doRespondToCloseInputFile (FileBlock const &) override |
void | doRespondToOpenOutputFiles (FileBlock const &) override |
void | doRespondToCloseOutputFiles (FileBlock const &) override |
void | doBegin (RunPrincipal &, ModuleContext const &) override |
void | doEnd (RunPrincipal &, ModuleContext const &) override |
void | doBegin (SubRunPrincipal &, ModuleContext const &) override |
void | doEnd (SubRunPrincipal &, ModuleContext const &) override |
bool | doProcess (EventPrincipal &, ModuleContext const &) override |
Private Attributes | |
cet::exempt_ptr< OutputModule > | module_ |
ServiceHandle< CatalogInterface > | ci_ {} |
ActivityRegistry const & | actReg_ |
Granularity | fileGranularity_ {Granularity::Unset} |
Definition at line 25 of file OutputWorker.h.
|
inherited |
Enumerator | |
---|---|
Ready | |
Pass | |
Fail | |
Working | |
ExceptionThrown |
Definition at line 49 of file Worker.h.
|
virtualdefault |
art::OutputWorker::OutputWorker | ( | OutputModule * | mod, |
WorkerParams const & | wp | ||
) |
Definition at line 18 of file OutputWorker.cc.
References actReg_, ci_, art::Worker::description(), art::ScheduleID::first(), fhicl::ParameterSetRegistry::get(), art::Worker::label(), art::module, module_, and art::ModuleBase::moduleDescription().
|
inherited |
Definition at line 196 of file Worker.cc.
References art::Worker::actReg_, art::Worker::doBeginJob(), art::Worker::md_, art::ActivityRegistry::sPostModuleBeginJob, and art::ActivityRegistry::sPreModuleBeginJob.
void art::OutputWorker::closeFile | ( | ) |
Definition at line 116 of file OutputWorker.cc.
References actReg_, ci_, art::Worker::label(), lastClosedFileName(), module_, art::ActivityRegistry::sPostCloseOutputFile, and art::ActivityRegistry::sPreCloseOutputFile.
|
inherited |
Definition at line 121 of file Worker.cc.
References art::Worker::md_.
Referenced by OutputWorker(), and writeEvent().
|
overrideprivatevirtual |
|
overrideprivatevirtual |
|
overrideprivatevirtual |
|
overrideprivatevirtual |
|
overrideprivatevirtual |
|
overrideprivatevirtual |
|
overrideprivatevirtual |
Implements art::Worker.
Definition at line 101 of file OutputWorker.cc.
References art::Worker::counts_failed_, art::Worker::counts_passed_, art::Worker::counts_run_, and module_.
|
overrideprivatevirtual |
Implements art::Worker.
Definition at line 59 of file OutputWorker.cc.
References module_.
|
overrideprivatevirtual |
Implements art::Worker.
Definition at line 71 of file OutputWorker.cc.
References module_.
|
overrideprivatevirtual |
Implements art::Worker.
Definition at line 53 of file OutputWorker.cc.
References module_.
|
overrideprivatevirtual |
Implements art::Worker.
Definition at line 65 of file OutputWorker.cc.
References module_.
|
overrideprivatevirtual |
|
inherited |
Definition at line 250 of file Worker.cc.
References art::Worker::actReg_, art::errors::BadAlloc, art::errors::BadExceptionType, art::BeginRun, art::BeginSubRun, art::Worker::cached_exception_, art::Worker::doBegin(), art::Worker::doEnd(), art::EndRun, art::EndSubRun, art::Worker::ExceptionThrown, art::Worker::Fail, art::Worker::md_, art::errors::OtherArt, art::Worker::Pass, art::Worker::Ready, art::errors::ScheduleExecutionFailure, art::ActivityRegistry::sPostModuleBeginRun, art::ActivityRegistry::sPostModuleBeginSubRun, art::ActivityRegistry::sPostModuleEndRun, art::ActivityRegistry::sPostModuleEndSubRun, art::ActivityRegistry::sPreModuleBeginRun, art::ActivityRegistry::sPreModuleBeginSubRun, art::ActivityRegistry::sPreModuleEndRun, art::ActivityRegistry::sPreModuleEndSubRun, art::Worker::state_, art::errors::StdException, art::errors::Unknown, and art::Worker::Working.
|
inherited |
Referenced by art::Worker::isUnique().
|
inherited |
Definition at line 366 of file Worker.cc.
References art::Worker::actions_, art::Worker::actReg_, art::errors::BadAlloc, art::errors::BadExceptionType, art::Worker::cached_exception_, art::Worker::counts_failed_, art::Worker::counts_passed_, art::Worker::counts_thrown_, art::Worker::counts_visited_, art::Worker::doProcess(), art::Worker::ExceptionThrown, art::Worker::Fail, art::actions::FailModule, art::ActionTable::find(), art::actions::IgnoreCompletely, art::Worker::md_, art::errors::OtherArt, art::Worker::Pass, art::Worker::returnCode_, art::ActivityRegistry::sPostModule, art::ActivityRegistry::sPreModule, art::Worker::state_, art::errors::StdException, art::errors::Unknown, and art::Worker::Working.
|
inherited |
Definition at line 207 of file Worker.cc.
References art::Worker::actReg_, art::Worker::doEndJob(), art::Worker::md_, art::ActivityRegistry::sPostModuleEndJob, and art::ActivityRegistry::sPreModuleEndJob.
Granularity art::OutputWorker::fileGranularity | ( | ) | const |
bool art::OutputWorker::fileIsOpen | ( | ) | const |
void art::OutputWorker::incrementInputFileNumber | ( | ) |
|
inherited |
Definition at line 592 of file Worker.cc.
References art::Worker::counts_visited_, art::Worker::doWork_event(), art::ScheduleID::first(), art::Worker::md_, art::ModuleDescription::moduleThreadingType(), art::replicated, art::Worker::runWorker(), art::ModuleContext::scheduleID(), art::Worker::scheduleID_, art::Worker::serialTaskQueueChain(), TDEBUG_BEGIN_FUNC_SI, TDEBUG_END_FUNC_SI, TDEBUG_FUNC_SI, art::Worker::waitingTasks_, and art::Worker::workStarted_.
|
protectedinherited |
Definition at line 127 of file Worker.cc.
References art::Worker::md_, and art::ModuleDescription::moduleLabel().
Referenced by closeFile(), openFile(), and OutputWorker().
std::string const & art::OutputWorker::lastClosedFileName | ( | ) | const |
void art::OutputWorker::openFile | ( | FileBlock const & | fb | ) |
Definition at line 139 of file OutputWorker.cc.
References actReg_, ci_, art::Worker::label(), module_, and art::ActivityRegistry::sPostOpenOutputFile.
bool art::OutputWorker::requestsToCloseFile | ( | ) | const |
|
inherited |
Definition at line 149 of file Worker.cc.
References art::Worker::cached_exception_, art::Worker::Ready, art::Worker::returnCode_, art::Worker::scheduleID_, art::Worker::state_, TDEBUG_FUNC_SI, art::Worker::waitingTasks_, and art::Worker::workStarted_.
|
inherited |
Definition at line 226 of file Worker.cc.
References art::Worker::actReg_, art::Worker::doRespondToCloseInputFile(), art::Worker::md_, art::ActivityRegistry::sPostModuleRespondToCloseInputFile, and art::ActivityRegistry::sPreModuleRespondToCloseInputFile.
|
inherited |
Definition at line 242 of file Worker.cc.
References art::Worker::actReg_, art::Worker::doRespondToCloseOutputFiles(), art::Worker::md_, art::ActivityRegistry::sPostModuleRespondToCloseOutputFiles, and art::ActivityRegistry::sPreModuleRespondToCloseOutputFiles.
|
inherited |
Definition at line 218 of file Worker.cc.
References art::Worker::actReg_, art::Worker::doRespondToOpenInputFile(), art::Worker::md_, art::ActivityRegistry::sPostModuleRespondToOpenInputFile, and art::ActivityRegistry::sPreModuleRespondToOpenInputFile.
|
inherited |
Definition at line 234 of file Worker.cc.
References art::Worker::actReg_, art::Worker::doRespondToOpenOutputFiles(), art::Worker::md_, art::ActivityRegistry::sPostModuleRespondToOpenOutputFiles, and art::ActivityRegistry::sPreModuleRespondToOpenOutputFiles.
|
inherited |
|
inherited |
Definition at line 466 of file Worker.cc.
References art::Worker::actions_, art::Worker::actReg_, art::errors::BadAlloc, art::errors::BadExceptionType, art::Worker::cached_exception_, art::Worker::counts_failed_, art::Worker::counts_passed_, art::Worker::counts_thrown_, art::Worker::doProcess(), art::Worker::ExceptionThrown, art::Worker::Fail, art::actions::FailModule, art::actions::FailPath, art::ActionTable::find(), art::actions::IgnoreCompletely, art::Worker::md_, art::ModuleContext::onEndPath(), art::errors::OtherArt, art::Worker::Pass, art::Worker::returnCode_, art::ModuleContext::scheduleID(), art::actions::SkipEvent, art::ActivityRegistry::sPostModule, art::ActivityRegistry::sPreModule, art::Worker::state_, art::errors::StdException, TDEBUG_BEGIN_TASK_SI, TDEBUG_END_TASK_SI, art::errors::Unknown, art::Worker::waitingTasks_, and art::Worker::Working.
Referenced by art::Worker::isUnique().
|
inlineinherited |
void art::OutputWorker::selectProducts | ( | ProductTables const & | tables | ) |
|
inherited |
Definition at line 140 of file Worker.cc.
References art::Worker::doSerialTaskQueueChain().
Referenced by art::Worker::isUnique().
void art::OutputWorker::setFileStatus | ( | OutputFileStatus | ofs | ) |
void art::OutputWorker::setRunAuxiliaryRangeSetID | ( | RangeSet const & | rs | ) |
void art::OutputWorker::setSubRunAuxiliaryRangeSetID | ( | RangeSet const & | rs | ) |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
void art::OutputWorker::writeEvent | ( | EventPrincipal & | ep, |
PathContext const & | pc | ||
) |
Definition at line 160 of file OutputWorker.cc.
References actReg_, art::Worker::description(), module_, art::ActivityRegistry::sPostWriteEvent, and art::ActivityRegistry::sPreWriteEvent.
void art::OutputWorker::writeRun | ( | RunPrincipal & | rp | ) |
void art::OutputWorker::writeSubRun | ( | SubRunPrincipal & | srp | ) |
|
private |
Definition at line 65 of file OutputWorker.h.
Referenced by closeFile(), openFile(), OutputWorker(), and writeEvent().
|
private |
Definition at line 64 of file OutputWorker.h.
Referenced by closeFile(), openFile(), and OutputWorker().
|
protectedinherited |
Definition at line 101 of file Worker.h.
Referenced by art::WorkerT< T >::doProcess(), doProcess(), art::Worker::doWork_event(), art::Worker::runWorker(), and art::Worker::timesFailed().
|
protectedinherited |
Definition at line 100 of file Worker.h.
Referenced by art::WorkerT< T >::doProcess(), doProcess(), art::Worker::doWork_event(), art::Worker::runWorker(), and art::Worker::timesPassed().
|
protectedinherited |
Definition at line 99 of file Worker.h.
Referenced by art::WorkerT< T >::doProcess(), doProcess(), and art::Worker::timesRun().
|
protectedinherited |
Definition at line 102 of file Worker.h.
Referenced by art::Worker::doWork_event(), art::Worker::runWorker(), and art::Worker::timesExcept().
|
protectedinherited |
Definition at line 98 of file Worker.h.
Referenced by art::Worker::doWork_event(), art::Worker::isUnique(), and art::Worker::timesVisited().
|
private |
Definition at line 66 of file OutputWorker.h.
|
private |
Definition at line 63 of file OutputWorker.h.
Referenced by closeFile(), doBegin(), doBeginJob(), doEnd(), doEndJob(), doProcess(), doRespondToCloseInputFile(), doRespondToCloseOutputFiles(), doRespondToOpenInputFile(), doRespondToOpenOutputFiles(), doSerialTaskQueueChain(), fileGranularity(), fileIsOpen(), incrementInputFileNumber(), lastClosedFileName(), openFile(), OutputWorker(), requestsToCloseFile(), selectProducts(), setFileStatus(), setRunAuxiliaryRangeSetID(), setSubRunAuxiliaryRangeSetID(), writeEvent(), writeRun(), and writeSubRun().