try to install seek-stuff on the EventSelector side.
if `silent` is True, only an attempt at installing the seeking is performed.
otherwise an exception is raised if the seeking could not be installed.
Definition at line 15 of file PyAthenaEventLoopMgr.py.
16 """ try to install seek-stuff on the EventSelector side.
17 if `silent` is True, only an attempt at installing the seeking is performed.
18 otherwise an exception is raised if the seeking could not be installed.
22 from AthenaCommon.Logging
import log
as msg
23 if 'AthenaPoolCnvSvc.ReadAthenaPool' not in sys.modules:
29 _msg(
"Cannot enable 'seeking' b/c module "
30 "[AthenaPoolCnvSvc.ReadAthenaPool] hasn't been imported..." )
31 _msg(
"Modify your jobOptions to import that module "+ \
32 "(or just ignore this message)" )
35 raise RuntimeError(
"configuration-logic error")
39 from AthenaCommon.AppMgr
import ServiceMgr
as svcMgr
41 collectionType = svcMgr.EventSelector.properties()[
"CollectionType"]
43 if collectionType
in (
"ImplicitROOT", Configurable.propertyNoValue, ):
44 msg.info (
"=> Seeking enabled." )
47 msg.warning(
"Input seeking is not compatible with collection type of %s",
48 svcMgr.EventSelector.properties()[
"CollectionType"] )
49 msg.warning(
"=> Seeking disabled." )
51 raise RuntimeError(
"could not install seeking")
53 from AthenaCommon.AppMgr
import theApp
54 if theApp.state() != theApp.State.OFFLINE:
56 svcMgr.EventSelector.setup()