ATLAS Offline Software
StoreGateHiveExample_Reentrant_jobOptions.py
Go to the documentation of this file.
1 #
2 # Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3 #
4 
5 
14 import AthenaCommon.AtlasUnixGeneratorJob
15 
16 theApp.MessageSvcType = "TBBMessageSvc"
17 
18 from AthenaServices.AthenaServicesConf import AthenaHiveEventLoopMgr
19 
20 svcMgr += AthenaHiveEventLoopMgr()
21 # svcMgr.AthenaHiveEventLoopMgr.OutputLevel = DEBUG
22 
23 theApp.EventLoop = "AthenaHiveEventLoopMgr"
24 
25 numStores = 1
26 
27 from StoreGate.StoreGateConf import SG__HiveMgrSvc
28 svcMgr += SG__HiveMgrSvc("EventDataSvc")
29 svcMgr.EventDataSvc.NSlots = numStores
30 
31 #svcMgr.ForwardSchedulerSvc.AlgosDependencies = [[],['8000/WriteData'],[],[]]
32 
33 from AthenaCommon.AlgScheduler import AlgScheduler
34 AlgScheduler.setThreadPoolSize( 1 )
35 
36 svcMgr += AthenaHiveEventLoopMgr()
37 svcMgr.AthenaHiveEventLoopMgr.WhiteboardSvc = "EventDataSvc"
38 svcMgr.AthenaHiveEventLoopMgr.OutputLevel = DEBUG
39 svcMgr.AthenaHiveEventLoopMgr.SchedulerSvc = AlgScheduler.getScheduler().getName()
40 
41 from StoreGate.StoreGateConf import SG__HiveMgrSvc
42 svcMgr += SG__HiveMgrSvc("EventDataSvc")
43 svcMgr.EventDataSvc.NSlots = numStores
44 svcMgr.EventDataSvc.OutputLevel = DEBUG
45 
46 from StoreGate.StoreGateConf import StoreGateSvc
47 svcMgr += StoreGateSvc()
48 svcMgr.StoreGateSvc.OutputLevel = VERBOSE
49 svcMgr.StoreGateSvc.Dump = True
50 
51 from StoreGate.StoreGateConf import SGImplSvc
52 svcMgr += SGImplSvc("SGImplSvc")
53 svcMgr.SGImplSvc.OutputLevel = VERBOSE
54 
55 
56 # dummy event loop
57 #theApp.EvtSel = "NONE"
58 # Number of events to be processed (default is 10)
59 theApp.EvtMax = 500
60 
61 
62 #--------------------------------------------------------------
63 # Private Application Configuration options
64 #--------------------------------------------------------------
65 from AthenaCommon.AlgSequence import AlgSequence
66 topSeq = AlgSequence()
67 
68 topSeq += CfgMgr.WriteDataReentrant()
69 topSeq += CfgMgr.ReadDataReentrant()
70 
71 # setup output level
72 from AthenaCommon.AppMgr import ServiceMgr as svcMgr
73 if not hasattr (svcMgr, 'StoreGateSvc'):
74  svcMgr += CfgMgr.StoreGateSvc()
75 svcMgr.StoreGateSvc.OutputLevel = VERBOSE
76 #svcMgr.StoreGateSvc.Dump = False #True will dump data store contents
77 
78 svcMgr.MessageSvc.useColors = True
79 #svcMgr.MessageSvc.OutputLevel = Lvl.DEBUG
80 
81 
82 #==============================================================
83 #
84 # End of AthExStoreGateExample Job options file
85 #
86 
python.AlgSequence.AlgSequence
AlgSequence
Definition: PhysicsAnalysis/D3PDTools/AnaAlgorithm/python/AlgSequence.py:7
dumpTruth.getName
getName
Definition: dumpTruth.py:34
hydjet.StoreGateSvc
StoreGateSvc
Definition: hydjet.minbias.pbpb5520.r12345.job.py:40