ATLAS Offline Software
Functions
EventInfoReadWrite Namespace Reference

Functions

def eventInfoTestCfg (step=1)
 

Function Documentation

◆ eventInfoTestCfg()

def EventInfoReadWrite.eventInfoTestCfg (   step = 1)

Definition at line 8 of file EventInfoReadWrite.py.

8 def 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(
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()
EventInfoReadWrite.eventInfoTestCfg
def eventInfoTestCfg(step=1)
Definition: EventInfoReadWrite.py:8
python.OutputStreamConfig.OutputStreamCfg
def OutputStreamCfg(flags, streamName, ItemList=[], MetadataItemList=[], disableEventTag=False, trigNavThinningSvc=None, takeItemsFromInput=False, extendProvenanceRecord=True, AcceptAlgs=[], HelperTools=[])
Definition: OutputStreamConfig.py:12
LArCablingConfig.LArFebRodMappingCfg
def LArFebRodMappingCfg(configFlags)
Definition: LArCablingConfig.py:80
python.TagInfoMgrConfig.TagInfoMgrCfg
def TagInfoMgrCfg(flags, tagValuePairs={})
Definition: TagInfoMgrConfig.py:6
python.Utils.setupLoggingLevels
def setupLoggingLevels(flags, ca)
Definition: Control/AthenaConfiguration/python/Utils.py:46
python.MainServicesConfig.MainServicesCfg
def MainServicesCfg(flags, LoopMgr='AthenaEventLoopMgr')
Definition: MainServicesConfig.py:260
LArCablingConfig.LArOnOffIdMappingCfg
def LArOnOffIdMappingCfg(configFlags)
Definition: LArCablingConfig.py:62
LArGMConfig.LArGMCfg
def LArGMCfg(flags)
Definition: LArGMConfig.py:8
python.TileEMScaleConfig.TileEMScaleCondAlgCfg
def TileEMScaleCondAlgCfg(flags, **kwargs)
Definition: TileEMScaleConfig.py:10
python.AllConfigFlags.initConfigFlags
def initConfigFlags()
Definition: AllConfigFlags.py:19
python.PoolReadConfig.PoolReadCfg
def PoolReadCfg(flags)
Definition: PoolReadConfig.py:69
LArCablingConfig.LArCalibIdMappingCfg
def LArCalibIdMappingCfg(configFlags)
Definition: LArCablingConfig.py:83