ATLAS Offline Software
Loading...
Searching...
No Matches
LArCalib_BadChannelConfig.py
Go to the documentation of this file.
1# Copyright (C) 2002-2026 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
6from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
7from AthenaConfiguration.ComponentFactory import CompFactory
8LArBadChannelCondAlg, LArBadFebCondAlg =CompFactory.getComps("LArBadChannelCondAlg","LArBadFebCondAlg")
9from IOVDbSvc.IOVDbSvcConfig import addFolders
10
11
13 result=ComponentAccumulator()
14
15 if not flags.LArCalib.isSC:
16 foldername="/LAR/BadChannelsOfl/BadChannels"
17 foldertag=("<tag>" + "".join(foldername.split("/")) + flags.LArCalib.BadChannelTag + "</tag>"
18 if flags.LArCalib.BadChannelTag not in (None, "") else "")
19 result.merge(addFolders(flags,foldername+foldertag,flags.LArCalib.BadChannelDB,
20 className="CondAttrListCollection"))
21 theLArBadChannelCondAlgo=LArBadChannelCondAlg(ReadKey=foldername)
22 else:
23 foldername="/LAR/BadChannelsOfl/BadChannelsSC"
24 foldertag=("<tag>" + "".join(foldername.split("/")) + flags.LArCalib.BadChannelTagSC + "</tag>"
25 if flags.LArCalib.BadChannelTagSC not in (None, "") else "")
26 result.merge(addFolders(flags,foldername+foldertag,flags.LArCalib.BadChannelDB,
27 className="CondAttrListCollection"))
28 theLArBadChannelCondAlgo=LArBadChannelCondAlg(ReadKey=foldername, isSC=flags.LArCalib.isSC,
29 CablingKey="LArOnOffIdMapSC",WriteKey="LArBadChannelSC")
30
31 result.addCondAlgo(theLArBadChannelCondAlgo)
32 return result
33
34