Skip to content

Commit e2915ba

Browse files
committed
Handle case were PuttableSourceBase added to the ProductRegistry
The LHESource doesn't do the standard produces call and instead directly injects into the ProductRegistry.
1 parent 4c63b96 commit e2915ba

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

FWCore/Sources/src/PuttableSourceBase.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ PuttableSourceBase::PuttableSourceBase(ParameterSet const& iPSet, InputSourceDes
4141

4242
void PuttableSourceBase::registerProducts() {
4343
SignallingProductRegistryFiller reg;
44+
//this handled case were Source's construct injects items into the ProductRegistry
45+
reg.addFromInput(productRegistryUpdate());
4446
registerProducts(this, &reg, moduleDescription());
4547
productRegistryUpdate() = reg.moveTo();
4648
}

0 commit comments

Comments
 (0)