Skip to content

Commit ea2146f

Browse files
committed
Always add the new service to the ApplicationMgr
1 parent da3f690 commit ea2146f

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

python/k4FWCore/ApplicationMgr.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,14 @@
2020

2121
from Gaudi import Configuration
2222
from Configurables import ApplicationMgr as AppMgr
23-
from Configurables import Reader, Writer, IOSvc, Gaudi__Sequencer, EventLoopMgr
23+
from Configurables import (
24+
Reader,
25+
Writer,
26+
IOSvc,
27+
Gaudi__Sequencer,
28+
EventLoopMgr,
29+
CollectionFromObjectSvc,
30+
)
2431
from k4FWCore.utils import get_logger
2532

2633
logger = get_logger()
@@ -118,6 +125,9 @@ def fix_properties(self):
118125
if "MetadataSvc" in self._mgr.allConfigurables:
119126
self._mgr.ExtSvc.append(self._mgr.allConfigurables["MetadataSvc"])
120127

128+
# Always attach the CollectionFromObjectSvc
129+
self._mgr.ExtSvc.append(CollectionFromObjectSvc("CollectionFromObjectSvc"))
130+
121131
if "IOSvc" not in self._mgr.allConfigurables:
122132
return
123133
if not isinstance(self._mgr.allConfigurables["IOSvc"], IOSvc):

0 commit comments

Comments
 (0)