#include <Path.h>
Public Types | |
typedef WorkersInPath::size_type | size_type |
typedef hlt::HLTState | State |
typedef std::shared_ptr< HLTGlobalStatus > | TrigResPtr |
typedef std::vector< WorkerInPath > | WorkersInPath |
Public Member Functions | |
int | bitPosition () const |
void | clearCounters () |
Worker const * | getWorker (size_type i) const |
std::string const & | name () const |
Path (int bitpos, std::string const &path_name, WorkersInPath const &workers, TrigResPtr trptr, ExceptionToActionTable const &actions, std::shared_ptr< ActivityRegistry > reg, StreamContext const *streamContext, std::atomic< bool > *stopProcessEvent, PathContext::PathType pathType) | |
Path (Path const &) | |
void | processOneOccurrenceAsync (WaitingTask *, EventPrincipal const &, EventSetupImpl const &, ServiceToken const &, StreamID const &, StreamContext const *) |
template<typename T > | |
void | runAllModulesAsync (WaitingTask *, typename T::MyPrincipal const &, EventSetupImpl const &, ServiceToken const &, StreamID const &, typename T::Context const *) |
void | setEarlyDeleteHelpers (std::map< const Worker *, EarlyDeleteHelper * > const &) |
void | setPathStatusInserter (PathStatusInserter *pathStatusInserter, Worker *pathStatusInserterWorker) |
size_type | size () const |
State | state () const |
int | timesExcept () const |
int | timesExcept (size_type i) const |
int | timesFailed () const |
int | timesFailed (size_type i) const |
int | timesPassed () const |
int | timesPassed (size_type i) const |
int | timesRun () const |
int | timesVisited (size_type i) const |
Private Member Functions | |
void | finished (int iModuleIndex, bool iSucceeded, std::exception_ptr, StreamContext const *, EventPrincipal const &iEP, EventSetupImpl const &iES, StreamID const &streamID) |
void | handleEarlyFinish (EventPrincipal const &) |
void | handleEarlyFinish (RunPrincipal const &) |
void | handleEarlyFinish (LuminosityBlockPrincipal const &) |
bool | handleWorkerFailure (cms::Exception &e, int nwrwue, bool isEvent, bool begin, BranchType branchType, ModuleDescription const &, std::string const &id) |
Path const & | operator= (Path const &)=delete |
void | recordStatus (int nwrwue, bool isEvent) |
void | runNextWorkerAsync (unsigned int iNextModuleIndex, EventPrincipal const &, EventSetupImpl const &, ServiceToken const &, StreamID const &, StreamContext const *) |
void | updateCounters (bool succeed, bool isEvent) |
void | workerFinished (std::exception_ptr const *iException, unsigned int iModuleIndex, EventPrincipal const &iEP, EventSetupImpl const &iES, ServiceToken const &iToken, StreamID const &iID, StreamContext const *iContext) |
Static Private Member Functions | |
static void | exceptionContext (cms::Exception &ex, bool isEvent, bool begin, BranchType branchType, ModuleDescription const &, std::string const &id, PathContext const &) |
Private Attributes | |
ExceptionToActionTable const * | act_table_ |
std::shared_ptr< ActivityRegistry > | actReg_ |
int | bitpos_ |
std::vector< EarlyDeleteHelper * > | earlyDeleteHelpers_ |
PathContext | pathContext_ |
PathStatusInserter * | pathStatusInserter_ |
Worker * | pathStatusInserterWorker_ |
State | state_ |
std::atomic< bool > * | stopProcessingEvent_ |
int | timesExcept_ |
int | timesFailed_ |
int | timesPassed_ |
int | timesRun_ |
TrigResPtr | trptr_ |
WaitingTaskList | waitingTasks_ |
WorkersInPath | workers_ |
typedef WorkersInPath::size_type edm::Path::size_type |
typedef hlt::HLTState edm::Path::State |
typedef std::shared_ptr<HLTGlobalStatus> edm::Path::TrigResPtr |
typedef std::vector<WorkerInPath> edm::Path::WorkersInPath |
edm::Path::Path | ( | int | bitpos, |
std::string const & | path_name, | ||
WorkersInPath const & | workers, | ||
TrigResPtr | trptr, | ||
ExceptionToActionTable const & | actions, | ||
std::shared_ptr< ActivityRegistry > | reg, | ||
StreamContext const * | streamContext, | ||
std::atomic< bool > * | stopProcessEvent, | ||
PathContext::PathType | pathType | ||
) |
edm::Path::Path | ( | Path const & | r | ) |
Definition at line 43 of file Path.cc.
References pathContext_, and workers_.
|
inline |
void edm::Path::clearCounters | ( | ) |
Definition at line 164 of file Path.cc.
References edm::WorkerInPath::clearCounters(), edm::for_all(), timesExcept_, timesFailed_, timesPassed_, timesRun_, and workers_.
Referenced by edm::StreamSchedule::clearCounters(), and name().
|
staticprivate |
Definition at line 116 of file Path.cc.
References cms::Exception::addContext(), triggerObjects_cff::id, edm::InLumi, edm::InRun, and edm::PathContext::pathName().
Referenced by handleWorkerFailure().
|
private |
Definition at line 284 of file Path.cc.
References actReg_, edm::WaitingTaskList::doneWaiting(), pathContext_, pathStatusInserter_, pathStatusInserterWorker_, recordStatus(), edm::Worker::runModuleDirectly(), edm::PathStatusInserter::setPathStatus(), state_, mps_update::status, updateCounters(), and waitingTasks_.
Referenced by processOneOccurrenceAsync(), and workerFinished().
Definition at line 96 of file Path.h.
References operator=(), setEarlyDeleteHelpers(), setPathStatusInserter(), and workers_.
Referenced by edm::fillModuleInPathSummary(), and setEarlyDeleteHelpers().
|
private |
Definition at line 191 of file Path.cc.
References earlyDeleteHelpers_.
Referenced by workerFinished().
|
inlineprivate |
|
inlineprivate |
Definition at line 158 of file Path.h.
References a, pathContext_, runNextWorkerAsync(), state(), state_, mps_update::status, and workerFinished().
|
private |
Definition at line 64 of file Path.cc.
References act_table_, writedatasetfile::action, cms::Exception::addAdditionalInfo(), cms::Exception::category(), edm::Exception::codeToString(), cms::Exception::context(), edm::hlt::Exception, exceptionContext(), edm::exception_actions::FailPath, edm::ExceptionToActionTable::find(), pathContext_, edm::printCmsExceptionWarning(), edm::errors::ProductNotFound, cms::Exception::raise(), recordStatus(), edm::exception_actions::Rethrow, edm::exception_actions::SkipEvent, state_, stopProcessingEvent_, AlCaHLTBitMon_QueryRunRegistry::string, and timesExcept_.
Referenced by workerFinished().
|
inline |
Definition at line 80 of file Path.h.
References clearCounters(), pathContext_, and edm::PathContext::pathName().
Referenced by config.CFG::__str__(), edm::StreamSchedule::availablePaths(), validation.Sample::digest(), edm::fillPathSummary(), VIDSelectorBase.VIDSelectorBase::initialize(), edm::StreamSchedule::moduleDescriptionsInEndPath(), edm::StreamSchedule::moduleDescriptionsInPath(), edm::StreamSchedule::modulesInPath(), and Vispa.Views.PropertyView.Property::valueChanged().
Referenced by getWorker().
void edm::Path::processOneOccurrenceAsync | ( | WaitingTask * | iTask, |
EventPrincipal const & | iEP, | ||
EventSetupImpl const & | iES, | ||
ServiceToken const & | iToken, | ||
StreamID const & | iStreamID, | ||
StreamContext const * | iStreamContext | ||
) |
Definition at line 197 of file Path.cc.
References actReg_, edm::WaitingTaskList::add(), finished(), pathContext_, edm::hlt::Ready, edm::WaitingTaskList::reset(), runNextWorkerAsync(), state_, timesRun_, waitingTasks_, and workers_.
|
private |
Definition at line 146 of file Path.cc.
References bitpos_, state_, and trptr_.
Referenced by finished(), and handleWorkerFailure().
void edm::Path::runAllModulesAsync | ( | WaitingTask * | task, |
typename T::MyPrincipal const & | p, | ||
EventSetupImpl const & | es, | ||
ServiceToken const & | token, | ||
StreamID const & | streamID, | ||
typename T::Context const * | context | ||
) |
Definition at line 203 of file Path.h.
References AlCaHLTBitMon_ParallelJobs::p, TrackValidation_cff::task, and workers_.
|
private |
Definition at line 316 of file Path.cc.
References edm::make_waiting_task(), workerFinished(), and workers_.
Referenced by handleEarlyFinish(), processOneOccurrenceAsync(), and workerFinished().
void edm::Path::setEarlyDeleteHelpers | ( | std::map< const Worker *, EarlyDeleteHelper * > const & | iWorkerToDeleter | ) |
Definition at line 170 of file Path.cc.
References earlyDeleteHelpers_, runEdmFileComparison::found, getWorker(), size(), and groupFilesInBlocks::temp.
Referenced by getWorker().
void edm::Path::setPathStatusInserter | ( | PathStatusInserter * | pathStatusInserter, |
Worker * | pathStatusInserterWorker | ||
) |
Definition at line 186 of file Path.cc.
References pathStatusInserter_, and pathStatusInserterWorker_.
Referenced by getWorker().
|
inline |
Definition at line 91 of file Path.h.
References workers_.
Referenced by ntupleDataFormat._Collection::__iter__(), ntupleDataFormat._Collection::__len__(), edm::fillPathSummary(), and setEarlyDeleteHelpers().
|
inline |
|
inline |
Definition at line 87 of file Path.h.
References timesExcept_.
Referenced by edm::fillModuleInPathSummary(), and edm::fillPathSummary().
|
inline |
|
inline |
Definition at line 86 of file Path.h.
References timesFailed_.
Referenced by edm::fillModuleInPathSummary(), and edm::fillPathSummary().
|
inline |
|
inline |
Definition at line 85 of file Path.h.
References timesPassed_.
Referenced by edm::fillModuleInPathSummary(), and edm::fillPathSummary().
|
inline |
|
inline |
|
inline |
Definition at line 92 of file Path.h.
References workers_.
Referenced by edm::fillModuleInPathSummary().
|
private |
Definition at line 152 of file Path.cc.
References edm::hlt::Fail, edm::hlt::Pass, state_, timesFailed_, and timesPassed_.
Referenced by finished().
|
private |
Definition at line 221 of file Path.cc.
References cms::Exception::clone(), finished(), handleEarlyFinish(), handleWorkerFailure(), edm::EventPrincipal::id(), edm::InEvent, edm::WaitingTaskList::presetTaskAsFailed(), runNextWorkerAsync(), stopProcessingEvent_, waitingTasks_, and workers_.
Referenced by handleEarlyFinish(), and runNextWorkerAsync().
|
private |
Definition at line 117 of file Path.h.
Referenced by handleWorkerFailure().
|
private |
Definition at line 116 of file Path.h.
Referenced by finished(), and processOneOccurrenceAsync().
|
private |
Definition at line 114 of file Path.h.
Referenced by bitPosition(), and recordStatus().
|
private |
Definition at line 120 of file Path.h.
Referenced by handleEarlyFinish(), and setEarlyDeleteHelpers().
|
private |
Definition at line 122 of file Path.h.
Referenced by finished(), handleEarlyFinish(), handleWorkerFailure(), name(), Path(), and processOneOccurrenceAsync().
|
private |
Definition at line 126 of file Path.h.
Referenced by finished(), and setPathStatusInserter().
|
private |
Definition at line 127 of file Path.h.
Referenced by finished(), and setPathStatusInserter().
|
private |
Definition at line 112 of file Path.h.
Referenced by finished(), handleEarlyFinish(), handleWorkerFailure(), processOneOccurrenceAsync(), recordStatus(), state(), and updateCounters().
|
private |
Definition at line 124 of file Path.h.
Referenced by handleWorkerFailure(), and workerFinished().
|
private |
Definition at line 110 of file Path.h.
Referenced by clearCounters(), handleWorkerFailure(), and timesExcept().
|
private |
Definition at line 109 of file Path.h.
Referenced by clearCounters(), timesFailed(), and updateCounters().
|
private |
Definition at line 108 of file Path.h.
Referenced by clearCounters(), timesPassed(), and updateCounters().
|
private |
Definition at line 107 of file Path.h.
Referenced by clearCounters(), processOneOccurrenceAsync(), and timesRun().
|
private |
Definition at line 115 of file Path.h.
Referenced by recordStatus().
|
private |
Definition at line 123 of file Path.h.
Referenced by finished(), processOneOccurrenceAsync(), and workerFinished().
|
private |
Definition at line 119 of file Path.h.
Referenced by clearCounters(), getWorker(), Path(), processOneOccurrenceAsync(), runAllModulesAsync(), runNextWorkerAsync(), size(), timesExcept(), timesFailed(), timesPassed(), timesVisited(), and workerFinished().