16 #include "hep_concurrency/WaitingTask.h" 27 TriggerPathsExecutor::TriggerPathsExecutor(
31 std::unique_ptr<Worker> triggerResultsInserter,
46 auto&
w = *
val.second;
50 w.beginJob(resources);
62 auto&
w = *
val.second;
71 error <<
"cet::exception caught in TriggerPathsExecutor::endJob\n" 76 error <<
"Standard library exception caught in " 77 "TriggerPathsExecutor::endJob\n" 82 error <<
"Unknown exception caught in TriggerPathsExecutor::endJob\n";
92 error <<
"cet::exception caught in TriggerPathsExecutor::endJob\n" 97 error <<
"Standard library exception caught in " 98 "TriggerPathsExecutor::endJob\n" 103 error <<
"Unknown exception caught in TriggerPathsExecutor::endJob\n";
113 auto&
w = *
val.second;
117 w.respondToOpenInputFile(fb);
128 auto&
w = *
val.second;
132 w.respondToCloseInputFile(fb);
143 auto&
w = *
val.second;
147 w.respondToOpenOutputFiles(fb);
158 auto&
w = *
val.second;
162 w.respondToCloseOutputFiles(fb);
174 path.process(trans, principal);
181 WaitingTaskPtr
const endPathTask,
184 : schedule_{schedule}
185 , endPathTask_{endPathTask}
186 , principal_{principal}
193 auto const scheduleID = schedule_->sc_.id();
199 <<
"trigger path processing terminate because of EXCEPTION";
204 schedule_->process_event_paths_done(principal_);
228 auto const scheduleID =
sc_.
id();
237 auto pathsDoneTask = make_waiting_task<PathsDoneTask>(
238 this, endPathTask, event_principal,
taskGroup_);
243 auto pathsDoneTask = std::make_shared<WaitingTask>(
253 path.process(pathsDoneTask, event_principal);
267 auto const scheduleID =
sc_.
id();
278 {resultsInserterDesc.moduleLabel()}};
293 <<
"An exception occurred inserting the TriggerResults object:\n" #define TDEBUG_BEGIN_TASK_SI(LEVEL, SI)
ScheduleContext const sc_
std::unique_ptr< Worker > results_inserter_
HLTGlobalStatus & pathResults()
std::vector< Path > & paths()
actions::ActionCodes find(std::string const &category) const
#define TDEBUG_END_TASK_SI(LEVEL, SI)
EventPrincipal & principal_
PathsDoneTask(TriggerPathsExecutor *const schedule, WaitingTaskPtr const endPathTask, EventPrincipal &principal, GlobalTaskGroup &group)
void process(Transition, Principal &)
bool skip_non_replicated(Worker const &)
GlobalTaskGroup & taskGroup_
QTextStream & hex(QTextStream &s)
void respondToOpenOutputFiles(FileBlock const &)
std::map< std::string, std::shared_ptr< Worker > > & workers()
ActionTable const & actionTable_
std::string trim_right_copy(std::string source, std::string const &t=" ")
WaitingTaskPtr const endPathTask_
TriggerPathsExecutor *const schedule_
void respondToOpenInputFile(FileBlock const &)
#define TDEBUG_FUNC_SI(LEVEL, SI)
void process_event_paths_done(EventPrincipal &)
QTextStream & dec(QTextStream &s)
void respondToCloseInputFile(FileBlock const &)
cet::coded_exception< errors::ErrorCodes, ExceptionDetail::translate > Exception
#define TDEBUG_END_FUNC_SI(LEVEL, SI)
MaybeLogger_< ELseverityLevel::ELsev_warning, false > LogWarning
void may_run(hep::concurrency::WaitingTaskPtr task, std::exception_ptr ex_ptr={})
void incrementPassedEventCount()
#define TDEBUG_BEGIN_FUNC_SI(LEVEL, SI)
void process_event(hep::concurrency::WaitingTaskPtr endPathTask, EventPrincipal &)
PathsInfo & triggerPathsInfo_
Namespace containing all the test actions.
static auto art_path_spec()
void operator()(exception_ptr const ex)
GlobalTaskGroup & taskGroup_
void respondToCloseOutputFiles(FileBlock const &)
void beginJob(detail::SharedResources const &resources)
void incrementTotalEventCount()
cet::coded_exception< error, detail::translate > exception