Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Functions | Variables
python.LArBadChannelConfig Namespace Reference

Functions

def LArBadChannelCfg (configFlags, tag=None, isSC=False)
 
def LArBadFebCfg (configFlags, tag=None)
 
def LArMaskedSCCfg (configFlags)
 

Variables

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

Function Documentation

◆ LArBadChannelCfg()

def python.LArBadChannelConfig.LArBadChannelCfg (   configFlags,
  tag = None,
  isSC = False 
)

Definition at line 8 of file LArBadChannelConfig.py.

8 def LArBadChannelCfg(configFlags, tag=None, isSC=False):
9 
10 
11 
12  result=ComponentAccumulator()
13  if not isSC:
14  result.merge(LArOnOffIdMappingCfg(configFlags))
15  rekey="/LAR/BadChannels/BadChannels"
16  algname="LArBadChannelCondAlg"
17  else:
18  result.merge(LArOnOffIdMappingSCCfg(configFlags))
19  rekey="/LAR/BadChannels/BadChannelsSC"
20  algname="LArBadChannelCondSCAlg"
21 
22  if configFlags.Overlay.DataOverlay:
23  # TODO: move this in a better location
24  result.merge(addFolders(configFlags, "/LAR/BadChannels/BadChannels", "LAR_OFL", className="CondAttrListCollection", tag="LARBadChannelsBadChannels-HECAQ3Missing", db="OFLP200"))
25  elif configFlags.Input.isMC:
26  folder = "/LAR/BadChannels/BadChannelsSC" if isSC else "/LAR/BadChannels/BadChannels"
27  result.merge(addFolders(configFlags,folder,"LAR_OFL",tag=tag,
28  className="CondAttrListCollection"))
29  else:
30  if not isSC:
31  result.merge(addFoldersSplitOnline(configFlags,"LAR","/LAR/BadChannels/BadChannels",
32  f"/LAR/BadChannelsOfl/BadChannels<key>{rekey}</key>",tag=tag,
33  className="CondAttrListCollection"))
34  else :
35  result.merge(addFolders(configFlags,"/LAR/BadChannels/BadChannelsSC",
36  "LAR_ONL",tag=tag,
37  className="CondAttrListCollection"))
38  theLArBadChannelCondAlgo=CompFactory.LArBadChannelCondAlg(name=algname,ReadKey=rekey,isSC=isSC)
39  if isSC:
40  theLArBadChannelCondAlgo.WriteKey="LArBadChannelSC"
41  theLArBadChannelCondAlgo.CablingKey="LArOnOffIdMapSC"
42  result.addCondAlgo(theLArBadChannelCondAlgo)
43  return result
44 
45 

◆ LArBadFebCfg()

def python.LArBadChannelConfig.LArBadFebCfg (   configFlags,
  tag = None 
)

Definition at line 46 of file LArBadChannelConfig.py.

46 def LArBadFebCfg(configFlags, tag=None):
47  result=ComponentAccumulator()
48  rekey="/LAR/BadChannels/MissingFEBs"
49 
50  if configFlags.Input.isMC:
51  result.merge(addFolders(configFlags,"/LAR/BadChannels/MissingFEBs","LAR_OFL",tag=tag,
52  className="AthenaAttributeList"))
53  else:
54  result.merge(addFoldersSplitOnline(configFlags,"LAR","/LAR/BadChannels/MissingFEBs",
55  f"/LAR/BadChannelsOfl/MissingFEBs<key>{rekey}</key>",tag=tag,
56  className="AthenaAttributeList"))
57  result.addCondAlgo(CompFactory.LArBadFebCondAlg(ReadKey=rekey))
58  return result
59 

◆ LArMaskedSCCfg()

def python.LArBadChannelConfig.LArMaskedSCCfg (   configFlags)

Definition at line 60 of file LArBadChannelConfig.py.

60 def LArMaskedSCCfg(configFlags):
61  result=ComponentAccumulator()
62  result.merge(LArOnOffIdMappingSCCfg(configFlags))
63  from IOVDbSvc.IOVDbSvcConfig import addFolders
64  result.merge(addFolders(configFlags,"/LAR/BadChannels/MaskedSC","LAR_ONL",
65  tag="LARBadChannelsMaskedSC-RUN3-UPD1-00",
66  className="CondAttrListCollection",
67  extensible=configFlags.Common.isOnline )) # when run online, need folder to be extensible to force reload each event
68  condAlgo = CompFactory.LArBadChannelCondAlg(name="MaskedSCCondAlg",ReadKey="/LAR/BadChannels/MaskedSC",isSC=True,
69  CablingKey="LArOnOffIdMapSC",WriteKey="LArMaskedSC")
70  result.addCondAlgo(condAlgo)
71  return result
72 
73 

Variable Documentation

◆ cfg

python.LArBadChannelConfig.cfg = ComponentAccumulator()

Definition at line 86 of file LArBadChannelConfig.py.

◆ f

python.LArBadChannelConfig.f = open("LArBCCondAlgos.pkl","wb")

Definition at line 90 of file LArBadChannelConfig.py.

◆ Files

python.LArBadChannelConfig.Files

Definition at line 83 of file LArBadChannelConfig.py.

◆ flags

python.LArBadChannelConfig.flags = initConfigFlags()

Definition at line 81 of file LArBadChannelConfig.py.

◆ isMC

python.LArBadChannelConfig.isMC

Definition at line 82 of file LArBadChannelConfig.py.

LArCablingConfig.LArOnOffIdMappingSCCfg
def LArOnOffIdMappingSCCfg(configFlags)
Definition: LArCablingConfig.py:65
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.LArBadChannelConfig.LArBadChannelCfg
def LArBadChannelCfg(configFlags, tag=None, isSC=False)
Definition: LArBadChannelConfig.py:8
python.LArBadChannelConfig.LArBadFebCfg
def LArBadFebCfg(configFlags, tag=None)
Definition: LArBadChannelConfig.py:46
python.IOVDbSvcConfig.addFolders
def addFolders(flags, folderStrings, detDb=None, className=None, extensible=False, tag=None, db=None, modifiers='')
Definition: IOVDbSvcConfig.py:81
LArCablingConfig.LArOnOffIdMappingCfg
def LArOnOffIdMappingCfg(configFlags)
Definition: LArCablingConfig.py:62
python.LArBadChannelConfig.LArMaskedSCCfg
def LArMaskedSCCfg(configFlags)
Definition: LArBadChannelConfig.py:60
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:162