@@ -153,7 +153,9 @@ namespace edm {
153153
154154 typedef std::vector<std::string> vstring;
155155
156- void processSwitchProducers (ParameterSet const & proc_pset, std::string const & processName, ProductRegistry& preg) {
156+ void processSwitchProducers (ParameterSet const & proc_pset,
157+ std::string const & processName,
158+ SignallingProductRegistry& preg) {
157159 // Update Switch ProductDescriptions for the chosen case
158160 struct BranchesCases {
159161 BranchesCases (std::vector<std::string> cases) : caseLabels{std::move (cases)} {}
@@ -173,7 +175,7 @@ namespace edm {
173175 }
174176
175177 bool found = false ;
176- for (auto const & productIter : preg.productList ()) {
178+ for (auto const & productIter : preg.registry (). productList ()) {
177179 BranchKey const & branchKey = productIter.first ;
178180 // The alias-for product must be in the same process as
179181 // the SwitchProducer (earlier processes or SubProcesses
@@ -217,7 +219,7 @@ namespace edm {
217219
218220 auto addProductsToException = [&preg, &processName](auto const & caseLabels, edm::Exception& ex) {
219221 std::map<std::string, std::vector<BranchKey>> caseBranches;
220- for (auto const & item : preg.productList ()) {
222+ for (auto const & item : preg.registry (). productList ()) {
221223 if (item.first .processName () != processName)
222224 continue ;
223225
@@ -644,18 +646,18 @@ namespace edm {
644646 // already relied on the WorkerManager being full.
645647 assert (all_workers_count == allWorkers ().size ());
646648
647- branchIDListHelper.updateFromRegistry (preg);
649+ branchIDListHelper.updateFromRegistry (preg. registry () );
648650
649651 for (auto const & worker : streamSchedules_[0 ]->allWorkersLumisAndEvents ()) {
650- worker->registerThinnedAssociations (preg, thinnedAssociationsHelper);
652+ worker->registerThinnedAssociations (preg. registry () , thinnedAssociationsHelper);
651653 }
652654
653- processBlockHelper.updateForNewProcess (preg, processConfiguration->processName ());
655+ processBlockHelper.updateForNewProcess (preg. registry () , processConfiguration->processName ());
654656
655657 // The output modules consume products in kept branches.
656658 // So we must set this up before freezing.
657659 for (auto & c : all_output_communicators_) {
658- c->selectProducts (preg, thinnedAssociationsHelper, processBlockHelper);
660+ c->selectProducts (preg. registry () , thinnedAssociationsHelper, processBlockHelper);
659661 }
660662
661663 for (auto & product : preg.productListUpdator ()) {
@@ -688,7 +690,7 @@ namespace edm {
688690 }
689691
690692 for (auto & c : all_output_communicators_) {
691- c->setEventSelectionInfo (outputModulePathPositions, preg.anyProductProduced ());
693+ c->setEventSelectionInfo (outputModulePathPositions, preg.registry (). anyProductProduced ());
692694 }
693695
694696 if (wantSummary_) {
@@ -1241,10 +1243,10 @@ namespace edm {
12411243
12421244 {
12431245 // Need to updateLookup in order to make getByToken work
1244- auto const processBlockLookup = iRegistry.productLookup (InProcess);
1245- auto const runLookup = iRegistry.productLookup (InRun);
1246- auto const lumiLookup = iRegistry.productLookup (InLumi);
1247- auto const eventLookup = iRegistry.productLookup (InEvent);
1246+ auto const processBlockLookup = iRegistry.registry (). productLookup (InProcess);
1247+ auto const runLookup = iRegistry.registry (). productLookup (InRun);
1248+ auto const lumiLookup = iRegistry.registry (). productLookup (InLumi);
1249+ auto const eventLookup = iRegistry.registry (). productLookup (InEvent);
12481250 found->updateLookup (InProcess, *runLookup);
12491251 found->updateLookup (InRun, *runLookup);
12501252 found->updateLookup (InLumi, *lumiLookup);
0 commit comments