3 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
4 from AthenaConfiguration.ComponentFactory
import CompFactory
5 from AthenaConfiguration.Enums
import LHCPeriod
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)
66 if __name__==
"__main__":
67 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
72 flags.Concurrency.NumThreads = nThreads
74 flags.Scheduler.ShowDataDeps =
True
75 flags.Scheduler.ShowDataFlow =
True
76 flags.Scheduler.ShowControlFlow =
True
77 flags.Concurrency.NumConcurrentEvents = nThreads
79 flags.Input.Files = [
"myESD-data.pool.root"]
82 from AthenaConfiguration.MainServicesConfig
import MainServicesCfg
83 from AthenaPoolCnvSvc.PoolReadConfig
import PoolReadCfg