Public Member Functions | Private Attributes | List of all members
art::TriggerPathsExecutor::PathsDoneTask Class Reference

Public Member Functions

 PathsDoneTask (TriggerPathsExecutor *const schedule, WaitingTaskPtr const endPathTask, EventPrincipal &principal, GlobalTaskGroup &group)
 
void operator() (exception_ptr const ex)
 

Private Attributes

TriggerPathsExecutor *const schedule_
 
WaitingTaskPtr const endPathTask_
 
EventPrincipalprincipal_
 
GlobalTaskGrouptaskGroup_
 

Detailed Description

Definition at line 178 of file TriggerPathsExecutor.cc.

Constructor & Destructor Documentation

art::TriggerPathsExecutor::PathsDoneTask::PathsDoneTask ( TriggerPathsExecutor *const  schedule,
WaitingTaskPtr const  endPathTask,
EventPrincipal principal,
GlobalTaskGroup group 
)
inline

Definition at line 180 of file TriggerPathsExecutor.cc.

184  : schedule_{schedule}
185  , endPathTask_{endPathTask}
186  , principal_{principal}
187  , taskGroup_{group}
188  {}

Member Function Documentation

void art::TriggerPathsExecutor::PathsDoneTask::operator() ( exception_ptr const  ex)
inline

Definition at line 191 of file TriggerPathsExecutor.cc.

192  {
193  auto const scheduleID = schedule_->sc_.id();
194 
195  TDEBUG_BEGIN_TASK_SI(4, scheduleID);
196  if (ex) {
198  TDEBUG_END_TASK_SI(4, scheduleID)
199  << "trigger path processing terminate because of EXCEPTION";
200  return;
201  }
202 
203  try {
206  }
207  catch (...) {
208  taskGroup_.may_run(endPathTask_, current_exception());
209  };
210 
211  // Start the endPathTask going.
212  TDEBUG_END_TASK_SI(4, scheduleID);
213  }
#define TDEBUG_BEGIN_TASK_SI(LEVEL, SI)
ScheduleContext const sc_
#define TDEBUG_END_TASK_SI(LEVEL, SI)
void process_event_paths_done(EventPrincipal &)
void may_run(hep::concurrency::WaitingTaskPtr task, std::exception_ptr ex_ptr={})

Member Data Documentation

WaitingTaskPtr const art::TriggerPathsExecutor::PathsDoneTask::endPathTask_
private

Definition at line 217 of file TriggerPathsExecutor.cc.

EventPrincipal& art::TriggerPathsExecutor::PathsDoneTask::principal_
private

Definition at line 218 of file TriggerPathsExecutor.cc.

TriggerPathsExecutor* const art::TriggerPathsExecutor::PathsDoneTask::schedule_
private

Definition at line 216 of file TriggerPathsExecutor.cc.

GlobalTaskGroup& art::TriggerPathsExecutor::PathsDoneTask::taskGroup_
private

Definition at line 219 of file TriggerPathsExecutor.cc.


The documentation for this class was generated from the following file: