CMS 3D CMS Logo

InputSourceDescription.h
Go to the documentation of this file.
1 #ifndef FWCore_Framework_InputSourceDescription_h
2 #define FWCore_Framework_InputSourceDescription_h
3 
4 /*----------------------------------------------------------------------
5 
6 InputSourceDescription : the stuff that is needed to configure an
7 input source that does not come in through the ParameterSet
8 ----------------------------------------------------------------------*/
9 #include <memory>
13 
14 namespace edm {
15  class ProductRegistry;
16  class ActivityRegistry;
17  class BranchIDListHelper;
18  class PreallocationConfiguration;
19  class ThinnedAssociationsHelper;
20 
24  productRegistry_(nullptr),
25  actReg_(),
26  maxEvents_(-1),
27  maxLumis_(-1),
28  allocations_(nullptr) {}
29 
31  std::shared_ptr<ProductRegistry> preg,
32  std::shared_ptr<BranchIDListHelper> branchIDListHelper,
33  std::shared_ptr<ProcessBlockHelper> const& processBlockHelper,
34  std::shared_ptr<ThinnedAssociationsHelper> thinnedAssociationsHelper,
35  std::shared_ptr<ActivityRegistry> areg,
36  int maxEvents,
37  int maxLumis,
38  int maxSecondsUntilRampdown,
39  PreallocationConfiguration const& allocations)
40  : moduleDescription_(md),
41  productRegistry_(preg),
42  branchIDListHelper_(branchIDListHelper),
43  processBlockHelper_(processBlockHelper),
44  thinnedAssociationsHelper_(thinnedAssociationsHelper),
45  actReg_(areg),
47  maxLumis_(maxLumis),
48  maxSecondsUntilRampdown_(maxSecondsUntilRampdown),
49  allocations_(&allocations) {}
50 
52  std::shared_ptr<ProductRegistry> productRegistry_;
53  std::shared_ptr<BranchIDListHelper> branchIDListHelper_;
54  std::shared_ptr<ProcessBlockHelper> processBlockHelper_;
55  std::shared_ptr<ThinnedAssociationsHelper> thinnedAssociationsHelper_;
56  std::shared_ptr<ActivityRegistry> actReg_; // We do not use propagate_const because the registry itself is mutable.
58  int maxLumis_;
61  };
62 } // namespace edm
63 
64 #endif
edm::InputSourceDescription::processBlockHelper_
std::shared_ptr< ProcessBlockHelper > processBlockHelper_
Definition: InputSourceDescription.h:54
ActivityRegistry
edm::InputSourceDescription::maxEvents_
int maxEvents_
Definition: InputSourceDescription.h:57
edm
HLT enums.
Definition: AlignableModifier.h:19
edm::InputSourceDescription
Definition: InputSourceDescription.h:21
PreallocationConfiguration.h
edm::ModuleDescription
Definition: ModuleDescription.h:21
ModuleDescription.h
edm::InputSourceDescription::allocations_
PreallocationConfiguration const * allocations_
Definition: InputSourceDescription.h:60
edm::InputSourceDescription::productRegistry_
std::shared_ptr< ProductRegistry > productRegistry_
Definition: InputSourceDescription.h:52
edm::InputSourceDescription::InputSourceDescription
InputSourceDescription()
Definition: InputSourceDescription.h:22
edm::InputSourceDescription::actReg_
std::shared_ptr< ActivityRegistry > actReg_
Definition: InputSourceDescription.h:56
edm::InputSourceDescription::InputSourceDescription
InputSourceDescription(ModuleDescription const &md, std::shared_ptr< ProductRegistry > preg, std::shared_ptr< BranchIDListHelper > branchIDListHelper, std::shared_ptr< ProcessBlockHelper > const &processBlockHelper, std::shared_ptr< ThinnedAssociationsHelper > thinnedAssociationsHelper, std::shared_ptr< ActivityRegistry > areg, int maxEvents, int maxLumis, int maxSecondsUntilRampdown, PreallocationConfiguration const &allocations)
Definition: InputSourceDescription.h:30
edm::InputSourceDescription::branchIDListHelper_
std::shared_ptr< BranchIDListHelper > branchIDListHelper_
Definition: InputSourceDescription.h:53
edm::InputSourceDescription::maxSecondsUntilRampdown_
int maxSecondsUntilRampdown_
Definition: InputSourceDescription.h:59
edm::PreallocationConfiguration
Definition: PreallocationConfiguration.h:27
Data_TkAlMinBias_Run2018C_PromptReco_v3_cff.maxEvents
maxEvents
Definition: Data_TkAlMinBias_Run2018C_PromptReco_v3_cff.py:3
edm::InputSourceDescription::maxLumis_
int maxLumis_
Definition: InputSourceDescription.h:58
edm::InputSourceDescription::moduleDescription_
ModuleDescription moduleDescription_
Definition: InputSourceDescription.h:51
edm::InputSourceDescription::thinnedAssociationsHelper_
std::shared_ptr< ThinnedAssociationsHelper > thinnedAssociationsHelper_
Definition: InputSourceDescription.h:55
FWCoreCommonFwd.h