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 
24  actReg_(),
25  maxEvents_(-1),
26  maxLumis_(-1),
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),
43  maxEvents_(maxEvents),
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
std::shared_ptr< ProductRegistry > productRegistry_
std::shared_ptr< ActivityRegistry > actReg_
std::shared_ptr< ThinnedAssociationsHelper > thinnedAssociationsHelper_
#define nullptr
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)
std::shared_ptr< BranchIDListHelper > branchIDListHelper_
HLT enums.
PreallocationConfiguration const * allocations_