CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes
edm::Path Class Reference

#include <Path.h>

Public Types

typedef WorkersInPath::size_type size_type
 
typedef hlt::HLTState State
 
typedef std::shared_ptr< HLTGlobalStatusTrigResPtr
 
typedef std::vector< WorkerInPathWorkersInPath
 

Public Member Functions

int bitPosition () const
 
void clearCounters ()
 
Worker const * getWorker (size_type i) const
 
std::string const & name () const
 
Pathoperator= (Path const &)=delete
 
 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)
 
 Path (Path const &)
 
void processOneOccurrenceAsync (WaitingTaskHolder, EventTransitionInfo const &, ServiceToken const &, StreamID const &, StreamContext const *)
 
template<typename T >
void runAllModulesAsync (WaitingTaskHolder, typename T::TransitionInfoType const &, ServiceToken const &, StreamID const &, typename T::Context const *)
 
void setEarlyDeleteHelpers (std::map< const Worker *, EarlyDeleteHelper * > const &)
 
void setPathStatusInserter (PathStatusInserter *pathStatusInserter, Worker *pathStatusInserterWorker)
 
size_type size () const
 
int timesExcept () const
 
int timesExcept (size_type i) const
 
int timesFailed () const
 
int timesFailed (size_type i) const
 
int timesPassed () const
 
int timesPassed (size_type i) const
 
int timesRun () const
 
int timesVisited (size_type i) const
 

Private Member Functions

void finished (std::exception_ptr, StreamContext const *, EventTransitionInfo const &, StreamID const &)
 
bool handleWorkerFailure (cms::Exception &e, int nwrwue, bool isEvent, bool begin, BranchType branchType, ModuleDescription const &, std::string const &id) const
 
void recordStatus (int nwrwue, hlt::HLTState state)
 
void runNextWorkerAsync (unsigned int iNextModuleIndex, EventTransitionInfo const &, ServiceToken const &, StreamID const &, StreamContext const *, tbb::task_group &iGroup)
 
void threadsafe_setFailedModuleInfo (int nwrwue, std::exception_ptr)
 
void updateCounters (hlt::HLTState state)
 
void workerFinished (std::exception_ptr const *, unsigned int iModuleIndex, EventTransitionInfo const &, ServiceToken const &, StreamID const &, StreamContext const *, tbb::task_group &iGroup)
 

Static Private Member Functions

static void exceptionContext (cms::Exception &ex, bool isEvent, bool begin, BranchType branchType, ModuleDescription const &, std::string const &id, PathContext const &)
 

Private Attributes

ExceptionToActionTable const *const act_table_
 
const std::shared_ptr< ActivityRegistryactReg_
 
const int bitpos_
 
int failedModuleIndex_
 
std::atomic< unsigned int > modulesToRun_
 
PathContext pathContext_
 
PathStatusInserterpathStatusInserter_
 
WorkerpathStatusInserterWorker_
 
State state_
 
std::atomic< bool > stateLock_ = false
 
std::atomic< bool > *const stopProcessingEvent_
 
int timesExcept_
 
int timesFailed_
 
int timesPassed_
 
int timesRun_
 
const TrigResPtr trptr_
 
WaitingTaskList waitingTasks_
 
WorkersInPath workers_
 

Detailed Description

Definition at line 41 of file Path.h.

Member Typedef Documentation

◆ size_type

typedef WorkersInPath::size_type edm::Path::size_type

Definition at line 46 of file Path.h.

◆ State

Definition at line 43 of file Path.h.

◆ TrigResPtr

typedef std::shared_ptr<HLTGlobalStatus> edm::Path::TrigResPtr

Definition at line 47 of file Path.h.

◆ WorkersInPath

typedef std::vector<WorkerInPath> edm::Path::WorkersInPath

Definition at line 45 of file Path.h.

Constructor & Destructor Documentation

◆ Path() [1/2]

edm::Path::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 
)

Definition at line 18 of file Path.cc.

27  : timesRun_(),
28  timesPassed_(),
29  timesFailed_(),
30  timesExcept_(),
33  bitpos_(bitpos),
34  trptr_(trptr),
35  actReg_(areg),
38  pathContext_(path_name, streamContext, bitpos, pathType),
39  stopProcessingEvent_(stopProcessingEvent),
40  pathStatusInserter_(nullptr),
41  pathStatusInserterWorker_(nullptr) {
42  for (auto& workerInPath : workers_) {
43  workerInPath.setPathContext(&pathContext_);
44  }
45  modulesToRun_ = workers_.size();
46  }

References modulesToRun_, pathContext_, and workers_.

◆ Path() [2/2]

edm::Path::Path ( Path const &  r)

Definition at line 48 of file Path.cc.

49  : timesRun_(r.timesRun_),
50  timesPassed_(r.timesPassed_),
51  timesFailed_(r.timesFailed_),
52  timesExcept_(r.timesExcept_),
53  failedModuleIndex_(r.failedModuleIndex_),
54  state_(r.state_),
55  bitpos_(r.bitpos_),
56  trptr_(r.trptr_),
57  actReg_(r.actReg_),
58  act_table_(r.act_table_),
59  workers_(r.workers_),
60  pathContext_(r.pathContext_),
61  stopProcessingEvent_(r.stopProcessingEvent_),
62  pathStatusInserter_(r.pathStatusInserter_),
63  pathStatusInserterWorker_(r.pathStatusInserterWorker_) {
64  for (auto& workerInPath : workers_) {
65  workerInPath.setPathContext(&pathContext_);
66  }
67  modulesToRun_ = workers_.size();
68  }

References modulesToRun_, pathContext_, and workers_.

Member Function Documentation

◆ bitPosition()

int edm::Path::bitPosition ( ) const
inline

Definition at line 73 of file Path.h.

73 { return bitpos_; }

References bitpos_.

◆ clearCounters()

void edm::Path::clearCounters ( )

Definition at line 198 of file Path.cc.

198  {
199  using std::placeholders::_1;
201  for_all(workers_, std::bind(&WorkerInPath::clearCounters, _1));
202  }

References edm::WorkerInPath::clearCounters(), edm::for_all(), timesExcept_, timesFailed_, timesPassed_, timesRun_, and workers_.

Referenced by edm::StreamSchedule::clearCounters().

◆ exceptionContext()

void edm::Path::exceptionContext ( cms::Exception ex,
bool  isEvent,
bool  begin,
BranchType  branchType,
ModuleDescription const &  desc,
std::string const &  id,
PathContext const &  pathContext 
)
staticprivate

Definition at line 119 of file Path.cc.

125  {
126  std::ostringstream ost;
127  ost << "Running path '" << pathContext.pathName() << "'";
128  ex.addContext(ost.str());
129  ost.str("");
130  ost << "Processing ";
131  //For the event case, the Worker has already
132  // added the necessary module context to the exception
133  if (begin && branchType == InRun) {
134  ost << "stream begin Run";
135  } else if (begin && branchType == InLumi) {
136  ost << "stream begin LuminosityBlock ";
137  } else if (!begin && branchType == InLumi) {
138  ost << "stream end LuminosityBlock ";
139  } else if (!begin && branchType == InRun) {
140  ost << "stream end Run ";
141  } else if (isEvent) {
142  // It should be impossible to get here ...
143  ost << "Event ";
144  }
145  ost << id;
146  ex.addContext(ost.str());
147  }

References cms::Exception::addContext(), triggerObjects_cff::id, edm::InLumi, edm::InRun, and edm::PathContext::pathName().

Referenced by handleWorkerFailure().

◆ finished()

void edm::Path::finished ( std::exception_ptr  iException,
StreamContext const *  iContext,
EventTransitionInfo const &  iInfo,
StreamID const &  streamID 
)
private

Definition at line 320 of file Path.cc.

323  {
326  // Caught exception is propagated via WaitingTaskList
327  CMS_SA_ALLOW try {
328  HLTPathStatus status(state_, failedModuleIndex_);
329 
330  if (pathStatusInserter_) { // pathStatusInserter is null for EndPaths
332  }
333  std::exception_ptr jException =
334  pathStatusInserterWorker_->runModuleDirectly<OccurrenceTraits<EventPrincipal, BranchActionStreamBegin>>(
335  iInfo, streamID, ParentContext(iContext), iContext);
336  if (jException && not iException) {
337  iException = jException;
338  }
339  actReg_->postPathEventSignal_(*iContext, pathContext_, status);
340  } catch (...) {
341  if (not iException) {
342  iException = std::current_exception();
343  }
344  }
345  waitingTasks_.doneWaiting(iException);
346  }

References actReg_, CMS_SA_ALLOW, edm::WaitingTaskList::doneWaiting(), failedModuleIndex_, pathContext_, pathStatusInserter_, pathStatusInserterWorker_, recordStatus(), edm::Worker::runModuleDirectly(), edm::PathStatusInserter::setPathStatus(), state_, mps_update::status, updateCounters(), and waitingTasks_.

Referenced by processOneOccurrenceAsync(), and workerFinished().

◆ getWorker()

Worker const* edm::Path::getWorker ( size_type  i) const
inline

Definition at line 89 of file Path.h.

89 { return workers_.at(i).getWorker(); }

References mps_fire::i, and workers_.

Referenced by setEarlyDeleteHelpers().

◆ handleWorkerFailure()

bool edm::Path::handleWorkerFailure ( cms::Exception e,
int  nwrwue,
bool  isEvent,
bool  begin,
BranchType  branchType,
ModuleDescription const &  desc,
std::string const &  id 
) const
private

Definition at line 70 of file Path.cc.

76  {
77  if (e.context().empty()) {
78  exceptionContext(e, isEvent, begin, branchType, desc, id, pathContext_);
79  }
80  bool should_continue = true;
81 
82  // there is no support as of yet for specific paths having
83  // different exception behavior
84 
85  // If not processing an event, always rethrow.
87  switch (action) {
89  should_continue = false;
90  edm::printCmsExceptionWarning("FailPath", e);
91  break;
92  }
94  //Need the other Paths to stop as soon as possible
96  *stopProcessingEvent_ = true;
97  }
98  break;
99  }
100  default: {
103  if (e.category() == pNF) {
104  std::ostringstream ost;
105  ost << "If you wish to continue processing events after a " << pNF << " exception,\n"
106  << "add \"SkipEvent = cms.untracked.vstring('ProductNotFound')\" to the \"options\" PSet in the "
107  "configuration.\n";
108  e.addAdditionalInfo(ost.str());
109  }
110  }
111  //throw will copy which will slice the object
112  e.raise();
113  }
114  }
115 
116  return should_continue;
117  }

References act_table_, writedatasetfile::action, edm::Exception::codeToString(), submitPVResolutionJobs::desc, MillePedeFileConverter_cfg::e, exceptionContext(), edm::exception_actions::FailPath, edm::ExceptionToActionTable::find(), pathContext_, edm::printCmsExceptionWarning(), edm::errors::ProductNotFound, edm::exception_actions::Rethrow, edm::exception_actions::SkipEvent, stopProcessingEvent_, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by workerFinished().

◆ name()

std::string const& edm::Path::name ( void  ) const
inline

◆ operator=()

Path& edm::Path::operator= ( Path const &  )
delete

◆ processOneOccurrenceAsync()

void edm::Path::processOneOccurrenceAsync ( WaitingTaskHolder  iTask,
EventTransitionInfo const &  iInfo,
ServiceToken const &  iToken,
StreamID const &  iStreamID,
StreamContext const *  iStreamContext 
)

Definition at line 218 of file Path.cc.

222  {
224  modulesToRun_ = workers_.size();
225  ++timesRun_;
226  waitingTasks_.add(iTask);
227  if (actReg_) {
228  ServiceRegistry::Operate guard(iToken);
229  actReg_->prePathEventSignal_(*iStreamContext, pathContext_);
230  }
231  //If the Path succeeds, these are the values we have at the end
232  state_ = hlt::Pass;
233  failedModuleIndex_ = workers_.size() - 1;
234 
235  if (workers_.empty()) {
236  ServiceRegistry::Operate guard(iToken);
237  finished(std::exception_ptr(), iStreamContext, iInfo, iStreamID);
238  return;
239  }
240 
241  runNextWorkerAsync(0, iInfo, iToken, iStreamID, iStreamContext, *iTask.group());
242  }

References actReg_, edm::WaitingTaskList::add(), failedModuleIndex_, finished(), edm::WaitingTaskHolder::group(), modulesToRun_, edm::hlt::Pass, pathContext_, edm::WaitingTaskList::reset(), runNextWorkerAsync(), state_, timesRun_, waitingTasks_, and workers_.

◆ recordStatus()

void edm::Path::recordStatus ( int  nwrwue,
hlt::HLTState  state 
)
private

Definition at line 175 of file Path.cc.

175  {
176  if (trptr_) {
177  (*trptr_)[bitpos_] = HLTPathStatus(state, nwrwue);
178  }
179  }

References bitpos_, and trptr_.

Referenced by finished().

◆ runAllModulesAsync()

template<typename T >
void edm::Path::runAllModulesAsync ( WaitingTaskHolder  task,
typename T::TransitionInfoType const &  info,
ServiceToken const &  token,
StreamID const &  streamID,
typename T::Context const *  context 
)

Definition at line 188 of file Path.h.

192  {
193  for (auto& worker : workers_) {
194  worker.runWorkerAsync<T>(task, info, token, streamID, context);
195  }
196  }

References info(), TrackValidation_cff::task, unpackBuffers-CaloStage2::token, and workers_.

◆ runNextWorkerAsync()

void edm::Path::runNextWorkerAsync ( unsigned int  iNextModuleIndex,
EventTransitionInfo const &  iInfo,
ServiceToken const &  iToken,
StreamID const &  iID,
StreamContext const *  iContext,
tbb::task_group &  iGroup 
)
private

Definition at line 348 of file Path.cc.

353  {
354  //Figure out which next modules can run concurrently
355  const int firstModuleIndex = iNextModuleIndex;
356  int lastModuleIndex = firstModuleIndex;
357  while (lastModuleIndex + 1 != static_cast<int>(workers_.size()) and workers_[lastModuleIndex].runConcurrently()) {
358  ++lastModuleIndex;
359  }
360  for (; lastModuleIndex >= firstModuleIndex; --lastModuleIndex) {
361  ServiceWeakToken weakToken = iToken;
362  auto nextTask = make_waiting_task([this, lastModuleIndex, info = iInfo, iID, iContext, weakToken, &iGroup](
363  std::exception_ptr const* iException) {
364  this->workerFinished(iException, lastModuleIndex, info, weakToken.lock(), iID, iContext, iGroup);
365  });
366  workers_[lastModuleIndex].runWorkerAsync<OccurrenceTraits<EventPrincipal, BranchActionStreamBegin>>(
367  WaitingTaskHolder(iGroup, nextTask), iInfo, iToken, iID, iContext);
368  }
369  }

References info(), edm::ServiceWeakToken::lock(), edm::make_waiting_task(), workerFinished(), and workers_.

Referenced by processOneOccurrenceAsync(), and workerFinished().

◆ setEarlyDeleteHelpers()

void edm::Path::setEarlyDeleteHelpers ( std::map< const Worker *, EarlyDeleteHelper * > const &  iWorkerToDeleter)

Definition at line 204 of file Path.cc.

204  {
205  for (unsigned int index = 0; index != size(); ++index) {
206  auto found = iWorkerToDeleter.find(getWorker(index));
207  if (found != iWorkerToDeleter.end()) {
208  found->second->addedToPath();
209  }
210  }
211  }

References newFWLiteAna::found, getWorker(), and size().

◆ setPathStatusInserter()

void edm::Path::setPathStatusInserter ( PathStatusInserter pathStatusInserter,
Worker pathStatusInserterWorker 
)

Definition at line 213 of file Path.cc.

213  {
214  pathStatusInserter_ = pathStatusInserter;
215  pathStatusInserterWorker_ = pathStatusInserterWorker;
216  }

References pathStatusInserter_, and pathStatusInserterWorker_.

◆ size()

size_type edm::Path::size ( void  ) const
inline

Definition at line 84 of file Path.h.

84 { return workers_.size(); }

References workers_.

Referenced by ntupleDataFormat._Collection::__iter__(), ntupleDataFormat._Collection::__len__(), and setEarlyDeleteHelpers().

◆ threadsafe_setFailedModuleInfo()

void edm::Path::threadsafe_setFailedModuleInfo ( int  nwrwue,
std::exception_ptr  iExcept 
)
private

Definition at line 149 of file Path.cc.

149  {
150  bool expected = false;
151  while (stateLock_.compare_exchange_strong(expected, true)) {
152  expected = false;
153  }
154  if (iExcept) {
155  if (state_ == hlt::Exception) {
156  if (nwrwue < failedModuleIndex_) {
157  failedModuleIndex_ = nwrwue;
158  }
159  } else {
161  failedModuleIndex_ = nwrwue;
162  }
163  } else {
164  if (state_ != hlt::Exception) {
165  if (nwrwue < failedModuleIndex_) {
166  failedModuleIndex_ = nwrwue;
167  }
168  state_ = hlt::Fail;
169  }
170  }
171 
172  stateLock_ = false;
173  }

References edm::hlt::Exception, edm::hlt::Fail, failedModuleIndex_, state_, and stateLock_.

Referenced by workerFinished().

◆ timesExcept() [1/2]

int edm::Path::timesExcept ( ) const
inline

Definition at line 81 of file Path.h.

81 { return timesExcept_; }

References timesExcept_.

◆ timesExcept() [2/2]

int edm::Path::timesExcept ( size_type  i) const
inline

Definition at line 88 of file Path.h.

88 { return workers_.at(i).timesExcept(); }

References mps_fire::i, and workers_.

◆ timesFailed() [1/2]

int edm::Path::timesFailed ( ) const
inline

Definition at line 80 of file Path.h.

80 { return timesFailed_; }

References timesFailed_.

◆ timesFailed() [2/2]

int edm::Path::timesFailed ( size_type  i) const
inline

Definition at line 87 of file Path.h.

87 { return workers_.at(i).timesFailed(); }

References mps_fire::i, and workers_.

◆ timesPassed() [1/2]

int edm::Path::timesPassed ( ) const
inline

Definition at line 79 of file Path.h.

79 { return timesPassed_; }

References timesPassed_.

◆ timesPassed() [2/2]

int edm::Path::timesPassed ( size_type  i) const
inline

Definition at line 86 of file Path.h.

86 { return workers_.at(i).timesPassed(); }

References mps_fire::i, and workers_.

◆ timesRun()

int edm::Path::timesRun ( ) const
inline

Definition at line 78 of file Path.h.

78 { return timesRun_; }

References timesRun_.

◆ timesVisited()

int edm::Path::timesVisited ( size_type  i) const
inline

Definition at line 85 of file Path.h.

85 { return workers_.at(i).timesVisited(); }

References mps_fire::i, and workers_.

◆ updateCounters()

void edm::Path::updateCounters ( hlt::HLTState  state)
private

Definition at line 181 of file Path.cc.

181  {
182  switch (state) {
183  case hlt::Pass: {
184  ++timesPassed_;
185  break;
186  }
187  case hlt::Fail: {
188  ++timesFailed_;
189  break;
190  }
191  case hlt::Exception: {
192  ++timesExcept_;
193  }
194  default:;
195  }
196  }

References edm::hlt::Exception, edm::hlt::Fail, edm::hlt::Pass, timesExcept_, timesFailed_, and timesPassed_.

Referenced by finished().

◆ workerFinished()

void edm::Path::workerFinished ( std::exception_ptr const *  iException,
unsigned int  iModuleIndex,
EventTransitionInfo const &  iInfo,
ServiceToken const &  iToken,
StreamID const &  iID,
StreamContext const *  iContext,
tbb::task_group &  iGroup 
)
private

Definition at line 244 of file Path.cc.

250  {
251  EventPrincipal const& iEP = iInfo.principal();
252  ServiceRegistry::Operate guard(iToken);
253 
254  //This call also allows the WorkerInPath to update statistics
255  // so should be done even if an exception happened
256  auto& worker = workers_[iModuleIndex];
257  bool shouldContinue = worker.checkResultsOfRunWorker(true);
258  std::exception_ptr finalException;
259  if (iException) {
260  std::unique_ptr<cms::Exception> pEx;
261  try {
262  std::rethrow_exception(*iException);
263  } catch (cms::Exception& oldEx) {
264  pEx = std::unique_ptr<cms::Exception>(oldEx.clone());
265  }
266  // Caught exception is propagated via WaitingTaskList
267  CMS_SA_ALLOW try {
268  std::ostringstream ost;
269  ost << iEP.id();
270  ModuleDescription const* desc = worker.getWorker()->description();
271  assert(desc != nullptr);
272  shouldContinue = handleWorkerFailure(*pEx,
273  iModuleIndex,
274  /*isEvent*/ true,
275  /*isBegin*/ true,
276  InEvent,
277  *desc,
278  ost.str());
279  //If we didn't rethrow, then we effectively skipped
280  worker.skipWorker(iEP);
281  finalException = std::exception_ptr();
282  } catch (...) {
283  shouldContinue = false;
284  finalException = std::current_exception();
285  //set the exception early to avoid case where another Path is waiting
286  // on a module in this Path and not running the module will lead to a
287  // different but related exception in the other Path. We want this
288  // Paths exception to be the one that gets reported.
289  waitingTasks_.presetTaskAsFailed(finalException);
290  }
291  }
293  shouldContinue = false;
294  }
295  auto const nextIndex = iModuleIndex + 1;
296  if (shouldContinue and nextIndex < workers_.size()) {
297  if (not worker.runConcurrently()) {
298  --modulesToRun_;
299  runNextWorkerAsync(nextIndex, iInfo, iToken, iID, iContext, iGroup);
300  return;
301  }
302  }
303 
304  if (not shouldContinue) {
305  threadsafe_setFailedModuleInfo(iModuleIndex, finalException);
306  }
307  if (not shouldContinue and not worker.runConcurrently()) {
308  //we are leaving the path early
309  for (auto it = workers_.begin() + nextIndex, itEnd = workers_.end(); it != itEnd; ++it) {
310  --modulesToRun_;
311  it->skipWorker(iEP);
312  }
313  }
314  if (--modulesToRun_ == 0) {
315  //The path should only be marked as finished once all outstanding modules finish
316  finished(finalException, iContext, iInfo, iID);
317  }
318  }

References cms::cuda::assert(), cms::Exception::clone(), CMS_SA_ALLOW, submitPVResolutionJobs::desc, finished(), handleWorkerFailure(), edm::EventPrincipal::id(), edm::InEvent, modulesToRun_, edm::WaitingTaskList::presetTaskAsFailed(), edm::EventTransitionInfo::principal(), runNextWorkerAsync(), stopProcessingEvent_, threadsafe_setFailedModuleInfo(), waitingTasks_, and workers_.

Referenced by runNextWorkerAsync().

Member Data Documentation

◆ act_table_

ExceptionToActionTable const* const edm::Path::act_table_
private

Definition at line 111 of file Path.h.

Referenced by handleWorkerFailure().

◆ actReg_

const std::shared_ptr<ActivityRegistry> edm::Path::actReg_
private

Definition at line 110 of file Path.h.

Referenced by finished(), and processOneOccurrenceAsync().

◆ bitpos_

const int edm::Path::bitpos_
private

Definition at line 107 of file Path.h.

Referenced by bitPosition(), and recordStatus().

◆ failedModuleIndex_

int edm::Path::failedModuleIndex_
private

Definition at line 104 of file Path.h.

Referenced by finished(), processOneOccurrenceAsync(), and threadsafe_setFailedModuleInfo().

◆ modulesToRun_

std::atomic<unsigned int> edm::Path::modulesToRun_
private

Definition at line 118 of file Path.h.

Referenced by Path(), processOneOccurrenceAsync(), and workerFinished().

◆ pathContext_

PathContext edm::Path::pathContext_
private

Definition at line 115 of file Path.h.

Referenced by finished(), handleWorkerFailure(), name(), Path(), and processOneOccurrenceAsync().

◆ pathStatusInserter_

PathStatusInserter* edm::Path::pathStatusInserter_
private

Definition at line 120 of file Path.h.

Referenced by finished(), and setPathStatusInserter().

◆ pathStatusInserterWorker_

Worker* edm::Path::pathStatusInserterWorker_
private

Definition at line 121 of file Path.h.

Referenced by finished(), and setPathStatusInserter().

◆ state_

State edm::Path::state_
private

Definition at line 105 of file Path.h.

Referenced by finished(), processOneOccurrenceAsync(), and threadsafe_setFailedModuleInfo().

◆ stateLock_

std::atomic<bool> edm::Path::stateLock_ = false
private

Definition at line 103 of file Path.h.

Referenced by threadsafe_setFailedModuleInfo().

◆ stopProcessingEvent_

std::atomic<bool>* const edm::Path::stopProcessingEvent_
private

Definition at line 117 of file Path.h.

Referenced by handleWorkerFailure(), and workerFinished().

◆ timesExcept_

int edm::Path::timesExcept_
private

Definition at line 99 of file Path.h.

Referenced by clearCounters(), timesExcept(), and updateCounters().

◆ timesFailed_

int edm::Path::timesFailed_
private

Definition at line 98 of file Path.h.

Referenced by clearCounters(), timesFailed(), and updateCounters().

◆ timesPassed_

int edm::Path::timesPassed_
private

Definition at line 97 of file Path.h.

Referenced by clearCounters(), timesPassed(), and updateCounters().

◆ timesRun_

int edm::Path::timesRun_
private

Definition at line 96 of file Path.h.

Referenced by clearCounters(), processOneOccurrenceAsync(), and timesRun().

◆ trptr_

const TrigResPtr edm::Path::trptr_
private

Definition at line 108 of file Path.h.

Referenced by recordStatus().

◆ waitingTasks_

WaitingTaskList edm::Path::waitingTasks_
private

Definition at line 116 of file Path.h.

Referenced by finished(), processOneOccurrenceAsync(), and workerFinished().

◆ workers_

WorkersInPath edm::Path::workers_
private
edm::Path::pathStatusInserterWorker_
Worker * pathStatusInserterWorker_
Definition: Path.h:121
edm::Path::pathStatusInserter_
PathStatusInserter * pathStatusInserter_
Definition: Path.h:120
mps_fire.i
i
Definition: mps_fire.py:428
edm::Path::getWorker
Worker const * getWorker(size_type i) const
Definition: Path.h:89
cms::Exception::addContext
void addContext(std::string const &context)
Definition: Exception.cc:165
edm::Path::stateLock_
std::atomic< bool > stateLock_
Definition: Path.h:103
edm::Path::threadsafe_setFailedModuleInfo
void threadsafe_setFailedModuleInfo(int nwrwue, std::exception_ptr)
Definition: Path.cc:149
edm::exception_actions::Rethrow
Definition: ExceptionActions.h:11
edm::Path::waitingTasks_
WaitingTaskList waitingTasks_
Definition: Path.h:116
mps_update.status
status
Definition: mps_update.py:69
edm::Path::modulesToRun_
std::atomic< unsigned int > modulesToRun_
Definition: Path.h:118
edm::Worker::runModuleDirectly
std::exception_ptr runModuleDirectly(typename T::TransitionInfoType const &, StreamID, ParentContext const &, typename T::Context const *)
Definition: Worker.h:1129
edm::printCmsExceptionWarning
void printCmsExceptionWarning(char const *behavior, cms::Exception const &e)
Definition: ExceptionMessages.cc:25
edm::Path::workerFinished
void workerFinished(std::exception_ptr const *, unsigned int iModuleIndex, EventTransitionInfo const &, ServiceToken const &, StreamID const &, StreamContext const *, tbb::task_group &iGroup)
Definition: Path.cc:244
cms::cuda::assert
assert(be >=bs)
info
static const TGPicture * info(bool iBackgroundIsBlack)
Definition: FWCollectionSummaryWidget.cc:153
edm::Path::bitpos_
const int bitpos_
Definition: Path.h:107
newFWLiteAna.found
found
Definition: newFWLiteAna.py:118
edm::InRun
Definition: BranchType.h:11
CMS_SA_ALLOW
#define CMS_SA_ALLOW
Definition: thread_safety_macros.h:5
edm::Path::timesFailed_
int timesFailed_
Definition: Path.h:98
edm::Path::timesExcept_
int timesExcept_
Definition: Path.h:99
edm::WaitingTaskList::reset
void reset()
Resets access to the resource so that added tasks will wait.
Definition: WaitingTaskList.cc:53
edm::for_all
Func for_all(ForwardSequence &s, Func f)
wrapper for std::for_each
Definition: Algorithms.h:14
edm::WaitingTaskList::presetTaskAsFailed
void presetTaskAsFailed(std::exception_ptr iExcept)
Definition: WaitingTaskList.cc:163
edm::errors::ProductNotFound
Definition: EDMException.h:33
edm::Path::stopProcessingEvent_
std::atomic< bool > *const stopProcessingEvent_
Definition: Path.h:117
edm::Path::updateCounters
void updateCounters(hlt::HLTState state)
Definition: Path.cc:181
edm::Path::pathContext_
PathContext pathContext_
Definition: Path.h:115
TrackValidation_cff.task
task
Definition: TrackValidation_cff.py:252
edm::exception_actions::FailPath
Definition: ExceptionActions.h:11
edm::WaitingTaskList::doneWaiting
void doneWaiting(std::exception_ptr iPtr)
Signals that the resource is now available and tasks should be spawned.
Definition: WaitingTaskList.cc:212
WaitingTaskHolder
edm::InEvent
Definition: BranchType.h:11
edm::exception_actions::SkipEvent
Definition: ExceptionActions.h:11
edm::Path::trptr_
const TrigResPtr trptr_
Definition: Path.h:108
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::PathStatusInserter::setPathStatus
void setPathStatus(StreamID const &, HLTPathStatus const &)
Definition: PathStatusInserter.cc:12
edm::Path::finished
void finished(std::exception_ptr, StreamContext const *, EventTransitionInfo const &, StreamID const &)
Definition: Path.cc:320
edm::ServiceRegistry::Operate
friend class Operate
Definition: ServiceRegistry.h:54
edm::hlt::Fail
reject
Definition: HLTenums.h:19
edm::Path::size
size_type size() const
Definition: Path.h:84
edm::make_waiting_task
FunctorWaitingTask< F > * make_waiting_task(F f)
Definition: WaitingTask.h:101
edm::InLumi
Definition: BranchType.h:11
edm::Path::runNextWorkerAsync
void runNextWorkerAsync(unsigned int iNextModuleIndex, EventTransitionInfo const &, ServiceToken const &, StreamID const &, StreamContext const *, tbb::task_group &iGroup)
Definition: Path.cc:348
edm::Path::act_table_
ExceptionToActionTable const *const act_table_
Definition: Path.h:111
edm::Path::workers_
WorkersInPath workers_
Definition: Path.h:113
edm::Path::exceptionContext
static void exceptionContext(cms::Exception &ex, bool isEvent, bool begin, BranchType branchType, ModuleDescription const &, std::string const &id, PathContext const &)
Definition: Path.cc:119
edm::hlt::Ready
not [yet] run
Definition: HLTenums.h:17
edm::Path::actReg_
const std::shared_ptr< ActivityRegistry > actReg_
Definition: Path.h:110
writedatasetfile.action
action
Definition: writedatasetfile.py:8
edm::Path::failedModuleIndex_
int failedModuleIndex_
Definition: Path.h:104
edm::PathContext::pathName
std::string const & pathName() const
Definition: PathContext.h:30
alignCSCRings.r
r
Definition: alignCSCRings.py:93
edm::WorkerInPath::clearCounters
void clearCounters()
Definition: WorkerInPath.h:44
edm::WaitingTaskList::add
void add(tbb::task_group *, WaitingTask *)
Adds task to the waiting list.
Definition: WaitingTaskList.cc:125
submitPVResolutionJobs.desc
string desc
Definition: submitPVResolutionJobs.py:251
edm::Exception::codeToString
static const std::string & codeToString(Code)
-----------— implementation details ---------------—
Definition: EDMException.cc:52
RunInfoPI::state
state
Definition: RunInfoPayloadInspectoHelper.h:16
triggerObjects_cff.id
id
Definition: triggerObjects_cff.py:29
T
long double T
Definition: Basic3DVectorLD.h:48
cms::Exception::clone
virtual Exception * clone() const
Definition: Exception.cc:181
edm::ExceptionToActionTable::find
exception_actions::ActionCodes find(const std::string &category) const
Definition: ExceptionActions.cc:85
AlignmentPI::index
index
Definition: AlignmentPayloadInspectorHelper.h:46
actions
roAction_t actions[nactions]
Definition: GenABIO.cc:181
cms::Exception
Definition: Exception.h:70
edm::Path::handleWorkerFailure
bool handleWorkerFailure(cms::Exception &e, int nwrwue, bool isEvent, bool begin, BranchType branchType, ModuleDescription const &, std::string const &id) const
Definition: Path.cc:70
edm::hlt::Exception
error
Definition: HLTenums.h:20
edm::Path::timesRun_
int timesRun_
Definition: Path.h:96
edm::hlt::Pass
accept
Definition: HLTenums.h:18
edm::Path::recordStatus
void recordStatus(int nwrwue, hlt::HLTState state)
Definition: Path.cc:175
edm::Path::state_
State state_
Definition: Path.h:105
EcalCalibMonitorClient_cfi.workers
workers
Definition: EcalCalibMonitorClient_cfi.py:19
edm::exception_actions::ActionCodes
ActionCodes
Definition: ExceptionActions.h:11
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37
unpackBuffers-CaloStage2.token
token
Definition: unpackBuffers-CaloStage2.py:316
edm::Path::timesPassed_
int timesPassed_
Definition: Path.h:97