8 from AthenaConfiguration.AccumulatorCache
import AccumulatorCache
9 from AthenaConfiguration.ComponentFactory
import CompFactory
10 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
11 from IOVDbSvc.IOVDbSvcConfig
import addFolders
16 name =
'LBDurationCondAlg'
19 folder =
"/TRIGGER/LUMI/LBLB"
20 result.merge (addFolders (flags, folder,
'TRIGGER',
21 className =
'AthenaAttributeList'))
23 LBDurationCondAlg=CompFactory.LBDurationCondAlg
24 alg = LBDurationCondAlg (name,
25 LBLBFolderInputKey = folder,
26 LBDurationOutputKey =
'LBDurationCondData')
28 result.addCondAlgo (alg)
32 if __name__ ==
"__main__":
33 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
34 from AthenaConfiguration.TestDefaults
import defaultTestFiles
38 flags1.Input.Files = defaultTestFiles.RAW_RUN2
40 acc1 = LBDurationCondAlgCfg (flags1)
41 acc1.printCondAlgs(summariseProps=
True)
42 print (
'IOVDbSvc:', acc1.getService(
'IOVDbSvc').Folders)