ATLAS Offline Software
Functions
L1CaloFEXCondConfig Namespace Reference

Functions

def jFexDBConfig (flags, name="jFEXCondAlgo")
 
def gFexDBConfig (flags, name="gFEXCondAlgo")
 

Function Documentation

◆ gFexDBConfig()

def L1CaloFEXCondConfig.gFexDBConfig (   flags,
  name = "gFEXCondAlgo" 
)

Definition at line 34 of file L1CaloFEXCondConfig.py.

34 def gFexDBConfig(flags, name="gFEXCondAlgo"):
35 
36 
38  DBCond = CompFactory.LVL1.gFEXCondAlgo(name)
39  NoiseCut_folder = "/TRIGGER/L1Calo/V1/Calibration/GfexModuleSettings"
40  database = "TRIGGER_ONL"
41 
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
46 
47  DBCond.IsMC = flags.Input.isMC
48 
49  acc.addCondAlgo(DBCond)
50 
51  return acc

◆ jFexDBConfig()

def L1CaloFEXCondConfig.jFexDBConfig (   flags,
  name = "jFEXCondAlgo" 
)

Definition at line 8 of file L1CaloFEXCondConfig.py.

8 def jFexDBConfig(flags, name="jFEXCondAlgo"):
9 
10 
12  DBCond = CompFactory.LVL1.jFEXCondAlgo(name)
13 
14  ModSettings_folder = "/TRIGGER/L1Calo/V1/Calibration/JfexModuleSettings"
15  NoiseCut_folder = "/TRIGGER/L1Calo/V1/Calibration/JfexNoiseCuts"
16  SysSettingst_folder = "/TRIGGER/L1Calo/V1/Calibration/JfexSystemSettings"
17 
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"))
23 
24  DBCond.JfexModuleSettings = ModSettings_folder
25  DBCond.JfexNoiseCuts = NoiseCut_folder
26  DBCond.JfexSystemSettings = SysSettingst_folder
27 
28  DBCond.IsMC = flags.Input.isMC
29 
30  acc.addCondAlgo(DBCond)
31 
32  return acc
33 
L1CaloFEXCondConfig.jFexDBConfig
def jFexDBConfig(flags, name="jFEXCondAlgo")
Definition: L1CaloFEXCondConfig.py:8
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.IOVDbSvcConfig.addFolders
def addFolders(flags, folderStrings, detDb=None, className=None, extensible=False, tag=None, db=None, modifiers='')
Definition: IOVDbSvcConfig.py:72
L1CaloFEXCondConfig.gFexDBConfig
def gFexDBConfig(flags, name="gFEXCondAlgo")
Definition: L1CaloFEXCondConfig.py:34