19 actionTable_(&actions),
22 lastSetupEventPrincipal_(nullptr) {}
25 std::shared_ptr<ActivityRegistry>
areg,
27 : workerReg_(areg, modReg),
28 actionTable_(&actions),
31 lastSetupEventPrincipal_(nullptr) {}
35 if (worker !=
nullptr) {
57 std::set<std::string>& unscheduledLabels,
58 std::vector<std::string>& shouldBeUsedLabels) {
64 Worker* newWorker =
getWorker(pset, preg, prealloc, processConfiguration, label);
66 unscheduledLabels.insert(label);
71 shouldBeUsedLabels.push_back(label);
100 auto processBlockModuleToIndicies = processBlockLookup->indiciesForModulesInProcess(
processName);
101 auto runModuleToIndicies = runLookup->indiciesForModulesInProcess(
processName);
102 auto lumiModuleToIndicies = lumiLookup->indiciesForModulesInProcess(
processName);
103 auto eventModuleToIndicies = eventLookup->indiciesForModulesInProcess(
processName);
105 worker->updateLookup(
InProcess, *processBlockLookup);
106 worker->updateLookup(
InRun, *runLookup);
107 worker->updateLookup(
InLumi, *lumiLookup);
108 worker->updateLookup(
InEvent, *eventLookup);
109 worker->updateLookup(iESIndices);
110 worker->resolvePutIndicies(
InProcess, processBlockModuleToIndicies);
111 worker->resolvePutIndicies(
InRun, runModuleToIndicies);
112 worker->resolvePutIndicies(
InLumi, lumiModuleToIndicies);
113 worker->resolvePutIndicies(
InEvent, eventModuleToIndicies);
114 worker->selectInputProcessBlocks(iRegistry, processBlockHelperBase);
123 worker->beginStream(iID, streamContext);
129 worker->endStream(iID, streamContext);
void addException(cms::Exception const &exception)
void setupUnscheduled(UnscheduledConfigurator const &)
void removeWorker(Worker const *worker)
void endStream(StreamID iID, StreamContext &streamContext)
static const std::string kFilterType("EDFilter")
UnscheduledCallProducer unscheduled_
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 setupOnDemandSystem(EventTransitionInfo const &)
void deleteModuleIfExists(std::string const &moduleLabel)
void beginJob(ProductRegistry const &iRegistry, eventsetup::ESRecordsToProxyIndices const &, ProcessBlockHelperBase const &)
void setEventTransitionInfo(EventTransitionInfo const &info)
ExceptionToActionTable const * actionTable_
void const * lastSetupEventPrincipal_
Func for_all(ForwardSequence &s, Func f)
wrapper for std::for_each
void addWorker(Worker *aWorker)
void deleteModule(std::string const &moduleLabel)
Deletes the module of the Worker, but the Worker continues to exist.
virtual Types moduleType() const =0
void beginStream(StreamID iID, StreamContext &streamContext)
static const std::string kProducerType("EDProducer")
UnscheduledAuxiliary const & auxiliary() const
T getParameter(std::string const &) const
bool search_all(ForwardSequence const &s, Datum const &d)
Worker const * get(std::string const &moduleLabel) const
std::shared_ptr< ProductResolverIndexHelper const > productLookup(BranchType branchType) const
tuple config
parse the configuration file
void setupResolvers(Principal &principal)
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 addToAllWorkers(Worker *w)