ATLAS Offline Software
Functions | Variables
python.LArBadFebsConfig Namespace Reference

Functions

def LArKnownBadFebCfg (configFlags, tag=None, dbname=None)
 
def LArKnownMNBFebCfg (configFlags, tag=None, dbname=None)
 

Variables

 LArBadFebCondAlg = CompFactory.LArBadFebCondAlg
 
 flags = initConfigFlags()
 
 isMC
 
 Files
 
 cfg = ComponentAccumulator()
 
 f = open("LArBadFebCondAlgos.pkl","wb")
 

Function Documentation

◆ LArKnownBadFebCfg()

def python.LArBadFebsConfig.LArKnownBadFebCfg (   configFlags,
  tag = None,
  dbname = None 
)

Definition at line 11 of file LArBadFebsConfig.py.

11 def LArKnownBadFebCfg(configFlags, tag=None, dbname=None):
12  result=ComponentAccumulator()
13 
14  if configFlags.GeoModel.Run is LHCPeriod.Run1:
15  rekey=""
16  else:
17  rekey="/LAR/BadChannels/KnownBADFEBs"
18  if dbname is None:
19  result.merge(addFoldersSplitOnline(configFlags,"LAR","/LAR/BadChannels/KnownBADFEBs",
20  f"/LAR/BadChannelsOfl/KnownBADFEBs<key>{rekey}</key>",tag=tag,
21  className="AthenaAttributeList"))
22  else:
23  result.merge(addFolders(configFlags,"/LAR/BadChannelsOfl/KnownBADFEBs","LAR_OFL",
24  modifiers=f"<key>{rekey}</key>",tag=tag,
25  className="AthenaAttributeList"))
26 
27  result.addCondAlgo(LArBadFebCondAlg("LArKnownBadFebAlg",ReadKey=rekey,WriteKey="LArKnownBadFEBs"))
28  return result
29 

◆ LArKnownMNBFebCfg()

def python.LArBadFebsConfig.LArKnownMNBFebCfg (   configFlags,
  tag = None,
  dbname = None 
)

Definition at line 30 of file LArBadFebsConfig.py.

30 def LArKnownMNBFebCfg(configFlags, tag=None, dbname=None):
31  result=ComponentAccumulator()
32 
33  if configFlags.GeoModel.Run is LHCPeriod.Run1:
34  rekey=""
35  else:
36  rekey="/LAR/BadChannels/KnownMNBFEBs"
37  if dbname is None:
38  result.merge(addFoldersSplitOnline(configFlags,"LAR","/LAR/BadChannels/KnownMNBFEBs",
39  f"/LAR/BadChannelsOfl/KnownMNBFEBs<key>{rekey}</key>",tag=tag,
40  className="AthenaAttributeList"))
41  else:
42  result.merge(addFolders(configFlags,"/LAR/BadChannelsOfl/KnownMNBFEBs","LAR_OFL",
43  modifiers=f"<key>{rekey}</key>",tag=tag,
44  className="AthenaAttributeList"))
45  pass
46 
47  result.addCondAlgo(LArBadFebCondAlg("LArKnownMNBFebAlg",ReadKey=rekey,WriteKey="LArKnownMNBFEBs"))
48  return result
49 
50 
51 

Variable Documentation

◆ cfg

python.LArBadFebsConfig.cfg = ComponentAccumulator()

Definition at line 64 of file LArBadFebsConfig.py.

◆ f

python.LArBadFebsConfig.f = open("LArBadFebCondAlgos.pkl","wb")

Definition at line 68 of file LArBadFebsConfig.py.

◆ Files

python.LArBadFebsConfig.Files

Definition at line 61 of file LArBadFebsConfig.py.

◆ flags

python.LArBadFebsConfig.flags = initConfigFlags()

Definition at line 59 of file LArBadFebsConfig.py.

◆ isMC

python.LArBadFebsConfig.isMC

Definition at line 60 of file LArBadFebsConfig.py.

◆ LArBadFebCondAlg

python.LArBadFebsConfig.LArBadFebCondAlg = CompFactory.LArBadFebCondAlg

Definition at line 8 of file LArBadFebsConfig.py.

python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.LArBadFebsConfig.LArKnownBadFebCfg
def LArKnownBadFebCfg(configFlags, tag=None, dbname=None)
Definition: LArBadFebsConfig.py:11
python.IOVDbSvcConfig.addFolders
def addFolders(flags, folderStrings, detDb=None, className=None, extensible=False, tag=None, db=None, modifiers='')
Definition: IOVDbSvcConfig.py:86
python.IOVDbSvcConfig.addFoldersSplitOnline
def addFoldersSplitOnline(flags, detDb, onlineFolders, offlineFolders, className=None, extensible=False, addMCString='_OFL', splitMC=False, tag=None, forceDb=None, modifiers='')
Definition: IOVDbSvcConfig.py:167
python.LArBadFebsConfig.LArKnownMNBFebCfg
def LArKnownMNBFebCfg(configFlags, tag=None, dbname=None)
Definition: LArBadFebsConfig.py:30
LArBadFebCondAlg
Definition: LArBadFebCondAlg.h:16