4 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
5 from AthenaConfiguration.ComponentFactory
import CompFactory
12 DBCond = CompFactory.LVL1.jFEXCondAlgo(name)
14 ModSettings_folder =
"/TRIGGER/L1Calo/V1/Calibration/JfexModuleSettings"
15 NoiseCut_folder =
"/TRIGGER/L1Calo/V1/Calibration/JfexNoiseCuts"
16 SysSettingst_folder =
"/TRIGGER/L1Calo/V1/Calibration/JfexSystemSettings"
18 from IOVDbSvc.IOVDbSvcConfig
import addFolders
19 database =
"TRIGGER_OFL" if flags.Input.isMC
else "TRIGGER_ONL"
20 acc.merge(
addFolders(flags, ModSettings_folder , database, className=
"CondAttrListCollection"))
21 acc.merge(
addFolders(flags, NoiseCut_folder , database, className=
"CondAttrListCollection"))
22 acc.merge(
addFolders(flags, SysSettingst_folder, database, className=
"CondAttrListCollection"))
24 DBCond.JfexModuleSettings = ModSettings_folder
25 DBCond.JfexNoiseCuts = NoiseCut_folder
26 DBCond.JfexSystemSettings = SysSettingst_folder
28 DBCond.IsMC = flags.Input.isMC
30 acc.addCondAlgo(DBCond)
38 DBCond = CompFactory.LVL1.gFEXCondAlgo(name)
39 NoiseCut_folder =
"/TRIGGER/L1Calo/V1/Calibration/GfexModuleSettings"
40 database =
"TRIGGER_ONL"
42 if not flags.Input.isMC:
43 from IOVDbSvc.IOVDbSvcConfig
import addFolders
44 acc.merge(
addFolders(flags, NoiseCut_folder, database, className=
"CondAttrListCollection"))
45 DBCond.GfexNoiseCuts = NoiseCut_folder
47 DBCond.IsMC = flags.Input.isMC
49 acc.addCondAlgo(DBCond)