3from AthenaConfiguration.ComponentFactory
import CompFactory
4from LumiBlockComps.BunchCrossingIntensityCondAlgConfig
import BunchCrossingIntensityCondAlgCfg
5from IOVDbSvc.IOVDbSvcConfig
import IOVDbSvcCfg
6from LumiBlockComps.dummyLHCFillDB
import createSqliteForInt,fillFolderForInt,createBCMask1,createBCMask2
14 os.remove(
"testInt.db")
19db,folder=createSqliteForInt(
"testInt.db",folderName=
"/TDAQ/OLC/LHC/BUNCHDATA")
26fillFolderForInt(folder,d1,iovMin=1*onesec,iovMax=2*onesec)
27fillFolderForInt(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
43result.merge(McEventSelectorCfg(flags,
46 FirstEvent=1183722158,
52result.merge(BunchCrossingIntensityCondAlgCfg(flags))
53result.merge(IOVDbSvcCfg(flags))
56result.getService(
"IOVDbSvc").Folders=[
"<db>sqlite://;schema=testInt.db;dbname=CONDBR2</db><tag>HEAD</tag>/TDAQ/OLC/LHC/BUNCHDATA"]
57result.getCondAlgo(
"BunchCrossingIntensityCondAlgDefault").OutputLevel=1
59BunchCrossingIntensityCondTest=CompFactory.BunchCrossingIntensityCondTest