ATLAS Offline Software
Loading...
Searching...
No Matches
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
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="".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