22 lastSetupEventPrincipal_(nullptr) {}
25 std::shared_ptr<ActivityRegistry> areg,
27 : workerReg_(areg, modReg),
31 lastSetupEventPrincipal_(nullptr) {}
35 if (worker !=
nullptr) {
46 std::shared_ptr<ProcessConfiguration const> processConfiguration,
55 std::shared_ptr<ProcessConfiguration const> processConfiguration,
57 std::set<std::string>& unscheduledLabels,
58 std::vector<std::string>& shouldBeUsedLabels) {
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)
roAction_t actions[nactions]
void removeWorker(Worker const *worker)
void endStream(StreamID iID, StreamContext &streamContext)
static const std::string kFilterType("EDFilter")
UnscheduledCallProducer unscheduled_
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)
UnscheduledAuxiliary const & auxiliary() const
Worker const * get(std::string const &moduleLabel) const
ExceptionToActionTable const * actionTable_
Worker * getWorker(ParameterSet &pset, ProductRegistry &preg, PreallocationConfiguration const *prealloc, std::shared_ptr< ProcessConfiguration const > processConfiguration, std::string const &label)
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)
void addToUnscheduledWorkers(ParameterSet &pset, ProductRegistry &preg, PreallocationConfiguration const *prealloc, std::shared_ptr< ProcessConfiguration const > processConfiguration, std::string label, std::set< std::string > &unscheduledLabels, std::vector< std::string > &shouldBeUsedLabels)
std::shared_ptr< ProductResolverIndexHelper const > productLookup(BranchType branchType) const
static const std::string kProducerType("EDProducer")
config
parse the configuration file
bool search_all(ForwardSequence const &s, Datum const &d)
def remove(d, key, TELL=False)
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)
void addToAllWorkers(Worker *w)