ATLAS Offline Software
StoreGateExample_Del_jobOptions.py
Go to the documentation of this file.
1 
11 from AthenaCommon.AppMgr import theApp
12 # dummy event loop
13 theApp.EvtSel = "NONE"
14 # Number of events to be processed (default is 10)
15 theApp.EvtMax = 2
16 
17 
18 #--------------------------------------------------------------
19 # Private Application Configuration options
20 #--------------------------------------------------------------
21 from AthenaCommon.AlgSequence import AlgSequence
22 topSeq = AlgSequence()
23 
24 topSeq += CfgMgr.WriteData()
25 delAlg=CfgMgr.SGDeleteAlg()
26 delAlg.ToDelete.ItemList = ["MyDataObj#WriteData", "193758082#"]
27 delAlg.OutputLevel = VERBOSE
28 topSeq += delAlg
29 
30 # setup output level
31 from AthenaCommon.AppMgr import ServiceMgr as svcMgr
32 if not hasattr (svcMgr, 'StoreGateSvc'):
33  svcMgr += CfgMgr.StoreGateSvc()
34 svcMgr.StoreGateSvc.OutputLevel = VERBOSE
35 svcMgr.StoreGateSvc.Dump = True #True will dump data store contents
36 
37 svcMgr.MessageSvc.useColors = True
38 #svcMgr.MessageSvc.OutputLevel = Lvl.DEBUG
39 
40 
41 #==============================================================
42 #
43 # End of AthExStoreGateExample Job options file
44 #
45 
python.AlgSequence.AlgSequence
AlgSequence
Definition: PhysicsAnalysis/D3PDTools/AnaAlgorithm/python/AlgSequence.py:7