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