4from AthenaConfiguration.AllConfigFlags
import initConfigFlags
5from AthenaConfiguration.ComponentFactory
import CompFactory
6from AthenaConfiguration.TestDefaults
import defaultGeometryTags
7from AthenaConfiguration.Utils
import setupLoggingLevels
8from Campaigns.Utils
import Campaign
12flags=initConfigFlags()
14flags.Input.RunNumbers=[1]
15flags.Input.TimeStamps=[0]
16flags.IOVDb.GlobalTag =
'OFLCOND-SDR-BS14T-IBL-06'
17flags.GeoModel.AtlasVersion=defaultGeometryTags.RUN2
18flags.LAr.doAlign=
False
19flags.Input.MCCampaign=Campaign.Unknown
21flags.Input.TypedCollections=[]
23flags.Exec.DebugMessageComponents=[
"TagInfoMgr",
29StreamName=
"EventInfoPoolFile1"
31from AthenaConfiguration.MainServicesConfig
import MainEvgenServicesCfg
32acc=MainEvgenServicesCfg(flags)
34from xAODEventInfoCnv.xAODEventInfoCnvConfig
import EventInfoCnvAlgCfg
35acc.merge(EventInfoCnvAlgCfg(flags, disableBeamSpot=
True), sequenceName=
"AthAlgSeq")
38from LArGeoAlgsNV.LArGMConfig
import LArGMCfg
39acc.merge(LArGMCfg(flags))
42from LArCabling.LArCablingConfig
import LArOnOffIdMappingCfg, LArCalibIdMappingCfg,LArFebRodMappingCfg
43acc.merge(LArOnOffIdMappingCfg(flags))
44acc.merge(LArCalibIdMappingCfg(flags))
45acc.merge(LArFebRodMappingCfg(flags))
47from TileConditions.TileEMScaleConfig
import TileEMScaleCondAlgCfg
48acc.merge(TileEMScaleCondAlgCfg(flags))
50EventSelector=acc.getService(
"EventSelector")
51EventSelector.RunNumber = 1
52EventSelector.EventsPerRun = 0x100000010
53EventSelector.FirstEvent = 0x100000000
54EventSelector.EventsPerLB = 1
55EventSelector.FirstLB = 1
56EventSelector.InitialTimeStamp = 0
57EventSelector.TimeStampInterval = 5
60from EventInfoMgt.TagInfoMgrConfig
import TagInfoMgrCfg
61acc.merge(TagInfoMgrCfg(flags))
63acc.addEventAlgo(CompFactory.EventInfoWriter(),sequenceName =
'AthAlgSeq')
65from OutputStreamAthenaPool.OutputStreamConfig
import OutputStreamCfg
71 MetadataItemList=[
"IOVMetaDataContainer#*"],
76acc.getService(
"PoolSvc").WriteCatalog =
'file:EventInfoTests_catalog.xml'
78setupLoggingLevels(flags,acc)
80sys.exit(acc.run(25).isFailure())