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 
37  initServices(std::vector<ParameterSet>& servicePSets,
38  ParameterSet& processPSet,
39  ServiceToken const& iToken,
41  bool associate);
42 
44  addCPRandTNS(ParameterSet const& parameterSet, ServiceToken const& token);
45 
46  std::shared_ptr<CommonParams>
47  initMisc(ParameterSet& parameterSet);
48 
49  std::unique_ptr<Schedule>
50  initSchedule(ParameterSet& parameterSet,
51  bool hasSubprocesses,
52  PreallocationConfiguration const& iAllocConfig,
53  ProcessContext const*);
54 
55  void
56  clear();
57 
58  std::shared_ptr<SignallingProductRegistry const> preg() const {return get_underlying_safe(preg_);}
59  std::shared_ptr<SignallingProductRegistry>& preg() {return get_underlying_safe(preg_);}
60  std::shared_ptr<BranchIDListHelper const> branchIDListHelper() const {return get_underlying_safe(branchIDListHelper_);}
61  std::shared_ptr<BranchIDListHelper>& branchIDListHelper() {return get_underlying_safe(branchIDListHelper_);}
62  std::shared_ptr<ThinnedAssociationsHelper const> thinnedAssociationsHelper() const {return get_underlying_safe(thinnedAssociationsHelper_);}
63  std::shared_ptr<ThinnedAssociationsHelper>& thinnedAssociationsHelper() {return get_underlying_safe(thinnedAssociationsHelper_);}
64  std::shared_ptr<SubProcessParentageHelper>& subProcessParentageHelper() {return get_underlying_safe(subProcessParentageHelper_);}
65  std::shared_ptr<ProcessConfiguration const> processConfiguration() const {return get_underlying_safe(processConfiguration_);}
66  std::shared_ptr<ProcessConfiguration>& processConfiguration() {return get_underlying_safe(processConfiguration_);}
67 
68  std::shared_ptr<ActivityRegistry> actReg_; // We do not use propagate_const because the registry itself is mutable.
73  std::unique_ptr<ExceptionToActionTable const> act_table_;
75  };
76 }
77 #endif
std::shared_ptr< ActivityRegistry > actReg_
Definition: ScheduleItems.h:68
std::unique_ptr< ExceptionToActionTable const > act_table_
Definition: ScheduleItems.h:73
std::shared_ptr< ThinnedAssociationsHelper const > thinnedAssociationsHelper() const
Definition: ScheduleItems.h:62
edm::propagate_const< std::shared_ptr< SignallingProductRegistry > > preg_
Definition: ScheduleItems.h:69
edm::propagate_const< std::shared_ptr< ThinnedAssociationsHelper > > thinnedAssociationsHelper_
Definition: ScheduleItems.h:71
ScheduleItems & operator=(ScheduleItems const &)=delete
std::shared_ptr< SignallingProductRegistry > & preg()
Definition: ScheduleItems.h:59
edm::propagate_const< std::shared_ptr< BranchIDListHelper > > branchIDListHelper_
Definition: ScheduleItems.h:70
std::shared_ptr< CommonParams > initMisc(ParameterSet &parameterSet)
std::shared_ptr< SubProcessParentageHelper > & subProcessParentageHelper()
Definition: ScheduleItems.h:64
std::shared_ptr< T > & get_underlying_safe(propagate_const< std::shared_ptr< T >> &iP)
std::shared_ptr< ProcessConfiguration > & processConfiguration()
Definition: ScheduleItems.h:66
edm::propagate_const< std::shared_ptr< ProcessConfiguration > > processConfiguration_
Definition: ScheduleItems.h:74
std::shared_ptr< ProcessConfiguration const > processConfiguration() const
Definition: ScheduleItems.h:65
ServiceToken initServices(std::vector< ParameterSet > &servicePSets, ParameterSet &processPSet, ServiceToken const &iToken, serviceregistry::ServiceLegacy iLegacy, bool associate)
std::shared_ptr< ThinnedAssociationsHelper > & thinnedAssociationsHelper()
Definition: ScheduleItems.h:63
edm::propagate_const< std::shared_ptr< SubProcessParentageHelper > > subProcessParentageHelper_
Definition: ScheduleItems.h:72
ServiceToken addCPRandTNS(ParameterSet const &parameterSet, ServiceToken const &token)
HLT enums.
std::shared_ptr< SignallingProductRegistry const > preg() const
Definition: ScheduleItems.h:58
std::shared_ptr< BranchIDListHelper const > branchIDListHelper() const
Definition: ScheduleItems.h:60
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:61