Classes | Public Member Functions | Private Attributes | List of all members
art::WorkerInPath Class Reference

#include <WorkerInPath.h>

Classes

struct  ConfigInfo
 
class  WorkerInPathDoneTask
 

Public Member Functions

 WorkerInPath (cet::exempt_ptr< Worker >, detail::FilterAction, ModuleContext const &, GlobalTaskGroup &group)
 
WorkergetWorker () const
 
detail::FilterAction filterAction () const
 
bool returnCode () const
 
std::string const & label () const
 
bool run (Transition, Principal &)
 
void run (hep::concurrency::WaitingTaskPtr workerDoneTask, EventPrincipal &)
 
void clearCounters ()
 
std::size_t timesVisited () const
 
std::size_t timesPassed () const
 
std::size_t timesFailed () const
 
std::size_t timesExcept () const
 

Private Attributes

cet::exempt_ptr< Workerworker_
 
detail::FilterAction filterAction_
 
ModuleContext moduleContext_
 
GlobalTaskGrouptaskGroup_
 
bool returnCode_ {false}
 
std::size_t counts_visited_ {}
 
std::size_t counts_passed_ {}
 
std::size_t counts_failed_ {}
 
std::size_t counts_thrown_ {}
 

Detailed Description

Definition at line 32 of file WorkerInPath.h.

Constructor & Destructor Documentation

art::WorkerInPath::WorkerInPath ( cet::exempt_ptr< Worker w,
detail::FilterAction  fa,
ModuleContext const &  mc,
GlobalTaskGroup group 
)

Definition at line 17 of file WorkerInPath.cc.

21  : worker_{w}, filterAction_{fa}, moduleContext_{mc}, taskGroup_{&taskGroup}
22  {}
ModuleContext moduleContext_
Definition: WorkerInPath.h:71
GlobalTaskGroup * taskGroup_
Definition: WorkerInPath.h:72
detail::FilterAction filterAction_
Definition: WorkerInPath.h:70
cet::exempt_ptr< Worker > worker_
Definition: WorkerInPath.h:67

Member Function Documentation

void art::WorkerInPath::clearCounters ( )
detail::FilterAction art::WorkerInPath::filterAction ( ) const

Definition at line 31 of file WorkerInPath.cc.

32  {
33  return filterAction_;
34  }
detail::FilterAction filterAction_
Definition: WorkerInPath.h:70
Worker * art::WorkerInPath::getWorker ( ) const

Definition at line 25 of file WorkerInPath.cc.

26  {
27  return worker_.get();
28  }
cet::exempt_ptr< Worker > worker_
Definition: WorkerInPath.h:67
string const & art::WorkerInPath::label ( ) const

Definition at line 44 of file WorkerInPath.cc.

45  {
46  return worker_->label();
47  }
cet::exempt_ptr< Worker > worker_
Definition: WorkerInPath.h:67
bool art::WorkerInPath::returnCode ( ) const

Definition at line 38 of file WorkerInPath.cc.

39  {
40  return returnCode_;
41  }
bool art::WorkerInPath::run ( Transition  trans,
Principal principal 
)

Definition at line 78 of file WorkerInPath.cc.

79  {
80  // Note: We ignore the return code because we do not process events here.
81  worker_->doWork(trans, principal, moduleContext_);
82  return true;
83  }
ModuleContext moduleContext_
Definition: WorkerInPath.h:71
cet::exempt_ptr< Worker > worker_
Definition: WorkerInPath.h:67
void art::WorkerInPath::run ( hep::concurrency::WaitingTaskPtr  workerDoneTask,
EventPrincipal  
)
size_t art::WorkerInPath::timesExcept ( ) const

Definition at line 72 of file WorkerInPath.cc.

73  {
74  return counts_thrown_;
75  }
std::size_t counts_thrown_
Definition: WorkerInPath.h:81
size_t art::WorkerInPath::timesFailed ( ) const

Definition at line 65 of file WorkerInPath.cc.

66  {
67  return counts_failed_;
68  }
std::size_t counts_failed_
Definition: WorkerInPath.h:80
size_t art::WorkerInPath::timesPassed ( ) const

Definition at line 58 of file WorkerInPath.cc.

59  {
60  return counts_passed_;
61  }
std::size_t counts_passed_
Definition: WorkerInPath.h:79
size_t art::WorkerInPath::timesVisited ( ) const

Definition at line 51 of file WorkerInPath.cc.

52  {
53  return counts_visited_;
54  }
std::size_t counts_visited_
Definition: WorkerInPath.h:78

Member Data Documentation

std::size_t art::WorkerInPath::counts_failed_ {}
private

Definition at line 80 of file WorkerInPath.h.

std::size_t art::WorkerInPath::counts_passed_ {}
private

Definition at line 79 of file WorkerInPath.h.

std::size_t art::WorkerInPath::counts_thrown_ {}
private

Definition at line 81 of file WorkerInPath.h.

std::size_t art::WorkerInPath::counts_visited_ {}
private

Definition at line 78 of file WorkerInPath.h.

detail::FilterAction art::WorkerInPath::filterAction_
private

Definition at line 70 of file WorkerInPath.h.

ModuleContext art::WorkerInPath::moduleContext_
private

Definition at line 71 of file WorkerInPath.h.

bool art::WorkerInPath::returnCode_ {false}
private

Definition at line 75 of file WorkerInPath.h.

GlobalTaskGroup* art::WorkerInPath::taskGroup_
private

Definition at line 72 of file WorkerInPath.h.

cet::exempt_ptr<Worker> art::WorkerInPath::worker_
private

Definition at line 67 of file WorkerInPath.h.


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