11 from LArBadChannelTool.LArBadChannelConfig
import LArBadChannelCfg, LArBadFebCfg
13 from LArGeoAlgsNV.LArGMConfig
import LArGMCfg
16 from IOVDbSvc.IOVDbSvcConfig
import addFolders
17 LArHVCondAlg=CompFactory.LArHVCondAlg
19 if configFlags.Input.isMC:
20 result.merge(
addFolders(configFlags,[
"/LAR/Identifier/HVLineToElectrodeMap<tag>LARHVLineToElectrodeMap-001</tag>"],
"LAR_OFL", className=
"AthenaAttributeList"))
22 LArHVIdMappingAlg=CompFactory.LArHVIdMappingAlg
23 hvmapalg =
LArHVIdMappingAlg(ReadKey=
"/LAR/Identifier/HVLineToElectrodeMap",WriteKey=
"LArHVIdMap")
24 result.addCondAlgo(hvmapalg)
28 result.addCondAlgo(
LArHVCondAlg(doHV=
False, doAffectedHV=
False))
30 elif not configFlags.Common.isOnline:
31 result.merge(
addFolders(configFlags,[
"/LAR/DCS/HV/BARREl/I16"],
"DCS_OFL", className=
"CondAttrListCollection"))
32 result.merge(
addFolders(configFlags,[
"/LAR/DCS/HV/BARREL/I8"],
"DCS_OFL", className=
"CondAttrListCollection"))
34 result.merge(
addFolders(configFlags,[
"/LAR/IdentifierOfl/HVLineToElectrodeMap"],
"LAR_OFL", className=
"AthenaAttributeList"))
35 result.merge(
addFolders(configFlags,[
"/LAR/HVPathologiesOfl/Pathologies"],
"LAR_OFL", className=
"AthenaAttributeList"))
36 if configFlags.GeoModel.Run
is not LHCPeriod.Run1:
37 result.merge(
addFolders(configFlags,[
"/LAR/HVPathologiesOfl/Rvalues"],
"LAR_OFL", className=
"AthenaAttributeList"))
42 LArHVIdMappingAlg=CompFactory.LArHVIdMappingAlg
43 hvmapalg =
LArHVIdMappingAlg(ReadKey=
"/LAR/IdentifierOfl/HVLineToElectrodeMap",WriteKey=
"LArHVIdMap")
44 result.addCondAlgo(hvmapalg)
46 LArHVPathologyDbCondAlg=CompFactory.LArHVPathologyDbCondAlg
48 HVMappingKey=
"LArHVIdMap",
49 HVPAthologyKey=
"LArHVPathology")
50 result.addCondAlgo(hvpath)
52 from LArConfiguration.LArElecCalibDBConfig
import LArElecCalibDBCfg
55 if configFlags.GeoModel.Run
is not LHCPeriod.Run1:
58 hvcond =
LArHVCondAlg(HVPathologies=
"LArHVPathology",doR=
False)
60 hvcond.UndoOnlineHVCorr=
True
61 hvcond.keyOutputCorr=
"LArHVScaleCorrRecomputed"
62 result.addCondAlgo(hvcond)