1 #ifndef FWCore_Framework_Path_h
2 #define FWCore_Framework_Path_h
34 class EventTransitionInfo;
35 class ModuleDescription;
36 class PathStatusInserter;
54 std::shared_ptr<ActivityRegistry> reg,
56 std::atomic<bool>* stopProcessEvent,
65 typename T::TransitionInfoType
const&,
68 typename T::Context
const*);
131 std::
string const&
id) const;
137 std::
string const&
id,
147 unsigned int iModuleIndex,
152 oneapi::tbb::task_group& iGroup);
158 oneapi::tbb::task_group& iGroup);
162 template <
typename T>
163 class PathSignalSentry {
171 T::prePathSignal(a_, pathContext_);
173 ~PathSignalSentry() {
176 T::postPathSignal(a_, status, pathContext_);
187 template <
typename T>
189 typename T::TransitionInfoType
const&
info,
192 typename T::Context
const*
context) {
std::string const & pathName() const
std::atomic< unsigned int > modulesToRun_
void recordStatus(int nwrwue, hlt::HLTState state)
int timesFailed(size_type i) const
std::vector< WorkerInPath > WorkersInPath
void threadsafe_setFailedModuleInfo(int nwrwue, std::exception_ptr)
WorkersInPath::size_type size_type
HLTState
status of a trigger path
void runNextWorkerAsync(unsigned int iNextModuleIndex, EventTransitionInfo const &, ServiceToken const &, StreamID const &, StreamContext const *, oneapi::tbb::task_group &iGroup)
int timesPassed(size_type i) const
WaitingTaskList waitingTasks_
void setPathStatusInserter(PathStatusInserter *pathStatusInserter, Worker *pathStatusInserterWorker)
void workerFinished(std::exception_ptr const *, unsigned int iModuleIndex, EventTransitionInfo const &, ServiceToken const &, StreamID const &, StreamContext const *, oneapi::tbb::task_group &iGroup)
Path & operator=(Path const &)=delete
std::shared_ptr< HLTGlobalStatus > TrigResPtr
void finished(std::exception_ptr, StreamContext const *, EventTransitionInfo const &, StreamID const &)
#define CMS_THREAD_GUARD(_var_)
void updateCounters(hlt::HLTState state)
std::atomic< bool > *const stopProcessingEvent_
ExceptionToActionTable const *const act_table_
static void exceptionContext(cms::Exception &ex, bool isEvent, bool begin, BranchType branchType, ModuleDescription const &, std::string const &id, PathContext 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)
int timesVisited(size_type i) const
std::shared_ptr< ActivityRegistry > const actReg_
void setEarlyDeleteHelpers(std::map< const Worker *, EarlyDeleteHelper * > const &)
std::string const & name() const
Worker const * getWorker(size_type i) const
bool handleWorkerFailure(cms::Exception &e, int nwrwue, bool isEvent, bool begin, BranchType branchType, ModuleDescription const &, std::string const &id) const
int timesExcept(size_type i) const
std::atomic< bool > stateLock_
void runAllModulesAsync(WaitingTaskHolder, typename T::TransitionInfoType const &, ServiceToken const &, StreamID const &, typename T::Context const *)
Worker * pathStatusInserterWorker_
void processOneOccurrenceAsync(WaitingTaskHolder, EventTransitionInfo const &, ServiceToken const &, StreamID const &, StreamContext const *)
PathStatusInserter * pathStatusInserter_