18 actionTable_(&actions),
24 std::shared_ptr<ActivityRegistry>
areg,
26 workerReg_(areg,modReg),
27 actionTable_(&actions),
46 std::set<std::string>& unscheduledLabels,
47 std::vector<std::string>& shouldBeUsedLabels) {
53 Worker* newWorker =
getWorker(pset, preg, prealloc, processConfiguration, label);
55 unscheduledLabels.insert(label);
60 shouldBeUsedLabels.push_back(label);
66 if(
prod.second.produced() &&
68 unscheduledLabels.end() != unscheduledLabels.find(
prod.second.moduleLabel())) {
69 prod.second.setOnDemand(
true);
99 worker->updateLookup(
InRun,*runLookup);
100 worker->updateLookup(
InLumi,*lumiLookup);
101 worker->updateLookup(
InEvent,*eventLookup);
111 worker->beginStream(iID, streamContext);
118 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)