#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 |
unsigned int | bitPosition (size_type i) const |
void | clearCounters () |
Worker const * | getWorker (size_type i) const |
std::string const & | name () const |
Path & | operator= (Path const &)=delete |
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 (WaitingTaskHolder, EventTransitionInfo const &, ServiceToken const &, StreamID const &, StreamContext const *) |
template<typename T > | |
void | runAllModulesAsync (WaitingTaskHolder, typename T::TransitionInfoType 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 |
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 (std::exception_ptr, StreamContext const *, EventTransitionInfo const &, StreamID const &) |
bool | handleWorkerFailure (cms::Exception &e, int nwrwue, bool isEvent, bool begin, BranchType branchType, ModuleDescription const &, std::string const &id) const |
void | recordStatus (int nwrwue, hlt::HLTState state) |
void | runNextWorkerAsync (unsigned int iNextModuleIndex, EventTransitionInfo const &, ServiceToken const &, StreamID const &, StreamContext const *, oneapi::tbb::task_group &iGroup) |
void | threadsafe_setFailedModuleInfo (int nwrwue, std::exception_ptr) |
void | updateCounters (hlt::HLTState state) |
void | workerFinished (std::exception_ptr const *, unsigned int iModuleIndex, EventTransitionInfo const &, ServiceToken const &, StreamID const &, StreamContext const *, oneapi::tbb::task_group &iGroup) |
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 *const | act_table_ |
std::shared_ptr< ActivityRegistry > const | actReg_ |
int const | bitpos_ |
int | failedModuleIndex_ |
std::atomic< unsigned int > | modulesToRun_ |
PathContext | pathContext_ |
PathStatusInserter * | pathStatusInserter_ |
Worker * | pathStatusInserterWorker_ |
State | state_ |
std::atomic< bool > | stateLock_ = false |
std::atomic< bool > *const | stopProcessingEvent_ |
int | timesExcept_ |
int | timesFailed_ |
int | timesPassed_ |
int | timesRun_ |
TrigResPtr const | 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 | ||
) |
Definition at line 18 of file Path.cc.
References modulesToRun_, pathContext_, and workers_.
edm::Path::Path | ( | Path const & | r | ) |
Definition at line 48 of file Path.cc.
References modulesToRun_, pathContext_, and workers_.
|
inline |
|
inline |
void edm::Path::clearCounters | ( | ) |
Definition at line 198 of file Path.cc.
References edm::WorkerInPath::clearCounters(), edm::for_all(), timesExcept_, timesFailed_, timesPassed_, timesRun_, and workers_.
Referenced by edm::StreamSchedule::clearCounters().
|
staticprivate |
Definition at line 119 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 324 of file Path.cc.
References actReg_, bitPosition(), CMS_SA_ALLOW, edm::WaitingTaskList::doneWaiting(), failedModuleIndex_, 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 89 of file Path.h.
References mps_fire::i, and workers_.
Referenced by setEarlyDeleteHelpers().
|
private |
Definition at line 70 of file Path.cc.
References act_table_, writedatasetfile::action, edm::Exception::codeToString(), submitPVResolutionJobs::desc, MillePedeFileConverter_cfg::e, exceptionContext(), edm::exception_actions::FailPath, edm::ExceptionToActionTable::find(), pathContext_, edm::printCmsExceptionWarning(), edm::errors::ProductNotFound, edm::exception_actions::Rethrow, edm::exception_actions::SkipEvent, stopProcessingEvent_, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by workerFinished().
|
inline |
Definition at line 74 of file Path.h.
References pathContext_, and edm::PathContext::pathName().
Referenced by config.CFG::__str__(), edm::StreamSchedule::availablePaths(), validation.Sample::digest(), VIDSelectorBase.VIDSelectorBase::initialize(), edm::StreamSchedule::moduleDescriptionsInEndPath(), edm::StreamSchedule::moduleDescriptionsInPath(), and edm::StreamSchedule::modulesInPath().
void edm::Path::processOneOccurrenceAsync | ( | WaitingTaskHolder | iTask, |
EventTransitionInfo const & | iInfo, | ||
ServiceToken const & | iToken, | ||
StreamID const & | iStreamID, | ||
StreamContext const * | iStreamContext | ||
) |
Definition at line 218 of file Path.cc.
References actReg_, edm::WaitingTaskList::add(), failedModuleIndex_, finished(), edm::WaitingTaskHolder::group(), modulesToRun_, edm::hlt::Pass, pathContext_, edm::WaitingTaskList::reset(), runNextWorkerAsync(), state_, timesRun_, waitingTasks_, and workers_.
|
private |
void edm::Path::runAllModulesAsync | ( | WaitingTaskHolder | task, |
typename T::TransitionInfoType const & | info, | ||
ServiceToken const & | token, | ||
StreamID const & | streamID, | ||
typename T::Context const * | context | ||
) |
Definition at line 189 of file Path.h.
References visDQMUpload::context, info(), TrackValidation_cff::task, unpackBuffers-CaloStage2::token, and workers_.
|
private |
Definition at line 353 of file Path.cc.
References info(), edm::ServiceWeakToken::lock(), edm::make_waiting_task(), workerFinished(), and workers_.
Referenced by processOneOccurrenceAsync(), and workerFinished().
void edm::Path::setEarlyDeleteHelpers | ( | std::map< const Worker *, EarlyDeleteHelper *> const & | iWorkerToDeleter | ) |
void edm::Path::setPathStatusInserter | ( | PathStatusInserter * | pathStatusInserter, |
Worker * | pathStatusInserterWorker | ||
) |
Definition at line 213 of file Path.cc.
References pathStatusInserter_, and pathStatusInserterWorker_.
|
inline |
Definition at line 84 of file Path.h.
References workers_.
Referenced by ntupleDataFormat._Collection::__iter__(), ntupleDataFormat._Collection::__len__(), and setEarlyDeleteHelpers().
|
private |
Definition at line 149 of file Path.cc.
References edm::hlt::Exception, edm::hlt::Fail, failedModuleIndex_, state_, and stateLock_.
Referenced by workerFinished().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
Definition at line 181 of file Path.cc.
References edm::hlt::Exception, edm::hlt::Fail, edm::hlt::Pass, timesExcept_, timesFailed_, and timesPassed_.
Referenced by finished().
|
private |
Definition at line 244 of file Path.cc.
References cms::cuda::assert(), cms::Exception::clone(), CMS_SA_ALLOW, submitPVResolutionJobs::desc, cppFunctionSkipper::exception, finished(), handleWorkerFailure(), edm::EventPrincipal::id(), edm::InEvent, modulesToRun_, edm::WaitingTaskList::presetTaskAsFailed(), edm::EventTransitionInfo::principal(), runNextWorkerAsync(), edm::errors::StdException, stopProcessingEvent_, threadsafe_setFailedModuleInfo(), edm::errors::Unknown, waitingTasks_, and workers_.
Referenced by runNextWorkerAsync().
|
private |
Definition at line 112 of file Path.h.
Referenced by handleWorkerFailure().
|
private |
Definition at line 111 of file Path.h.
Referenced by finished(), and processOneOccurrenceAsync().
|
private |
Definition at line 108 of file Path.h.
Referenced by bitPosition(), and recordStatus().
|
private |
Definition at line 105 of file Path.h.
Referenced by finished(), processOneOccurrenceAsync(), and threadsafe_setFailedModuleInfo().
|
private |
Definition at line 119 of file Path.h.
Referenced by Path(), processOneOccurrenceAsync(), and workerFinished().
|
private |
Definition at line 116 of file Path.h.
Referenced by finished(), handleWorkerFailure(), name(), Path(), and processOneOccurrenceAsync().
|
private |
Definition at line 121 of file Path.h.
Referenced by finished(), and setPathStatusInserter().
|
private |
Definition at line 122 of file Path.h.
Referenced by finished(), and setPathStatusInserter().
|
private |
Definition at line 106 of file Path.h.
Referenced by finished(), processOneOccurrenceAsync(), and threadsafe_setFailedModuleInfo().
|
private |
Definition at line 104 of file Path.h.
Referenced by threadsafe_setFailedModuleInfo().
|
private |
Definition at line 118 of file Path.h.
Referenced by handleWorkerFailure(), and workerFinished().
|
private |
Definition at line 100 of file Path.h.
Referenced by clearCounters(), timesExcept(), and updateCounters().
|
private |
Definition at line 99 of file Path.h.
Referenced by clearCounters(), timesFailed(), and updateCounters().
|
private |
Definition at line 98 of file Path.h.
Referenced by clearCounters(), timesPassed(), and updateCounters().
|
private |
Definition at line 97 of file Path.h.
Referenced by clearCounters(), processOneOccurrenceAsync(), and timesRun().
|
private |
Definition at line 109 of file Path.h.
Referenced by recordStatus().
|
private |
Definition at line 117 of file Path.h.
Referenced by finished(), processOneOccurrenceAsync(), and workerFinished().
|
private |
Definition at line 114 of file Path.h.
Referenced by bitPosition(), clearCounters(), getWorker(), Path(), processOneOccurrenceAsync(), runAllModulesAsync(), runNextWorkerAsync(), size(), timesExcept(), timesFailed(), timesPassed(), timesVisited(), and workerFinished().