3 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
4 from AthenaConfiguration.ComponentFactory
import CompFactory
5 from LArCabling.LArCablingConfig
import LArOnOffIdMappingCfg, LArOnOffIdMappingSCCfg
6 from IOVDbSvc.IOVDbSvcConfig
import addFolders, addFoldersSplitOnline
15 rekey=
"/LAR/BadChannels/BadChannels"
16 algname=
"LArBadChannelCondAlg"
19 rekey=
"/LAR/BadChannels/BadChannelsSC"
20 algname=
"LArBadChannelCondSCAlg"
22 if configFlags.Overlay.DataOverlay:
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"))
31 f
"/LAR/BadChannelsOfl/BadChannels<key>{rekey}</key>",tag=tag,
32 className=
"CondAttrListCollection"))
34 result.merge(
addFolders(configFlags,
"/LAR/BadChannels/BadChannelsSC",
36 className=
"CondAttrListCollection"))
37 theLArBadChannelCondAlgo=CompFactory.LArBadChannelCondAlg(name=algname,ReadKey=rekey,isSC=isSC)
39 theLArBadChannelCondAlgo.WriteKey=
"LArBadChannelSC"
40 theLArBadChannelCondAlgo.CablingKey=
"LArOnOffIdMapSC"
41 result.addCondAlgo(theLArBadChannelCondAlgo)
47 rekey=
"/LAR/BadChannels/MissingFEBs"
49 if configFlags.Input.isMC:
50 result.merge(
addFolders(configFlags,
"/LAR/BadChannels/MissingFEBs",
"LAR_OFL",tag=tag,
51 className=
"AthenaAttributeList"))
54 f
"/LAR/BadChannelsOfl/MissingFEBs<key>{rekey}</key>",tag=tag,
55 className=
"AthenaAttributeList"))
56 result.addCondAlgo(CompFactory.LArBadFebCondAlg(ReadKey=rekey))
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 ))
67 condAlgo = CompFactory.LArBadChannelCondAlg(name=
"MaskedSCCondAlg",ReadKey=
"/LAR/BadChannels/MaskedSC",isSC=
True,
68 CablingKey=
"LArOnOffIdMapSC",WriteKey=
"LArMaskedSC")
69 result.addCondAlgo(condAlgo)
73 if __name__==
"__main__":
75 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
76 from AthenaCommon.Logging
import log
81 flags.Input.isMC =
False
82 flags.Input.Files = [
"/cvmfs/atlas-nightlies.cern.ch/repo/data/data-art/Tier0ChainTests/data17_13TeV.00330470.physics_Main.daq.RAW._lb0310._SFO-1._0001.data"]
89 f=
open(
"LArBCCondAlgos.pkl",
"wb")