Go to the documentation of this file. 1 #ifndef FWCore_Framework_Path_h
2 #define FWCore_Framework_Path_h
33 class EventTransitionInfo;
34 class ModuleDescription;
35 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,
160 template <
typename T>
161 class PathSignalSentry {
167 : a_(
a), nwrwue_(nwrwue), state_(
state), pathContext_(pathContext) {
169 T::prePathSignal(a_, pathContext_);
171 ~PathSignalSentry() {
172 HLTPathStatus
status(state_, nwrwue_);
174 T::postPathSignal(a_,
status, pathContext_);
181 PathContext
const* pathContext_;
185 template <
typename T>
187 typename T::TransitionInfoType
const&
info,
190 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
void runAllModulesAsync(WaitingTask *, typename T::TransitionInfoType const &, ServiceToken const &, StreamID const &, typename T::Context const *)
std::atomic< bool > stateLock_
void threadsafe_setFailedModuleInfo(int nwrwue, std::exception_ptr)
WaitingTaskList waitingTasks_
std::atomic< unsigned int > modulesToRun_
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)
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_
void runNextWorkerAsync(unsigned int iNextModuleIndex, EventTransitionInfo const &, ServiceToken const &, StreamID const &, StreamContext const *)
std::string const & pathName() const
void setEarlyDeleteHelpers(std::map< const Worker *, EarlyDeleteHelper * > const &)
std::string const & name() const
void workerFinished(std::exception_ptr const *, unsigned int iModuleIndex, 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_)
void processOneOccurrenceAsync(WaitingTask *, EventTransitionInfo const &, ServiceToken const &, StreamID const &, StreamContext const *)