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 
9 
10 #include <memory>
11 #include <vector>
12 
13 namespace edm {
14  class ExceptionToActionTable;
15  class ActivityRegistry;
16  class BranchIDListHelper;
17  class ThinnedAssociationsHelper;
18  struct CommonParams;
19  class SubProcess;
20  class ParameterSet;
21  class ProcessConfiguration;
22  class ProcessContext;
23  class ProductRegistry;
24  class Schedule;
26  class StreamID;
27  class PreallocationConfiguration;
28  class SubProcessParentageHelper;
29 
30  struct ScheduleItems {
31  ScheduleItems();
32 
34  SubProcess const& om,
35  SubProcessBlockHelper& subProcessBlockHelper,
36  ProcessBlockHelperBase const& parentProcessBlockHelper);
37 
38  ScheduleItems(ScheduleItems const&) = delete; // Disallow copying and moving
39  ScheduleItems& operator=(ScheduleItems const&) = delete; // Disallow copying and moving
40 
41  ServiceToken initServices(std::vector<ParameterSet>& servicePSets,
42  ParameterSet& processPSet,
43  ServiceToken const& iToken,
45  bool associate);
46 
48 
49  std::shared_ptr<CommonParams> initMisc(ParameterSet& parameterSet);
50 
51  std::unique_ptr<Schedule> initSchedule(ParameterSet& parameterSet,
52  bool hasSubprocesses,
53  PreallocationConfiguration const& iAllocConfig,
54  ProcessContext const*,
55  ProcessBlockHelperBase& processBlockHelper);
56 
57  std::shared_ptr<SignallingProductRegistry const> preg() const { return get_underlying_safe(preg_); }
58  std::shared_ptr<SignallingProductRegistry>& preg() { return get_underlying_safe(preg_); }
59  std::shared_ptr<BranchIDListHelper const> branchIDListHelper() const {
61  }
62  std::shared_ptr<BranchIDListHelper>& branchIDListHelper() { return get_underlying_safe(branchIDListHelper_); }
63  std::shared_ptr<ThinnedAssociationsHelper const> thinnedAssociationsHelper() const {
65  }
66  std::shared_ptr<ThinnedAssociationsHelper>& thinnedAssociationsHelper() {
68  }
69  std::shared_ptr<SubProcessParentageHelper>& subProcessParentageHelper() {
71  }
72  std::shared_ptr<ProcessConfiguration const> processConfiguration() const {
74  }
75  std::shared_ptr<ProcessConfiguration>& processConfiguration() { return get_underlying_safe(processConfiguration_); }
76 
77  std::shared_ptr<ActivityRegistry> actReg_; // We do not use propagate_const because the registry itself is mutable.
82  std::unique_ptr<ExceptionToActionTable const> act_table_;
84  };
85 } // namespace edm
86 #endif
std::shared_ptr< ActivityRegistry > actReg_
Definition: ScheduleItems.h:77
std::unique_ptr< Schedule > initSchedule(ParameterSet &parameterSet, bool hasSubprocesses, PreallocationConfiguration const &iAllocConfig, ProcessContext const *, ProcessBlockHelperBase &processBlockHelper)
std::shared_ptr< BranchIDListHelper const > branchIDListHelper() const
Definition: ScheduleItems.h:59
std::unique_ptr< ExceptionToActionTable const > act_table_
Definition: ScheduleItems.h:82
edm::propagate_const< std::shared_ptr< SignallingProductRegistry > > preg_
Definition: ScheduleItems.h:78
edm::propagate_const< std::shared_ptr< ThinnedAssociationsHelper > > thinnedAssociationsHelper_
Definition: ScheduleItems.h:80
ScheduleItems & operator=(ScheduleItems const &)=delete
std::shared_ptr< SignallingProductRegistry > & preg()
Definition: ScheduleItems.h:58
constexpr std::shared_ptr< T > & get_underlying_safe(propagate_const< std::shared_ptr< T >> &iP)
ParameterSet const & parameterSet(StableProvenance const &provenance, ProcessHistory const &history)
Definition: Provenance.cc:11
std::shared_ptr< ProcessConfiguration const > processConfiguration() const
Definition: ScheduleItems.h:72
edm::propagate_const< std::shared_ptr< BranchIDListHelper > > branchIDListHelper_
Definition: ScheduleItems.h:79
std::shared_ptr< SignallingProductRegistry const > preg() const
Definition: ScheduleItems.h:57
std::shared_ptr< CommonParams > initMisc(ParameterSet &parameterSet)
std::shared_ptr< SubProcessParentageHelper > & subProcessParentageHelper()
Definition: ScheduleItems.h:69
std::shared_ptr< ProcessConfiguration > & processConfiguration()
Definition: ScheduleItems.h:75
edm::propagate_const< std::shared_ptr< ProcessConfiguration > > processConfiguration_
Definition: ScheduleItems.h:83
ServiceToken initServices(std::vector< ParameterSet > &servicePSets, ParameterSet &processPSet, ServiceToken const &iToken, serviceregistry::ServiceLegacy iLegacy, bool associate)
std::shared_ptr< ThinnedAssociationsHelper > & thinnedAssociationsHelper()
Definition: ScheduleItems.h:66
edm::propagate_const< std::shared_ptr< SubProcessParentageHelper > > subProcessParentageHelper_
Definition: ScheduleItems.h:81
ServiceToken addCPRandTNS(ParameterSet const &parameterSet, ServiceToken const &token)
std::shared_ptr< ThinnedAssociationsHelper const > thinnedAssociationsHelper() const
Definition: ScheduleItems.h:63
HLT enums.
std::shared_ptr< BranchIDListHelper > & branchIDListHelper()
Definition: ScheduleItems.h:62