Go to the documentation of this file. 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*);
110 std::shared_ptr<ActivityRegistry>
const actReg_;
147 unsigned int iModuleIndex,
152 tbb::task_group& iGroup);
158 tbb::task_group& iGroup);
162 template <
typename T>
163 class PathSignalSentry {
169 : a_(
a), nwrwue_(nwrwue), state_(
state), pathContext_(pathContext) {
171 T::prePathSignal(a_, pathContext_);
173 ~PathSignalSentry() {
174 HLTPathStatus
status(state_, nwrwue_);
176 T::postPathSignal(a_,
status, pathContext_);
183 PathContext
const* pathContext_;
187 template <
typename T>
189 typename T::TransitionInfoType
const&
info,
192 typename T::Context
const*
context) {
WorkersInPath::size_type size_type
HLTState
status of a trigger path
Worker * pathStatusInserterWorker_
PathStatusInserter * pathStatusInserter_
Worker const * getWorker(size_type i) const
std::atomic< bool > stateLock_
void threadsafe_setFailedModuleInfo(int nwrwue, std::exception_ptr)
WaitingTaskList waitingTasks_
std::atomic< unsigned int > modulesToRun_
void workerFinished(std::exception_ptr const *, unsigned int iModuleIndex, EventTransitionInfo const &, ServiceToken const &, StreamID const &, StreamContext const *, tbb::task_group &iGroup)
std::vector< WorkerInPath > WorkersInPath
std::shared_ptr< HLTGlobalStatus > TrigResPtr
int timesExcept(size_type i) const
std::atomic< bool > *const stopProcessingEvent_
void updateCounters(hlt::HLTState state)
void setPathStatusInserter(PathStatusInserter *pathStatusInserter, Worker *pathStatusInserterWorker)
Path & operator=(Path const &)=delete
int timesVisited(size_type i) const
int timesFailed(size_type i) const
void finished(std::exception_ptr, StreamContext const *, EventTransitionInfo const &, StreamID 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)
void runNextWorkerAsync(unsigned int iNextModuleIndex, EventTransitionInfo const &, ServiceToken const &, StreamID const &, StreamContext const *, tbb::task_group &iGroup)
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 &)
const std::shared_ptr< ActivityRegistry > actReg_
std::string const & pathName() const
void setEarlyDeleteHelpers(std::map< const Worker *, EarlyDeleteHelper * > const &)
std::string const & name() const
void runAllModulesAsync(WaitingTaskHolder, typename T::TransitionInfoType const &, ServiceToken const &, StreamID const &, typename T::Context const *)
void processOneOccurrenceAsync(WaitingTaskHolder, EventTransitionInfo const &, ServiceToken const &, StreamID const &, StreamContext const *)
roAction_t actions[nactions]
bool handleWorkerFailure(cms::Exception &e, int nwrwue, bool isEvent, bool begin, BranchType branchType, ModuleDescription const &, std::string const &id) const
int timesPassed(size_type i) const
void recordStatus(int nwrwue, hlt::HLTState state)
#define CMS_THREAD_GUARD(_var_)