3 from AthenaConfiguration.ComponentFactory
import CompFactory
4 from LumiBlockComps.BunchCrossingCondAlgConfig
import BunchCrossingCondAlgCfg
5 from AthenaConfiguration.Enums
import BunchStructureSource
6 from IOVDbSvc.IOVDbSvcConfig
import IOVDbSvcCfg
7 from LumiBlockComps.dummyLHCFillDB
import createSqlite,fillFolder
15 for i
in range(0,3564):
19 for i
in range (0,25):
22 for i
in range (3550,3564):
26 for i
in range (1000,1030):
35 for i
in range(0,3564):
38 t8b4e=[0x3,0x3,0x3,0x3, 0x3,0x3,0x3,0x3, 0x0,0x0,0x0,0x0]
42 mask[100+i*12:100+(i+1)*12]=t8b4e
56 copycmd=
'AtlCoolCopy "COOLONL_TDAQ/CONDBR2" "sqlite://;schema=test.db;dbname=CONDBR2" -c -f /TDAQ/OLC/LHC/FILLPARAMS -ts 1500867637 -tu 1500867638 -a -nts 0 -ntu 2'
58 from subprocess
import getstatusoutput
59 stat,out=getstatusoutput(copycmd)
78 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
79 from AthenaConfiguration.MainServicesConfig
import MainServicesCfg
82 flags.Input.isMC=
False
83 flags.Beam.BunchStructureSource=BunchStructureSource.FILLPARAMS
84 flags.IOVDb.DatabaseInstance=
"CONDBR2"
85 flags.IOVDb.GlobalTag=
"CONDBR2-BLKPA-2017-05"
86 from AthenaConfiguration.TestDefaults
import defaultGeometryTags
87 flags.GeoModel.AtlasVersion=defaultGeometryTags.RUN2
92 from McEventSelector.McEventSelectorConfig
import McEventSelectorCfg
96 FirstEvent=1183722158,
101 TimeStampInterval=1))
105 print(flags.Beam.BunchStructureSource)
107 result.getService(
"IOVDbSvc").Folders=[
"<db>sqlite://;schema=test.db;dbname=CONDBR2</db><tag>HEAD</tag>/TDAQ/OLC/LHC/FILLPARAMS"]
108 result.getCondAlgo(
"BunchCrossingCondAlgDefault").OutputLevel=1
110 BunchCrossingCondTest=CompFactory.BunchCrossingCondTest