ATLAS Offline Software
Loading...
Searching...
No Matches
EventInfoReadWrite Namespace Reference

Functions

 eventInfoTestCfg (step=1)

Function Documentation

◆ eventInfoTestCfg()

EventInfoReadWrite.eventInfoTestCfg ( step = 1)

Definition at line 8 of file EventInfoReadWrite.py.

8def eventInfoTestCfg(step=1):
9 flags=initConfigFlags()
10 #Set a number of flags to avoid input-file peeking
11 flags.Input.isMC=True
12 flags.Input.RunNumbers=[1]
13 flags.LAr.doAlign=False
14
15 flags.Exec.DebugMessageComponents=["TagInfoMgr",
16 "EventInfoWriter",
17 "IOVDbMetaDataTool"]
18
19 if (step>0):
20 flags.Input.Files=["myEventInfoPoolFile%i.pool.root" % (step-1),]
21
22 StreamName="EventInfoPoolFile%i" % step
23 flags.lock()
24
25
26 from AthenaConfiguration.MainServicesConfig import MainServicesCfg
27 acc=MainServicesCfg(flags)
28
29 from AthenaPoolCnvSvc.PoolReadConfig import PoolReadCfg
30 acc.merge(PoolReadCfg(flags))
31
32 #Add some LAr and Tile conditions, this is the payload obj for this test
33 from LArGeoAlgsNV.LArGMConfig import LArGMCfg
34 acc.merge(LArGMCfg(flags))
35
36
37 from LArCabling.LArCablingConfig import LArOnOffIdMappingCfg, LArCalibIdMappingCfg,LArFebRodMappingCfg
38 acc.merge(LArOnOffIdMappingCfg(flags))
39 acc.merge(LArCalibIdMappingCfg(flags))
40 acc.merge(LArFebRodMappingCfg(flags))
41
42 from TileConditions.TileEMScaleConfig import TileEMScaleCondAlgCfg
43 acc.merge(TileEMScaleCondAlgCfg(flags))
44
45 from EventInfoMgt.TagInfoMgrConfig import TagInfoMgrCfg
46 acc.merge(TagInfoMgrCfg(flags))
47
48
49 writer=CompFactory.EventInfoWriter()
50 if (step==3):
51 writer.CreateDummyTags = True
52 if (step==4):
53 writer.CreateDummyOverrideTags = True
54 if (step==5):
55 writer.RemoveDummyTags = True
56
57 acc.addEventAlgo(writer,sequenceName = 'AthAlgSeq')
58
59 from OutputStreamAthenaPool.OutputStreamConfig import OutputStreamCfg
60 acc.merge(
61 OutputStreamCfg(
62 flags,
63 StreamName,
64 ItemList=[],
65 MetadataItemList=["IOVMetaDataContainer#*"],
66 )
67 )
68
69 # Change output file catalog to avoid races.
70 acc.getService("PoolSvc").WriteCatalog = 'file:EventInfoTests_catalog.xml'
71
72 #Tag differences are intentional here
73 acc.getService("GeoModelSvc").IgnoreTagDifference = True
74
75 setupLoggingLevels(flags,acc)
76
77 return acc.run().isFailure()