CMS 3D CMS Logo

ScheduleItems.h
Go to the documentation of this file.
1 #ifndef FWCore_Framework_ScheduleItems_h
2 #define FWCore_Framework_ScheduleItems_h
3 
7 
8 #include <memory>
9 #include <vector>
10 
11 namespace edm {
12  class ExceptionToActionTable;
13  class ActivityRegistry;
14  class BranchIDListHelper;
15  class ThinnedAssociationsHelper;
16  struct CommonParams;
17  class SubProcess;
18  class ParameterSet;
19  class ProcessConfiguration;
20  class ProcessContext;
21  class ProductRegistry;
22  class Schedule;
24  class StreamID;
25  class PreallocationConfiguration;
26  class SubProcessParentageHelper;
27 
28  struct ScheduleItems {
29  ScheduleItems();
30 
31  ScheduleItems(ProductRegistry const& preg, SubProcess const& om);
32 
33  ScheduleItems(ScheduleItems const&) = delete; // Disallow copying and moving
34  ScheduleItems& operator=(ScheduleItems const&) = delete; // Disallow copying and moving
35 
36  ServiceToken initServices(std::vector<ParameterSet>& servicePSets,
37  ParameterSet& processPSet,
38  ServiceToken const& iToken,
40  bool associate);
41 
43 
44  std::shared_ptr<CommonParams> initMisc(ParameterSet& parameterSet);
45 
46  std::unique_ptr<Schedule> initSchedule(ParameterSet& parameterSet,
47  bool hasSubprocesses,
48  PreallocationConfiguration const& iAllocConfig,
49  ProcessContext const*);
50 
51  void clear();
52 
53  std::shared_ptr<SignallingProductRegistry const> preg() const { return get_underlying_safe(preg_); }
54  std::shared_ptr<SignallingProductRegistry>& preg() { return get_underlying_safe(preg_); }
55  std::shared_ptr<BranchIDListHelper const> branchIDListHelper() const {
57  }
58  std::shared_ptr<BranchIDListHelper>& branchIDListHelper() { return get_underlying_safe(branchIDListHelper_); }
59  std::shared_ptr<ThinnedAssociationsHelper const> thinnedAssociationsHelper() const {
61  }
62  std::shared_ptr<ThinnedAssociationsHelper>& thinnedAssociationsHelper() {
64  }
65  std::shared_ptr<SubProcessParentageHelper>& subProcessParentageHelper() {
67  }
68  std::shared_ptr<ProcessConfiguration const> processConfiguration() const {
70  }
71  std::shared_ptr<ProcessConfiguration>& processConfiguration() { return get_underlying_safe(processConfiguration_); }
72 
73  std::shared_ptr<ActivityRegistry> actReg_; // We do not use propagate_const because the registry itself is mutable.
78  std::unique_ptr<ExceptionToActionTable const> act_table_;
80  };
81 } // namespace edm
82 #endif
std::shared_ptr< ActivityRegistry > actReg_
Definition: ScheduleItems.h:73
std::unique_ptr< ExceptionToActionTable const > act_table_
Definition: ScheduleItems.h:78
std::shared_ptr< ThinnedAssociationsHelper const > thinnedAssociationsHelper() const
Definition: ScheduleItems.h:59
edm::propagate_const< std::shared_ptr< SignallingProductRegistry > > preg_
Definition: ScheduleItems.h:74
edm::propagate_const< std::shared_ptr< ThinnedAssociationsHelper > > thinnedAssociationsHelper_
Definition: ScheduleItems.h:76
ScheduleItems & operator=(ScheduleItems const &)=delete
std::shared_ptr< SignallingProductRegistry > & preg()
Definition: ScheduleItems.h:54
edm::propagate_const< std::shared_ptr< BranchIDListHelper > > branchIDListHelper_
Definition: ScheduleItems.h:75
std::shared_ptr< CommonParams > initMisc(ParameterSet &parameterSet)
std::shared_ptr< SubProcessParentageHelper > & subProcessParentageHelper()
Definition: ScheduleItems.h:65
std::shared_ptr< T > & get_underlying_safe(propagate_const< std::shared_ptr< T >> &iP)
std::shared_ptr< ProcessConfiguration > & processConfiguration()
Definition: ScheduleItems.h:71
edm::propagate_const< std::shared_ptr< ProcessConfiguration > > processConfiguration_
Definition: ScheduleItems.h:79
std::shared_ptr< ProcessConfiguration const > processConfiguration() const
Definition: ScheduleItems.h:68
ServiceToken initServices(std::vector< ParameterSet > &servicePSets, ParameterSet &processPSet, ServiceToken const &iToken, serviceregistry::ServiceLegacy iLegacy, bool associate)
std::shared_ptr< ThinnedAssociationsHelper > & thinnedAssociationsHelper()
Definition: ScheduleItems.h:62
edm::propagate_const< std::shared_ptr< SubProcessParentageHelper > > subProcessParentageHelper_
Definition: ScheduleItems.h:77
ServiceToken addCPRandTNS(ParameterSet const &parameterSet, ServiceToken const &token)
HLT enums.
std::shared_ptr< SignallingProductRegistry const > preg() const
Definition: ScheduleItems.h:53
std::shared_ptr< BranchIDListHelper const > branchIDListHelper() const
Definition: ScheduleItems.h:55
std::unique_ptr< Schedule > initSchedule(ParameterSet &parameterSet, bool hasSubprocesses, PreallocationConfiguration const &iAllocConfig, ProcessContext const *)
ParameterSet const & parameterSet(Provenance const &provenance)
Definition: Provenance.cc:11
std::shared_ptr< BranchIDListHelper > & branchIDListHelper()
Definition: ScheduleItems.h:58