ATLAS Offline Software
LArCalib_BadChannelConfig.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
2 
3 #The Bad Channel handling of calibration jobs is sufficently non-standard to
4 #justify a separate config-file
5 
6 from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
7 from AthenaConfiguration.ComponentFactory import CompFactory
8 LArBadChannelCondAlg, LArBadFebCondAlg =CompFactory.getComps("LArBadChannelCondAlg","LArBadFebCondAlg")
9 from IOVDbSvc.IOVDbSvcConfig import addFolders
10 
11 
13  result=ComponentAccumulator()
14 
15  if not flags.LArCalib.isSC:
16  foldername="/LAR/BadChannelsOfl/BadChannels"
17  foldertag="".join(foldername.split("/"))+flags.LArCalib.BadChannelTag
18 
19  result.merge(addFolders(flags,foldername+"<tag>"+foldertag+"</tag>",flags.LArCalib.BadChannelDB,
20  className="CondAttrListCollection"))
21  theLArBadChannelCondAlgo=LArBadChannelCondAlg(ReadKey=foldername)
22  else:
23  foldername="/LAR/BadChannelsOfl/BadChannelsSC"
24  foldertag="".join(foldername.split("/"))+flags.LArCalib.BadChannelTagSC
25  result.merge(addFolders(flags,foldername+"<tag>"+foldertag+"</tag>",flags.LArCalib.BadChannelDB,
26  className="CondAttrListCollection"))
27  theLArBadChannelCondAlgo=LArBadChannelCondAlg(ReadKey=foldername, isSC=flags.LArCalib.isSC,
28  CablingKey="LArOnOffIdMapSC",WriteKey="LArBadChannelSC")
29 
30  result.addCondAlgo(theLArBadChannelCondAlgo)
31  return result
32 
33 
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
LArBadChannelCondAlg
Definition: LArBadChannelCondAlg.h:17
python.IOVDbSvcConfig.addFolders
def addFolders(flags, folderStrings, detDb=None, className=None, extensible=False, tag=None, db=None, modifiers='')
Definition: IOVDbSvcConfig.py:72
python.LArCalib_BadChannelConfig.LArCalibBadChannelCfg
def LArCalibBadChannelCfg(flags)
Definition: LArCalib_BadChannelConfig.py:12
TCS::join
std::string join(const std::vector< std::string > &v, const char c=',')
Definition: Trigger/TrigT1/L1Topo/L1TopoCommon/Root/StringUtils.cxx:10