CMS 3D CMS Logo

StreamSchedule.h
Go to the documentation of this file.
1 #ifndef FWCore_Framework_StreamSchedule_h
2 #define FWCore_Framework_StreamSchedule_h
3 
4 /*
5  Author: Jim Kowalkowski 28-01-06
6 
7  A class for creating a schedule based on paths in the configuration file.
8  The schedule is maintained as a sequence of paths.
9  After construction, events can be fed to the object and passed through
10  all the modules in the schedule. All accounting about processing
11  of events by modules and paths is contained here or in object held
12  by containment.
13 
14  The trigger results producer and product are generated and managed here.
15  This class also manages endpaths and calls to endjob and beginjob.
16  Endpaths are just treated as a simple list of modules that need to
17  do processing of the event and do not participate in trigger path
18  activities.
19 
20  This class requires the high-level process pset. It uses @process_name.
21  If the high-level pset contains an "options" pset, then the
22  following optional parameter can be present:
23  bool wantSummary = true/false # default false
24 
25  wantSummary indicates whether or not the pass/fail/error stats
26  for modules and paths should be printed at the end-of-job.
27 
28  A TriggerResults object will always be inserted into the event
29  for any schedule. The producer of the TriggerResults EDProduct
30  is always the first module in the endpath. The TriggerResultInserter
31  is given a fixed label of "TriggerResults".
32 
33  Processing of an event happens by pushing the event through the Paths.
34  The scheduler performs the reset() on each of the workers independent
35  of the Path objects.
36 
37  ------------------------
38 
39  About Paths:
40  Paths fit into two categories:
41  1) trigger paths that contribute directly to saved trigger bits
42  2) end paths
43  The StreamSchedule holds these paths in two data structures:
44  1) main path list
45  2) end path list
46 
47  Trigger path processing always precedes endpath processing.
48  The order of the paths from the input configuration is
49  preserved in the main paths list.
50 
51  ------------------------
52 
53  The StreamSchedule uses the TriggerNamesService to get the names of the
54  trigger paths and end paths. When a TriggerResults object is created
55  the results are stored in the same order as the trigger names from
56  TriggerNamesService.
57 
58 */
59 
89 
90 #include <map>
91 #include <memory>
92 #include <set>
93 #include <string>
94 #include <vector>
95 #include <sstream>
96 #include <atomic>
97 
98 namespace edm {
99 
100  class ActivityRegistry;
101  class BranchIDListHelper;
102  class EventSetupImpl;
103  class ExceptionCollector;
104  class ExceptionToActionTable;
105  class OutputModuleCommunicator;
106  class ProcessContext;
108  class WorkerInPath;
109  class ModuleRegistry;
110  class TriggerResultInserter;
111  class PathStatusInserter;
112  class EndPathStatusInserter;
113  class PreallocationConfiguration;
114  class WaitingTaskHolder;
115 
116  namespace service {
117  class TriggerNamesService;
118  }
119 
120  namespace {
121  template <typename T>
122  class StreamScheduleSignalSentry {
123  public:
124  StreamScheduleSignalSentry(ActivityRegistry* a, typename T::Context const* context)
125  : a_(a), context_(context), allowThrow_(false) {
126  if (a_)
127  T::preScheduleSignal(a_, context_);
128  }
129  ~StreamScheduleSignalSentry() noexcept(false) {
130  // Caught exception is rethrown (when allowed)
131  CMS_SA_ALLOW try {
132  if (a_) {
133  T::postScheduleSignal(a_, context_);
134  }
135  } catch (...) {
136  if (allowThrow_) {
137  throw;
138  }
139  }
140  }
141 
142  void allowThrow() { allowThrow_ = true; }
143 
144  private:
145  // We own none of these resources.
146  ActivityRegistry* a_; // We do not use propagate_const because the registry itself is mutable.
147  typename T::Context const* context_;
148  bool allowThrow_;
149  };
150  } // namespace
151 
153  public:
154  typedef std::vector<std::string> vstring;
155  typedef std::vector<Path> TrigPaths;
156  typedef std::vector<Path> NonTrigPaths;
157  typedef std::shared_ptr<HLTGlobalStatus> TrigResPtr;
158  typedef std::shared_ptr<HLTGlobalStatus const> TrigResConstPtr;
159  typedef std::shared_ptr<Worker> WorkerPtr;
160  typedef std::vector<Worker*> AllWorkers;
161 
162  typedef std::vector<Worker*> Workers;
163 
164  typedef std::vector<WorkerInPath> PathWorkers;
165 
166  StreamSchedule(std::shared_ptr<TriggerResultInserter> inserter,
167  std::vector<edm::propagate_const<std::shared_ptr<PathStatusInserter>>>& pathStatusInserters,
168  std::vector<edm::propagate_const<std::shared_ptr<EndPathStatusInserter>>>& endPathStatusInserters,
169  std::shared_ptr<ModuleRegistry>,
170  ParameterSet& proc_pset,
171  service::TriggerNamesService const& tns,
172  PreallocationConfiguration const& prealloc,
173  ProductRegistry& pregistry,
174  BranchIDListHelper& branchIDListHelper,
176  std::shared_ptr<ActivityRegistry> areg,
177  std::shared_ptr<ProcessConfiguration> processConfiguration,
178  bool allowEarlyDelete,
180  ProcessContext const* processContext);
181 
182  StreamSchedule(StreamSchedule const&) = delete;
183 
185  WaitingTaskHolder iTask,
187  EventSetupImpl const& es,
188  ServiceToken const& token,
189  std::vector<edm::propagate_const<std::shared_ptr<PathStatusInserter>>>& pathStatusInserters);
190 
191  template <typename T>
193  typename T::MyPrincipal& principal,
194  EventSetupImpl const& eventSetup,
195  ServiceToken const& token,
196  bool cleaningUpAfterException = false);
197 
198  void beginStream();
199  void endStream();
200 
201  StreamID streamID() const { return streamID_; }
202 
205 
209  std::vector<ModuleDescription const*> getAllModuleDescriptions() const;
210 
212  void availablePaths(std::vector<std::string>& oLabelsToFill) const;
213 
215  void modulesInPath(std::string const& iPathLabel, std::vector<std::string>& oLabelsToFill) const;
216 
217  void moduleDescriptionsInPath(std::string const& iPathLabel,
218  std::vector<ModuleDescription const*>& descriptions,
219  unsigned int hint) const;
220 
221  void moduleDescriptionsInEndPath(std::string const& iEndPathLabel,
222  std::vector<ModuleDescription const*>& descriptions,
223  unsigned int hint) const;
224 
228  int totalEvents() const { return total_events_; }
229 
232  int totalEventsPassed() const { return total_passed_; }
233 
236  int totalEventsFailed() const { return totalEvents() - totalEventsPassed(); }
237 
240  void enableEndPaths(bool active);
241 
244  bool endPathsEnabled() const;
245 
248  void getTriggerReport(TriggerReport& rep) const;
249 
251  void clearCounters();
252 
254  void replaceModule(maker::ModuleHolder* iMod, std::string const& iLabel);
255 
257  AllWorkers const& allWorkers() const { return workerManager_.allWorkers(); }
258 
260 
261  StreamContext const& context() const { return streamContext_; }
262 
263  private:
264  //Sentry class to only send a signal if an
265  // exception occurs. An exception is identified
266  // by the destructor being called without first
267  // calling completedSuccessfully().
269  public:
271  : reg_(iReg), context_(iContext) {}
273  if (reg_) {
275  }
276  }
277  void completedSuccessfully() { reg_ = nullptr; }
278 
279  private:
280  edm::ActivityRegistry* reg_; // We do not use propagate_const because the registry itself is mutable.
282  };
283 
286 
287  void resetAll();
288 
289  void finishedPaths(std::atomic<std::exception_ptr*>&,
292  EventSetupImpl const& es);
293  std::exception_ptr finishProcessOneEvent(std::exception_ptr);
294 
295  void reportSkipped(EventPrincipal const& ep) const;
296 
297  void fillWorkers(ParameterSet& proc_pset,
298  ProductRegistry& preg,
299  PreallocationConfiguration const* prealloc,
300  std::shared_ptr<ProcessConfiguration const> processConfiguration,
301  std::string const& name,
302  bool ignoreFilters,
303  PathWorkers& out,
304  std::vector<std::string> const& endPathNames);
305  void fillTrigPath(ParameterSet& proc_pset,
306  ProductRegistry& preg,
307  PreallocationConfiguration const* prealloc,
308  std::shared_ptr<ProcessConfiguration const> processConfiguration,
309  int bitpos,
310  std::string const& name,
311  TrigResPtr,
312  std::vector<std::string> const& endPathNames);
313  void fillEndPath(ParameterSet& proc_pset,
314  ProductRegistry& preg,
315  PreallocationConfiguration const* prealloc,
316  std::shared_ptr<ProcessConfiguration const> processConfiguration,
317  int bitpos,
318  std::string const& name,
319  std::vector<std::string> const& endPathNames);
320 
321  void addToAllWorkers(Worker* w);
322 
323  void resetEarlyDelete();
325  edm::ParameterSet const& opts,
326  edm::ProductRegistry const& preg,
327  bool allowEarlyDelete);
328 
331 
333  std::vector<edm::propagate_const<std::shared_ptr<PathStatusInserter>>>& pathStatusInserters,
334  std::vector<edm::propagate_const<std::shared_ptr<EndPathStatusInserter>>>& endPathStatusInserters,
336 
338  std::shared_ptr<ActivityRegistry> actReg_; // We do not use propagate_const because the registry itself is mutable.
339 
341 
343  std::vector<edm::propagate_const<WorkerPtr>> pathStatusInserterWorkers_;
344  std::vector<edm::propagate_const<WorkerPtr>> endPathStatusInserterWorkers_;
345 
348  std::vector<int> empty_trig_paths_;
349  std::vector<int> empty_end_paths_;
350 
351  //For each branch that has been marked for early deletion
352  // keep track of how many modules are left that read this data but have
353  // not yet been run in this event
354  std::vector<BranchToCount> earlyDeleteBranchToCount_;
355  //NOTE the following is effectively internal data for each EarlyDeleteHelper
356  // but putting it into one vector makes for better allocation as well as
357  // faster iteration when used to reset the earlyDeleteBranchToCount_
358  // Each EarlyDeleteHelper hold a begin and end range into this vector. The values
359  // of this vector correspond to indexes into earlyDeleteBranchToCount_ so
360  // tell which EarlyDeleteHelper is associated with which BranchIDs.
361  std::vector<unsigned int> earlyDeleteHelperToBranchIndicies_;
362  //There is one EarlyDeleteHelper per Module which are reading data that
363  // has been marked for early deletion
364  std::vector<EarlyDeleteHelper> earlyDeleteHelpers_;
365 
369 
372  volatile bool endpathsAreActive_;
373  std::atomic<bool> skippingEvent_;
374  };
375 
376  void inline StreamSchedule::reportSkipped(EventPrincipal const& ep) const {
377  Service<JobReport> reportSvc;
378  reportSvc->reportSkippedEvent(ep.id().run(), ep.id().event());
379  }
380 
381  template <typename T>
383  typename T::MyPrincipal& ep,
384  EventSetupImpl const& es,
385  ServiceToken const& token,
386  bool cleaningUpAfterException) {
387  T::setStreamContext(streamContext_, ep);
388 
389  auto id = ep.id();
390  auto doneTask = make_waiting_task(
391  tbb::task::allocate_root(),
392  [this, iHolder, id, cleaningUpAfterException, token](std::exception_ptr const* iPtr) mutable {
393  std::exception_ptr excpt;
394  if (iPtr) {
395  excpt = *iPtr;
396  //add context information to the exception and print message
397  try {
398  convertException::wrap([&]() { std::rethrow_exception(excpt); });
399  } catch (cms::Exception& ex) {
400  //TODO: should add the transition type info
401  std::ostringstream ost;
402  if (ex.context().empty()) {
403  ost << "Processing " << T::transitionName() << " " << id;
404  }
406  addContextAndPrintException(ost.str().c_str(), ex, cleaningUpAfterException);
407  excpt = std::current_exception();
408  }
409 
411  actReg_->preStreamEarlyTerminationSignal_(streamContext_, TerminationOrigin::ExceptionFromThisContext);
412  }
413  // Caught exception is propagated via WaitingTaskHolder
414  CMS_SA_ALLOW try {
416  T::postScheduleSignal(actReg_.get(), &streamContext_);
417  } catch (...) {
418  if (not excpt) {
419  excpt = std::current_exception();
420  }
421  }
422  iHolder.doneWaiting(excpt);
423  });
424 
425  auto task = make_functor_task(tbb::task::allocate_root(),
426  [this, doneTask, h = WaitingTaskHolder(doneTask), &ep, &es, token]() mutable {
428  // Caught exception is propagated via WaitingTaskHolder
429  CMS_SA_ALLOW try {
430  T::preScheduleSignal(actReg_.get(), &streamContext_);
431 
433  } catch (...) {
434  h.doneWaiting(std::current_exception());
435  return;
436  }
437 
438  for (auto& p : end_paths_) {
439  p.runAllModulesAsync<T>(doneTask, ep, es, token, streamID_, &streamContext_);
440  }
441 
442  for (auto& p : trig_paths_) {
443  p.runAllModulesAsync<T>(doneTask, ep, es, token, streamID_, &streamContext_);
444  }
445 
447  doneTask, ep, es, token, streamID_, &streamContext_, &streamContext_);
448  });
449 
450  if (streamID_.value() == 0) {
451  //Enqueueing will start another thread if there is only
452  // one thread in the job. Having stream == 0 use spawn
453  // avoids starting up another thread when there is only one stream.
454  tbb::task::spawn(*task);
455  } else {
456  tbb::task::enqueue(*task);
457  }
458  }
459 } // namespace edm
460 
461 #endif
edm::StreamSchedule::fillEndPath
void fillEndPath(ParameterSet &proc_pset, ProductRegistry &preg, PreallocationConfiguration const *prealloc, std::shared_ptr< ProcessConfiguration const > processConfiguration, int bitpos, std::string const &name, std::vector< std::string > const &endPathNames)
Definition: StreamSchedule.cc:500
edm::StreamSchedule::addToAllWorkers
void addToAllWorkers(Worker *w)
Definition: StreamSchedule.cc:898
edm::StreamID
Definition: StreamID.h:30
WorkerManager.h
service
Definition: service.py:1
edm::TerminationOrigin::ExceptionFromThisContext
edm::StreamSchedule::endPathStatusInserterWorkers_
std::vector< edm::propagate_const< WorkerPtr > > endPathStatusInserterWorkers_
Definition: StreamSchedule.h:344
edm::StreamSchedule::empty_end_paths_
std::vector< int > empty_end_paths_
Definition: StreamSchedule.h:349
edm::StreamSchedule::clearCounters
void clearCounters()
Clear all the counters in the trigger report.
Definition: StreamSchedule.cc:885
edm::StreamSchedule::getTriggerReport
void getTriggerReport(TriggerReport &rep) const
Definition: StreamSchedule.cc:875
MessageLogger.h
funct::false
false
Definition: Factorize.h:34
edm::StreamSchedule::beginStream
void beginStream()
Definition: StreamSchedule.cc:529
edm::StreamSchedule::results
TrigResConstPtr results() const
Definition: StreamSchedule.h:329
edm::StreamSchedule::makePathStatusInserters
void makePathStatusInserters(std::vector< edm::propagate_const< std::shared_ptr< PathStatusInserter >>> &pathStatusInserters, std::vector< edm::propagate_const< std::shared_ptr< EndPathStatusInserter >>> &endPathStatusInserters, ExceptionToActionTable const &actions)
Definition: StreamSchedule.cc:914
edm::StreamSchedule::results
TrigResPtr & results()
Definition: StreamSchedule.h:330
EDProducer.h
BranchType.h
ActivityRegistry
propagate_const.h
edm::EventSetupImpl
Definition: EventSetupImpl.h:44
Path.h
WaitingTaskHolder.h
edm::StreamSchedule::fillWorkers
void fillWorkers(ParameterSet &proc_pset, ProductRegistry &preg, PreallocationConfiguration const *prealloc, std::shared_ptr< ProcessConfiguration const > processConfiguration, std::string const &name, bool ignoreFilters, PathWorkers &out, std::vector< std::string > const &endPathNames)
Definition: StreamSchedule.cc:399
edm::WorkerManager::resetAll
void resetAll()
Definition: WorkerManager.cc:117
edm::StreamSchedule::workerManager_
WorkerManager workerManager_
Definition: StreamSchedule.h:337
edm
HLT enums.
Definition: AlignableModifier.h:19
edm::ProcessContext
Definition: ProcessContext.h:27
edm::StreamSchedule::streamContext_
StreamContext streamContext_
Definition: StreamSchedule.h:371
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
edm::StreamSchedule::earlyDeleteBranchToCount_
std::vector< BranchToCount > earlyDeleteBranchToCount_
Definition: StreamSchedule.h:354
UnscheduledCallProducer.h
edm::WorkerManager::processOneOccurrenceAsync
void processOneOccurrenceAsync(WaitingTask *task, typename T::MyPrincipal &principal, EventSetupImpl const &eventSetup, ServiceToken const &token, StreamID streamID, typename T::Context const *topContext, U const *context)
Definition: WorkerManager.h:137
edm::StreamSchedule::total_events_
int total_events_
Definition: StreamSchedule.h:366
edm::StreamSchedule::SendTerminationSignalIfException::completedSuccessfully
void completedSuccessfully()
Definition: StreamSchedule.h:277
HLTGlobalStatus.h
FunctorTask.h
edm::StreamSchedule::PathWorkers
std::vector< WorkerInPath > PathWorkers
Definition: StreamSchedule.h:164
edm::make_functor_task
FunctorTask< F > * make_functor_task(ALLOC &&iAlloc, F f)
Definition: FunctorTask.h:47
Algorithms.h
edm::StreamSchedule::totalEventsPassed
int totalEventsPassed() const
Definition: StreamSchedule.h:232
edm::StreamSchedule::TrigResConstPtr
std::shared_ptr< HLTGlobalStatus const > TrigResConstPtr
Definition: StreamSchedule.h:158
edm::StreamSchedule::StreamSchedule
StreamSchedule(std::shared_ptr< TriggerResultInserter > inserter, std::vector< edm::propagate_const< std::shared_ptr< PathStatusInserter >>> &pathStatusInserters, std::vector< edm::propagate_const< std::shared_ptr< EndPathStatusInserter >>> &endPathStatusInserters, std::shared_ptr< ModuleRegistry >, ParameterSet &proc_pset, service::TriggerNamesService const &tns, PreallocationConfiguration const &prealloc, ProductRegistry &pregistry, BranchIDListHelper &branchIDListHelper, ExceptionToActionTable const &actions, std::shared_ptr< ActivityRegistry > areg, std::shared_ptr< ProcessConfiguration > processConfiguration, bool allowEarlyDelete, StreamID streamID, ProcessContext const *processContext)
Definition: StreamSchedule.cc:137
UnscheduledCallProducer
edm::StreamSchedule::allWorkers
AllWorkers const & allWorkers() const
returns the collection of pointers to workers
Definition: StreamSchedule.h:257
edm::WorkerManager::actionTable
ExceptionToActionTable const & actionTable() const
Definition: WorkerManager.h:89
edm::maker::ModuleHolder
Definition: ModuleHolder.h:37
edm::StreamID::value
unsigned int value() const
Definition: StreamID.h:42
edm::StreamSchedule::WorkerPtr
std::shared_ptr< Worker > WorkerPtr
Definition: StreamSchedule.h:159
edm::WaitingTaskHolder::doneWaiting
void doneWaiting(std::exception_ptr iExcept)
Definition: WaitingTaskHolder.h:75
CMS_SA_ALLOW
#define CMS_SA_ALLOW
Definition: thread_safety_macros.h:5
edm::StreamSchedule::vstring
std::vector< std::string > vstring
Definition: StreamSchedule.h:154
edm::StreamSchedule::results_inserter_
edm::propagate_const< WorkerPtr > results_inserter_
Definition: StreamSchedule.h:342
edm::ProductRegistry
Definition: ProductRegistry.h:34
ModuleDescription.h
edm::ServiceToken
Definition: ServiceToken.h:40
edm::propagate_const
Definition: propagate_const.h:32
edm::StreamSchedule::number_of_unscheduled_modules_
unsigned int number_of_unscheduled_modules_
Definition: StreamSchedule.h:368
edm::EventPrincipal
Definition: EventPrincipal.h:46
edm::StreamContext
Definition: StreamContext.h:31
edm::StreamSchedule::totalEvents
int totalEvents() const
Definition: StreamSchedule.h:228
edm::StreamSchedule::moduleDescriptionsInEndPath
void moduleDescriptionsInEndPath(std::string const &iEndPathLabel, std::vector< ModuleDescription const * > &descriptions, unsigned int hint) const
Definition: StreamSchedule.cc:800
EarlyDeleteHelper.h
edm::StreamSchedule::endPathsEnabled
bool endPathsEnabled() const
Definition: StreamSchedule.cc:831
EventPrincipal.h
Service.h
w
const double w
Definition: UKUtility.cc:23
edm::convertException::wrap
auto wrap(F iFunc) -> decltype(iFunc())
Definition: ConvertException.h:19
edm::StreamSchedule::context
StreamContext const & context() const
Definition: StreamSchedule.h:261
TrackValidation_cff.task
task
Definition: TrackValidation_cff.py:252
edm::ActivityRegistry
Definition: ActivityRegistry.h:132
edm::WorkerManager::allWorkers
AllWorkers const & allWorkers() const
Definition: WorkerManager.h:85
edm::StreamSchedule::enableEndPaths
void enableEndPaths(bool active)
Definition: StreamSchedule.cc:829
WaitingTaskHolder
edm::StreamSchedule::replaceModule
void replaceModule(maker::ModuleHolder *iMod, std::string const &iLabel)
clone the type of module with label iLabel but configure with iPSet.
Definition: StreamSchedule.cc:533
edm::StreamSchedule::actionTable
ExceptionToActionTable const & actionTable() const
returns the action table
Definition: StreamSchedule.h:285
h
ConvertException.h
edm::Worker
Definition: Worker.h:83
edm::make_waiting_task
FunctorWaitingTask< F > * make_waiting_task(ALLOC &&iAlloc, F f)
Definition: WaitingTask.h:87
edm::StreamSchedule::results_
edm::propagate_const< TrigResPtr > results_
Definition: StreamSchedule.h:340
edm::StreamSchedule::empty_trig_paths_
std::vector< int > empty_trig_paths_
Definition: StreamSchedule.h:348
edm::StreamSchedule::initializeEarlyDelete
void initializeEarlyDelete(ModuleRegistry &modReg, edm::ParameterSet const &opts, edm::ProductRegistry const &preg, bool allowEarlyDelete)
Definition: StreamSchedule.cc:243
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::get_underlying_safe
std::shared_ptr< T > & get_underlying_safe(propagate_const< std::shared_ptr< T >> &iP)
Definition: get_underlying_safe.h:40
edm::StreamSchedule::moduleDescriptionsInPath
void moduleDescriptionsInPath(std::string const &iPathLabel, std::vector< ModuleDescription const * > &descriptions, unsigned int hint) const
Definition: StreamSchedule.cc:771
edm::ParameterSet
Definition: ParameterSet.h:36
a
double a
Definition: hdecay.h:119
cms::Exception::context
std::list< std::string > const & context() const
Definition: Exception.cc:147
edm::WaitingTaskHolder
Definition: WaitingTaskHolder.h:30
edm::StreamSchedule::skippingEvent_
std::atomic< bool > skippingEvent_
Definition: StreamSchedule.h:373
edm::StreamSchedule::actReg_
std::shared_ptr< ActivityRegistry > actReg_
Definition: StreamSchedule.h:338
ExceptionMessages.h
thread_safety_macros.h
edm::BranchIDListHelper
Definition: BranchIDListHelper.h:15
edm::Service
Definition: Service.h:30
edm::addContextAndPrintException
void addContextAndPrintException(char const *context, cms::Exception &ex, bool disablePrint)
Definition: ExceptionHelpers.cc:11
edm::StreamSchedule::fillTrigPath
void fillTrigPath(ParameterSet &proc_pset, ProductRegistry &preg, PreallocationConfiguration const *prealloc, std::shared_ptr< ProcessConfiguration const > processConfiguration, int bitpos, std::string const &name, TrigResPtr, std::vector< std::string > const &endPathNames)
Definition: StreamSchedule.cc:470
cuy.rep
rep
Definition: cuy.py:1190
edm::StreamSchedule::end_paths_
TrigPaths end_paths_
Definition: StreamSchedule.h:347
ExceptionActions.h
edm::StreamSchedule::Workers
std::vector< Worker * > Workers
Definition: StreamSchedule.h:162
edm::ExceptionToActionTable
Definition: ExceptionActions.h:16
edm::StreamSchedule::processOneStreamAsync
void processOneStreamAsync(WaitingTaskHolder iTask, typename T::MyPrincipal &principal, EventSetupImpl const &eventSetup, ServiceToken const &token, bool cleaningUpAfterException=false)
Definition: StreamSchedule.h:382
edm::TriggerReport
Definition: TriggerReport.h:56
edm::StreamSchedule::finishedPaths
void finishedPaths(std::atomic< std::exception_ptr * > &, WaitingTaskHolder, EventPrincipal &ep, EventSetupImpl const &es)
Definition: StreamSchedule.cc:662
edm::StreamSchedule::streamID_
StreamID streamID_
Definition: StreamSchedule.h:370
edm::StreamSchedule::NonTrigPaths
std::vector< Path > NonTrigPaths
Definition: StreamSchedule.h:156
edm::StreamSchedule::getAllModuleDescriptions
std::vector< ModuleDescription const * > getAllModuleDescriptions() const
Definition: StreamSchedule.cc:549
edm::service::TriggerNamesService
Definition: TriggerNamesService.h:42
OccurrenceTraits.h
edm::PreallocationConfiguration
Definition: PreallocationConfiguration.h:27
edm::StreamSchedule::TrigPaths
std::vector< Path > TrigPaths
Definition: StreamSchedule.h:155
edm::StreamSchedule::resetAll
void resetAll()
Definition: StreamSchedule.cc:893
edm::StreamSchedule::earlyDeleteHelpers_
std::vector< EarlyDeleteHelper > earlyDeleteHelpers_
Definition: StreamSchedule.h:364
edm::ModuleRegistry
Definition: ModuleRegistry.h:40
edm::StreamSchedule::TrigResPtr
std::shared_ptr< HLTGlobalStatus > TrigResPtr
Definition: StreamSchedule.h:157
ExceptionHelpers.h
edm::StreamSchedule::numberOfUnscheduledModules
unsigned int numberOfUnscheduledModules() const
Definition: StreamSchedule.h:259
Frameworkfwd.h
triggerObjects_cff.id
id
Definition: triggerObjects_cff.py:31
T
long double T
Definition: Basic3DVectorLD.h:48
edm::StreamSchedule::processOneEventAsync
void processOneEventAsync(WaitingTaskHolder iTask, EventPrincipal &ep, EventSetupImpl const &es, ServiceToken const &token, std::vector< edm::propagate_const< std::shared_ptr< PathStatusInserter >>> &pathStatusInserters)
Definition: StreamSchedule.cc:560
edm::StreamSchedule::AllWorkers
std::vector< Worker * > AllWorkers
Definition: StreamSchedule.h:160
Worker.h
edm::StreamSchedule::trig_paths_
TrigPaths trig_paths_
Definition: StreamSchedule.h:346
WorkerRegistry.h
edm::StreamSchedule::resetEarlyDelete
void resetEarlyDelete()
Definition: StreamSchedule.cc:900
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
edm::StreamSchedule::SendTerminationSignalIfException
Definition: StreamSchedule.h:268
Exception.h
edm::StreamSchedule::endStream
void endStream()
Definition: StreamSchedule.cc:531
edm::StreamSchedule::SendTerminationSignalIfException::context_
StreamContext const * context_
Definition: StreamSchedule.h:281
MillePedeFileConverter_cfg.out
out
Definition: MillePedeFileConverter_cfg.py:31
actions
roAction_t actions[nactions]
Definition: GenABIO.cc:181
cms::Exception
Definition: Exception.h:70
edm::StreamSchedule::streamID
StreamID streamID() const
Definition: StreamSchedule.h:201
JobReport.h
edm::ActivityRegistry::preStreamEarlyTerminationSignal_
PreStreamEarlyTermination preStreamEarlyTerminationSignal_
Definition: ActivityRegistry.h:424
StreamContext.h
edm::StreamSchedule
Definition: StreamSchedule.h:152
edm::StreamSchedule::pathStatusInserterWorkers_
std::vector< edm::propagate_const< WorkerPtr > > pathStatusInserterWorkers_
Definition: StreamSchedule.h:343
edm::StreamSchedule::availablePaths
void availablePaths(std::vector< std::string > &oLabelsToFill) const
adds to oLabelsToFill the labels for all paths in the process
Definition: StreamSchedule.cc:750
edm::StreamSchedule::earlyDeleteHelperToBranchIndicies_
std::vector< unsigned int > earlyDeleteHelperToBranchIndicies_
Definition: StreamSchedule.h:361
get_underlying_safe.h
edm::StreamSchedule::SendTerminationSignalIfException::reg_
edm::ActivityRegistry * reg_
Definition: StreamSchedule.h:280
edm::StreamSchedule::finishProcessOneEvent
std::exception_ptr finishProcessOneEvent(std::exception_ptr)
Definition: StreamSchedule.cc:718
StreamID.h
edm::ServiceRegistry::Operate
Definition: ServiceRegistry.h:40
edm::StreamSchedule::totalEventsFailed
int totalEventsFailed() const
Definition: StreamSchedule.h:236
edm::WorkerManager
Definition: WorkerManager.h:33
edm::StreamSchedule::modulesInPath
void modulesInPath(std::string const &iPathLabel, std::vector< std::string > &oLabelsToFill) const
adds to oLabelsToFill in execution order the labels of all modules in path iPathLabel
Definition: StreamSchedule.cc:758
SiStripBadComponentsDQMServiceTemplate_cfg.ep
ep
Definition: SiStripBadComponentsDQMServiceTemplate_cfg.py:86
edm::StreamSchedule::SendTerminationSignalIfException::~SendTerminationSignalIfException
~SendTerminationSignalIfException()
Definition: StreamSchedule.h:272
edm::StreamSchedule::endpathsAreActive_
volatile bool endpathsAreActive_
Definition: StreamSchedule.h:372
geometryDiff.opts
opts
Definition: geometryDiff.py:11
edm::StreamSchedule::total_passed_
int total_passed_
Definition: StreamSchedule.h:367
edm::StreamSchedule::reportSkipped
void reportSkipped(EventPrincipal const &ep) const
Definition: StreamSchedule.h:376
unpackBuffers-CaloStage2.token
token
Definition: unpackBuffers-CaloStage2.py:316
edm::StreamSchedule::SendTerminationSignalIfException::SendTerminationSignalIfException
SendTerminationSignalIfException(edm::ActivityRegistry *iReg, edm::StreamContext const *iContext)
Definition: StreamSchedule.h:270