ATLAS Offline Software
EventInfoRead.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
2 
3 
4 from AthenaConfiguration.AllConfigFlags import initConfigFlags
5 from AthenaConfiguration.ComponentFactory import CompFactory
6 from AthenaConfiguration.Utils import setupLoggingLevels
7 import sys
8 
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 flags.Input.Files=["myEventInfoPoolFile5.pool.root",]
15 flags.Exec.DebugMessageComponents=["TagInfoMgr",
16  "EventInfoReader",]
17 
18 
19 flags.lock()
20 
21 
22 from AthenaConfiguration.MainServicesConfig import MainServicesCfg
23 acc=MainServicesCfg(flags)
24 
25 from AthenaPoolCnvSvc.PoolReadConfig import PoolReadCfg
26 acc.merge(PoolReadCfg(flags))
27 
28 #Add some LAr and Tile conditions, this is the payload obj for this test
29 from LArGeoAlgsNV.LArGMConfig import LArGMCfg
30 acc.merge(LArGMCfg(flags))
31 
32 
33 from LArCabling.LArCablingConfig import LArOnOffIdMappingCfg, LArCalibIdMappingCfg,LArFebRodMappingCfg
34 acc.merge(LArOnOffIdMappingCfg(flags))
35 acc.merge(LArCalibIdMappingCfg(flags))
36 acc.merge(LArFebRodMappingCfg(flags))
37 
38 from TileConditions.TileEMScaleConfig import TileEMScaleCondAlgCfg
39 acc.merge(TileEMScaleCondAlgCfg(flags))
40 
41 from EventInfoMgt.TagInfoMgrConfig import TagInfoMgrCfg
42 acc.merge(TagInfoMgrCfg(flags))
43 
44 acc.addEventAlgo(CompFactory.EventInfoReader(),sequenceName = 'AthAlgSeq')
45 
46 # Change output file catalog to avoid races.
47 acc.getService("PoolSvc").WriteCatalog = 'file:EventInfoTests_catalog.xml'
48 
49 #Tag differnces are intentional here
50 acc.getService("GeoModelSvc").IgnoreTagDifference = True
51 
52 setupLoggingLevels(flags,acc)
53 
54 sys.exit(acc.run().isFailure())
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:252
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