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
edm::ScheduleItems::preg
std::shared_ptr< SignallingProductRegistry const > preg() const
Definition: ScheduleItems.h:53
edm::ScheduleItems::processConfiguration
std::shared_ptr< ProcessConfiguration > & processConfiguration()
Definition: ScheduleItems.h:71
edm::ScheduleItems::processConfiguration
std::shared_ptr< ProcessConfiguration const > processConfiguration() const
Definition: ScheduleItems.h:68
edm::SubProcess
Definition: SubProcess.h:50
ActivityRegistry
edm::ScheduleItems::processConfiguration_
edm::propagate_const< std::shared_ptr< ProcessConfiguration > > processConfiguration_
Definition: ScheduleItems.h:79
edm
HLT enums.
Definition: AlignableModifier.h:19
edm::ProcessContext
Definition: ProcessContext.h:27
edm::ScheduleItems::operator=
ScheduleItems & operator=(ScheduleItems const &)=delete
edm::ScheduleItems::thinnedAssociationsHelper_
edm::propagate_const< std::shared_ptr< ThinnedAssociationsHelper > > thinnedAssociationsHelper_
Definition: ScheduleItems.h:76
edm::ScheduleItems::thinnedAssociationsHelper
std::shared_ptr< ThinnedAssociationsHelper const > thinnedAssociationsHelper() const
Definition: ScheduleItems.h:59
edm::ScheduleItems
Definition: ScheduleItems.h:28
ServiceToken.h
edm::get_underlying_safe
constexpr std::shared_ptr< T > & get_underlying_safe(propagate_const< std::shared_ptr< T >> &iP)
Definition: get_underlying_safe.h:41
edm::ScheduleItems::preg_
edm::propagate_const< std::shared_ptr< SignallingProductRegistry > > preg_
Definition: ScheduleItems.h:74
edm::ScheduleItems::initMisc
std::shared_ptr< CommonParams > initMisc(ParameterSet &parameterSet)
Definition: ScheduleItems.cc:118
edm::ScheduleItems::branchIDListHelper_
edm::propagate_const< std::shared_ptr< BranchIDListHelper > > branchIDListHelper_
Definition: ScheduleItems.h:75
edm::ScheduleItems::addCPRandTNS
ServiceToken addCPRandTNS(ParameterSet const &parameterSet, ServiceToken const &token)
Definition: ScheduleItems.cc:101
edm::ProductRegistry
Definition: ProductRegistry.h:37
edm::parameterSet
ParameterSet const & parameterSet(StableProvenance const &provenance, ProcessHistory const &history)
Definition: Provenance.cc:11
edm::ServiceToken
Definition: ServiceToken.h:42
edm::propagate_const
Definition: propagate_const.h:32
edm::ScheduleItems::act_table_
std::unique_ptr< ExceptionToActionTable const > act_table_
Definition: ScheduleItems.h:78
edm::ScheduleItems::branchIDListHelper
std::shared_ptr< BranchIDListHelper > & branchIDListHelper()
Definition: ScheduleItems.h:58
edm::ScheduleItems::actReg_
std::shared_ptr< ActivityRegistry > actReg_
Definition: ScheduleItems.h:73
edm::ScheduleItems::initServices
ServiceToken initServices(std::vector< ParameterSet > &servicePSets, ParameterSet &processPSet, ServiceToken const &iToken, serviceregistry::ServiceLegacy iLegacy, bool associate)
Definition: ScheduleItems.cc:81
edm::ScheduleItems::ScheduleItems
ScheduleItems()
Definition: ScheduleItems.cc:28
edm::ParameterSet
Definition: ParameterSet.h:47
ParameterSet
Definition: Functions.h:16
edm::ScheduleItems::subProcessParentageHelper_
edm::propagate_const< std::shared_ptr< SubProcessParentageHelper > > subProcessParentageHelper_
Definition: ScheduleItems.h:77
edm::ScheduleItems::branchIDListHelper
std::shared_ptr< BranchIDListHelper const > branchIDListHelper() const
Definition: ScheduleItems.h:55
edm::ScheduleItems::subProcessParentageHelper
std::shared_ptr< SubProcessParentageHelper > & subProcessParentageHelper()
Definition: ScheduleItems.h:65
SignallingProductRegistry
edm::PreallocationConfiguration
Definition: PreallocationConfiguration.h:27
edm::ScheduleItems::thinnedAssociationsHelper
std::shared_ptr< ThinnedAssociationsHelper > & thinnedAssociationsHelper()
Definition: ScheduleItems.h:62
ServiceLegacy.h
edm::ScheduleItems::initSchedule
std::unique_ptr< Schedule > initSchedule(ParameterSet &parameterSet, bool hasSubprocesses, PreallocationConfiguration const &iAllocConfig, ProcessContext const *)
Definition: ScheduleItems.cc:130
edm::ScheduleItems::preg
std::shared_ptr< SignallingProductRegistry > & preg()
Definition: ScheduleItems.h:54
get_underlying_safe.h
edm::ScheduleItems::clear
void clear()
Definition: ScheduleItems.cc:148
edm::serviceregistry::ServiceLegacy
ServiceLegacy
Definition: ServiceLegacy.h:29
unpackBuffers-CaloStage2.token
token
Definition: unpackBuffers-CaloStage2.py:316