17 actionTable_(&actions),
23 std::shared_ptr<ActivityRegistry>
areg,
25 workerReg_(areg,modReg),
26 actionTable_(&actions),
45 std::set<std::string>& unscheduledLabels,
46 std::vector<std::string>& shouldBeUsedLabels) {
52 Worker* newWorker =
getWorker(pset, preg, prealloc, processConfiguration, label);
54 unscheduledLabels.insert(label);
59 shouldBeUsedLabels.push_back(label);
65 if(
prod.second.produced() &&
67 unscheduledLabels.end() != unscheduledLabels.find(
prod.second.moduleLabel())) {
68 prod.second.setOnDemand(
true);
98 worker->updateLookup(
InRun,*runLookup);
99 worker->updateLookup(
InLumi,*lumiLookup);
100 worker->updateLookup(
InEvent,*eventLookup);
110 worker->beginStream(iID, streamContext);
117 worker->endStream(iID, streamContext);
T getParameter(std::string const &) const
void addException(cms::Exception const &exception)
void endStream(StreamID iID, StreamContext &streamContext)
static const std::string kFilterType("EDFilter")
void setOnDemandProducts(ProductRegistry &pregistry, std::set< std::string > const &unscheduledLabels) const
void addToUnscheduledWorkers(ParameterSet &pset, ProductRegistry &preg, PreallocationConfiguration const *prealloc, std::shared_ptr< ProcessConfiguration > processConfiguration, std::string label, std::set< std::string > &unscheduledLabels, std::vector< std::string > &shouldBeUsedLabels)
void beginJob(ProductRegistry const &iRegistry)
std::shared_ptr< ProductHolderIndexHelper > const & productLookup(BranchType branchType) const
ExceptionToActionTable const * actionTable_
Func for_all(ForwardSequence &s, Func f)
wrapper for std::for_each
void setUnscheduledHandler(std::shared_ptr< UnscheduledHandler > iHandler)
virtual Types moduleType() const =0
void beginStream(StreamID iID, StreamContext &streamContext)
static const std::string kProducerType("EDProducer")
bool search_all(ForwardSequence const &s, Datum const &d)
ProductList & productListUpdator()
void loadMissingDictionaries()
std::shared_ptr< UnscheduledCallProducer > unscheduled_
WorkerRegistry workerReg_
Worker * getWorker(WorkerParams const &p, std::string const &moduleLabel)
Retrieve the particular instance of the worker.
auto wrap(F iFunc) -> decltype(iFunc())
WorkerManager(std::shared_ptr< ActivityRegistry > actReg, ExceptionToActionTable const &actions)
Worker * getWorker(ParameterSet &pset, ProductRegistry &preg, PreallocationConfiguration const *prealloc, std::shared_ptr< ProcessConfiguration const > processConfiguration, std::string const &label)
void setupOnDemandSystem(EventPrincipal &principal, EventSetup const &es)
void addToAllWorkers(Worker *w)