3from AthenaConfiguration.ComponentFactory
import CompFactory
4from LumiBlockComps.BunchCrossingAverageCondAlgConfig
import BunchCrossingAverageCondAlgCfg
5from IOVDbSvc.IOVDbSvcConfig
import IOVDbSvcCfg
6from LumiBlockComps.dummyLHCFillDB
import createSqliteForAvg,fillFolderForAvg,createBCMask1,createBCMask2
14 os.remove(
"testAVG.db")
19db,folder=createSqliteForAvg(
"testAVG.db",folderName=
"/TDAQ/OLC/LHC/LBDATA3")
25fillFolderForAvg(folder,d1,iovMin=1*onesec,iovMax=2*onesec)
26fillFolderForAvg(folder,d2,2*onesec,4*onesec)
30from AthenaConfiguration.AllConfigFlags
import initConfigFlags
31from AthenaConfiguration.MainServicesConfig
import MainServicesCfg
32flags = initConfigFlags()
35flags.IOVDb.DatabaseInstance=
"CONDBR2"
36flags.IOVDb.GlobalTag=
"CONDBR2-BLKPA-2017-05"
37from AthenaConfiguration.TestDefaults
import defaultGeometryTags
38flags.GeoModel.AtlasVersion=defaultGeometryTags.RUN2
40result=MainServicesCfg(flags)
42from McEventSelector.McEventSelectorConfig
import McEventSelectorCfg
44result.merge(McEventSelectorCfg(flags,
47 FirstEvent=1183722158,
53result.merge(BunchCrossingAverageCondAlgCfg(flags))
54result.merge(IOVDbSvcCfg(flags))
55result.getService(
"IOVDbSvc").Folders=[
"<db>sqlite://;schema=testAVG.db;dbname=CONDBR2</db><tag>HEAD</tag>/TDAQ/OLC/LHC/LBDATA3"]
56result.getCondAlgo(
"BunchCrossingAverageCondAlgDefault").OutputLevel=1
57BunchCrossingAverageCondTest=CompFactory.BunchCrossingAverageCondTest