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>
12 
13 namespace edm {
14  class ProductRegistry;
15  class ActivityRegistry;
16  class BranchIDListHelper;
17  class PreallocationConfiguration;
18  class ThinnedAssociationsHelper;
19 
23  productRegistry_(nullptr),
24  actReg_(),
25  maxEvents_(-1),
26  maxLumis_(-1),
27  allocations_(nullptr) {}
28 
30  std::shared_ptr<ProductRegistry> preg,
31  std::shared_ptr<BranchIDListHelper> branchIDListHelper,
32  std::shared_ptr<ThinnedAssociationsHelper> thinnedAssociationsHelper,
33  std::shared_ptr<ActivityRegistry> areg,
34  int maxEvents,
35  int maxLumis,
36  int maxSecondsUntilRampdown,
37  PreallocationConfiguration const& allocations)
38  : moduleDescription_(md),
39  productRegistry_(preg),
40  branchIDListHelper_(branchIDListHelper),
41  thinnedAssociationsHelper_(thinnedAssociationsHelper),
42  actReg_(areg),
44  maxLumis_(maxLumis),
45  maxSecondsUntilRampdown_(maxSecondsUntilRampdown),
46  allocations_(&allocations) {}
47 
49  std::shared_ptr<ProductRegistry> productRegistry_;
50  std::shared_ptr<BranchIDListHelper> branchIDListHelper_;
51  std::shared_ptr<ThinnedAssociationsHelper> thinnedAssociationsHelper_;
52  std::shared_ptr<ActivityRegistry> actReg_; // We do not use propagate_const because the registry itself is mutable.
54  int maxLumis_;
57  };
58 } // namespace edm
59 
60 #endif
ActivityRegistry
edm::InputSourceDescription::maxEvents_
int maxEvents_
Definition: InputSourceDescription.h:53
edm
HLT enums.
Definition: AlignableModifier.h:19
edm::InputSourceDescription
Definition: InputSourceDescription.h:20
PreallocationConfiguration.h
edm::ModuleDescription
Definition: ModuleDescription.h:21
ModuleDescription.h
edm::InputSourceDescription::InputSourceDescription
InputSourceDescription(ModuleDescription const &md, std::shared_ptr< ProductRegistry > preg, std::shared_ptr< BranchIDListHelper > branchIDListHelper, std::shared_ptr< ThinnedAssociationsHelper > thinnedAssociationsHelper, std::shared_ptr< ActivityRegistry > areg, int maxEvents, int maxLumis, int maxSecondsUntilRampdown, PreallocationConfiguration const &allocations)
Definition: InputSourceDescription.h:29
edm::InputSourceDescription::allocations_
PreallocationConfiguration const * allocations_
Definition: InputSourceDescription.h:56
edm::InputSourceDescription::productRegistry_
std::shared_ptr< ProductRegistry > productRegistry_
Definition: InputSourceDescription.h:49
edm::InputSourceDescription::InputSourceDescription
InputSourceDescription()
Definition: InputSourceDescription.h:21
edm::InputSourceDescription::actReg_
std::shared_ptr< ActivityRegistry > actReg_
Definition: InputSourceDescription.h:52
edm::InputSourceDescription::branchIDListHelper_
std::shared_ptr< BranchIDListHelper > branchIDListHelper_
Definition: InputSourceDescription.h:50
edm::InputSourceDescription::maxSecondsUntilRampdown_
int maxSecondsUntilRampdown_
Definition: InputSourceDescription.h:55
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:54
edm::InputSourceDescription::moduleDescription_
ModuleDescription moduleDescription_
Definition: InputSourceDescription.h:48
edm::InputSourceDescription::thinnedAssociationsHelper_
std::shared_ptr< ThinnedAssociationsHelper > thinnedAssociationsHelper_
Definition: InputSourceDescription.h:51