Skip to content

Commit a3b7f82

Browse files
committed
Always add the new service to the ApplicationMgr
1 parent a9c4312 commit a3b7f82

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
@@ -19,7 +19,14 @@
1919
import logging
2020

2121
from Configurables import ApplicationMgr as AppMgr
22-
from Configurables import Reader, Writer, IOSvc, Gaudi__Sequencer, EventLoopMgr
22+
from Configurables import (
23+
Reader,
24+
Writer,
25+
IOSvc,
26+
Gaudi__Sequencer,
27+
EventLoopMgr,
28+
CollectionFromObjectSvc,
29+
)
2330

2431
logger = logging.getLogger()
2532

@@ -110,6 +117,9 @@ def fix_properties(self):
110117
if "MetadataSvc" in self._mgr.allConfigurables:
111118
self._mgr.ExtSvc.append(self._mgr.allConfigurables["MetadataSvc"])
112119

120+
# Always attach the CollectionFromObjectSvc
121+
self._mgr.ExtSvc.append(CollectionFromObjectSvc("CollectionFromObjectSvc"))
122+
113123
if "IOSvc" not in self._mgr.allConfigurables:
114124
return
115125
if not isinstance(self._mgr.allConfigurables["IOSvc"], IOSvc):

0 commit comments

Comments
 (0)