ATLAS Offline Software
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  result.merge(addFolders(configFlags,"/LAR/BadChannels/BadChannels","LAR_OFL",tag=tag,
27  className="CondAttrListCollection"))
28  else:
29  if not isSC:
30  result.merge(addFoldersSplitOnline(configFlags,"LAR","/LAR/BadChannels/BadChannels",
31  f"/LAR/BadChannelsOfl/BadChannels<key>{rekey}</key>",tag=tag,
32  className="CondAttrListCollection"))
33  else :
34  result.merge(addFolders(configFlags,"/LAR/BadChannels/BadChannelsSC",
35  "LAR_ONL",tag=tag,
36  className="CondAttrListCollection"))
37  theLArBadChannelCondAlgo=CompFactory.LArBadChannelCondAlg(name=algname,ReadKey=rekey,isSC=isSC)
38  if isSC:
39  theLArBadChannelCondAlgo.WriteKey="LArBadChannelSC"
40  theLArBadChannelCondAlgo.CablingKey="LArOnOffIdMapSC"
41  result.addCondAlgo(theLArBadChannelCondAlgo)
42  return result
43 
44 

◆ LArBadFebCfg()

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

Definition at line 45 of file LArBadChannelConfig.py.

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

◆ LArMaskedSCCfg()

def python.LArBadChannelConfig.LArMaskedSCCfg (   configFlags)

Definition at line 59 of file LArBadChannelConfig.py.

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

Variable Documentation

◆ cfg

python.LArBadChannelConfig.cfg = ComponentAccumulator()

Definition at line 85 of file LArBadChannelConfig.py.

◆ f

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

Definition at line 89 of file LArBadChannelConfig.py.

◆ Files

python.LArBadChannelConfig.Files

Definition at line 82 of file LArBadChannelConfig.py.

◆ flags

python.LArBadChannelConfig.flags = initConfigFlags()

Definition at line 80 of file LArBadChannelConfig.py.

◆ isMC

python.LArBadChannelConfig.isMC

Definition at line 81 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:45
python.IOVDbSvcConfig.addFolders
def addFolders(flags, folderStrings, detDb=None, className=None, extensible=False, tag=None, db=None, modifiers='')
Definition: IOVDbSvcConfig.py:72
LArCablingConfig.LArOnOffIdMappingCfg
def LArOnOffIdMappingCfg(configFlags)
Definition: LArCablingConfig.py:62
python.LArBadChannelConfig.LArMaskedSCCfg
def LArMaskedSCCfg(configFlags)
Definition: LArBadChannelConfig.py:59
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:153