8 from AthenaConfiguration.ComponentFactory
import CompFactory
9 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
10 from IOVDbSvc.IOVDbSvcConfig
import addFolders
13 name =
'FillParamsCondAlg'
17 if flags.IOVDb.DatabaseInstance !=
'COMP200':
20 folder =
'/TDAQ/OLC/LHC/FILLPARAMS'
22 result.merge (addFolders (flags, folder,
'TDAQ', tag=
'HEAD',
23 className=
'AthenaAttributeList'))
25 FillParamsCondAlg=CompFactory.FillParamsCondAlg
26 alg = FillParamsCondAlg (name,
27 FillParamsFolderInputKey = folder,
28 FillParamsOutputKey =
'FillParamsCondData')
30 result.addCondAlgo (alg)
34 if __name__ ==
"__main__":
35 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
36 from AthenaConfiguration.TestDefaults
import defaultTestFiles
40 flags1.Input.Files = defaultTestFiles.RAW_RUN2
41 flags1.Input.ProjectName =
'data12_8TeV'
43 acc1 = FillParamsCondAlgCfg (flags1)
44 acc1.printCondAlgs(summariseProps=
True)
45 print (
'IOVDbSvc:', acc1.getService(
'IOVDbSvc').Folders)
50 flags2.Input.Files = defaultTestFiles.RAW_RUN2
52 acc2 = FillParamsCondAlgCfg (flags2)
53 acc2.printCondAlgs(summariseProps=
True)
54 print (
'IOVDbSvc:', acc2.getServices())