20 std::shared_ptr<ModuleRegistry> modReg,
21 std::vector<std::string>
const& iModulesToUse,
26 std::shared_ptr<ActivityRegistry>
areg,
29 workerManager_(modReg,areg,actions),
31 processContext_(processContext)
33 for (
auto const& moduleLabel : iModulesToUse) {
38 "The unknown module label \"" << moduleLabel <<
39 "\"\n please check spelling";
49 inserter->doPreallocate(prealloc);
69 if (worker->description().moduleLabel() == iLabel) {
74 if (
nullptr == found) {
82 std::vector<ModuleDescription const*>
84 std::vector<ModuleDescription const*>
result;
void replaceModule(maker::ModuleHolder *iMod, std::string const &iLabel)
clone the type of module with label iLabel but configure with iPSet.
virtual void replaceModuleFor(Worker *) const =0
void beginJob(ProductRegistry const &iRegistry)
void addToAllWorkers(Worker *w)
void beginJob(ProductRegistry const &)
GlobalSchedule(std::shared_ptr< TriggerResultInserter > inserter, std::shared_ptr< ModuleRegistry > modReg, std::vector< std::string > const &modulesToUse, ParameterSet &proc_pset, ProductRegistry &pregistry, PreallocationConfiguration const &prealloc, ExceptionToActionTable const &actions, std::shared_ptr< ActivityRegistry > areg, std::shared_ptr< ProcessConfiguration > processConfiguration, ProcessContext const *processContext)
AllWorkers const & allWorkers() const
returns the collection of pointers to workers
void endJob(ExceptionCollector &collector)
std::shared_ptr< ActivityRegistry > actReg_
std::vector< ModuleDescription const * > getAllModuleDescriptions() const
WorkerPtr results_inserter_
WorkerManager workerManager_
tuple size
Write out results.
Worker * getWorker(ParameterSet &pset, ProductRegistry &preg, PreallocationConfiguration const *prealloc, std::shared_ptr< ProcessConfiguration const > processConfiguration, std::string const &label)
void addToAllWorkers(Worker *w)
ParameterSet * getPSetForUpdate(std::string const &name, bool &isTracked)