1"""ComponentAccumulator configuration utilities for Calorimeter Conditions
3Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
5from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
6from IOVDbSvc.IOVDbSvcConfig
import addFoldersSplitOnline, addFolders
9 """Return ComponentAccumulator configured for Trigger Tower"""
10 # replaces CaloConditions_jobOptions.py
11 acc = ComponentAccumulator()
12 if flags.GeoModel.Layout != "ctbh8":
13 acc.merge(LArTTCellMapCfg(flags))
14 acc.merge(CaloTTIdMapCfg(flags))
17def LArTTCellMapCfg(flags):
18 """Return ComponentAccumulator configured for LAr Trigger Towe
r"""
19 # replaces LArTTCellMap_ATLAS_jobOptions.py
20 folder = "/LAR/Identifier/LArTTCellMapAtlas" + flags.LAr.DBConnection
21 if flags.IOVDb.DatabaseInstance == 'OFLP200':
22 acc = addFoldersSplitOnline(flags, "LAR", folder, folder)
24 acc = addFolders(flags, folder, "LAR")
25 # override not migrated
26 #DetDescr = flags.Global.DetDescrVersion
27 #if DetDescr.startswith("ATLAS-CSC-01") or DetDescr.startswith("ATLAS-DC"):
28 # conddb.addOverride("/LAR/Identifier/LArTTCellMapAtlas","LARIdentifierLArTTCellMapAtlas-DC3-02")
31def CaloTTIdMapCfg(flags):
32 """Return ComponentAccumulator configured for Calo Trigger Towe
r"""
33 # replaces CaloTTIdMap_ATLAS_jobOptions.py
34 acc = ComponentAccumulator()
35 folders = ["CaloTTOnOffIdMapAtlas", "CaloTTOnAttrIdMapAtlas", "CaloTTPpmRxIdMapAtlas"]
37 endf = "/Identifier/" + f
38 if flags.IOVDb.DatabaseInstance == 'OFLP200':
39 acc.merge(addFoldersSplitOnline(flags, "CALO", "/CALO" + endf, "/CALO/Ofl" + endf))
41 acc.merge(addFolders(flags, "/CALO" + endf, "CALO"))
CaloTriggerTowerCfg(flags)