8 from AthenaConfiguration.ComponentFactory
import CompFactory
9 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
10 from IOVDbSvc.IOVDbSvcConfig
import addFolders
14 name =
'OnlineLumiCalibrationCondAlg'
21 folder =
'/TDAQ/OLC/CALIBRATIONS'
22 result.merge (addFolders (flags, folder,
'TDAQ',
23 className=
'CondAttrListCollection'))
25 OnlineLumiCalibrationCondAlg=CompFactory.OnlineLumiCalibrationCondAlg
26 alg = OnlineLumiCalibrationCondAlg (name,
27 CalibrationFolderInputKey = folder,
28 LumiCalibOutputKey =
'OnlineLumiCalibrationCondData')
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
42 acc1 = OnlineLumiCalibrationCondAlgCfg (flags1)
43 acc1.printCondAlgs(summariseProps=
True)
44 print (
'IOVDbSvc:', acc1.getService(
'IOVDbSvc').Folders)
49 flags2.Input.Files = defaultTestFiles.ESD
51 acc2 = OnlineLumiCalibrationCondAlgCfg (flags2)
52 acc2.printCondAlgs(summariseProps=
True)
53 print (
'IOVDbSvc:', acc2.getServices())