9 """Return component accumulator with configured Tile integrator conditions algorithm
12 flags -- Athena configuration flags
14 Source -- source of Tile integrator conditions (COOL, FILE). Defaults to COOL.
15 TileIntegrator -- name of Tile integrator conditions object. Defaults to TileIntegrator.
20 source = kwargs.get(
'Source',
'COOL')
21 integrator = kwargs.get(
'TileIntegrator',
'TileIntegrator')
23 name = integrator +
'CondAlg'
28 from TileConditions.TileFolders
import TileFolders
29 folders = TileFolders(isMC = flags.Input.isMC, isOnline = flags.Common.isOnline)
31 if flags.IOVDb.DatabaseInstance ==
'CONDBR2':
32 integratorFolder = folders.addSplitOnline(
'/TILE/ONL01/INTEGRATOR',
'/TILE/OFL02/INTEGRATOR')
34 integratorFolder = folders.addSplitOnline(
'/TILE/OFL01/INTEGRATOR',
'/TILE/OFL02/INTEGRATOR')
36 TileCondProxyCoolFlt=CompFactory.getComp(
"TileCondProxyCool<TileCalibDrawerFlt>")
37 integratorProxy =
TileCondProxyCoolFlt(
'TileCondProxyCool_Integrator', Source = integratorFolder)
39 from IOVDbSvc.IOVDbSvcConfig
import addFolderList
42 elif source ==
'FILE':
44 TileCondProxyFileFlt=CompFactory.getComp(
"TileCondProxyFile<TileCalibDrawerFlt>")
45 integratorProxy =
TileCondProxyFileFlt(
'TileCondProxyFile_Integrator', Source =
'TileDefault.int')
47 raise(Exception(
"Invalid source: %s" % source))
49 TileCalibFltCondAlg=CompFactory.getComp(
"TileCalibCondAlg<TileCalibDrawerFlt>")
51 ConditionsProxy = integratorProxy,
52 TileCalibData = integrator)
54 acc.addCondAlgo(integratorCondAlg)