10 """Return component accumulator with configured Tile TMDB conditions algorithms
13 flags -- Athena configuration flags
15 Source -- source of Tile TMDB conditions (COOL, FILE). Defaults to COOL.
16 TileTMDBThreshold -- name of Tile TMDB threshold conditions object. Defaults to TileTMDBThreshold.
17 TileTMDBDelay -- name of Tile TMDB dealy conditions object. Defaults to TileTMDBDelay.
18 TileTMDBTMF -- name of Tile TMDB TMF conditions object. Defaults to TileTMDBTMF.
19 TileTMDBCalib -- name of Tile TMDB calibration conditions object. Defaults to TileTMDBCalib.
24 source = kwargs.get(
'Source',
'COOL')
25 threshod = kwargs.get(
'TileTMDBThreshold',
'TileTMDBThreshold')
26 delay = kwargs.get(
'TileTMDBDelay',
'TileTMDBDelay')
27 tmf = kwargs.get(
'TileTMDBTMF',
'TileTMDBTMF')
28 calib = kwargs.get(
'TileTMDBCalib',
'TileTMDBCalib')
30 TileCalibFltCondAlg=CompFactory.getComp(
"TileCalibCondAlg<TileCalibDrawerFlt>")
31 def __addCondAlg(calibData, proxy):
33 ConditionsProxy = proxy,
34 TileCalibData = calibData)
35 acc.addCondAlgo(condAlg)
40 from TileConditions.TileFolders
import TileFolders
41 folders = TileFolders(isMC = flags.Input.isMC, isOnline = flags.Common.isOnline)
43 runType = flags.Tile.RunType
44 run = runType.getCommonType().value
46 if flags.IOVDb.DatabaseInstance ==
'CONDBR2':
47 thrFolder = folders.addSplitMC(
'/TILE/ONL01/TMDB/THRESHOLD/' + run,
'/TILE/ONL01/TMDB/THRESHOLD/' + run)
48 delayFolder = folders.addSplitMC(
'/TILE/ONL01/TMDB/DELAY/' + run,
'/TILE/ONL01/TMDB/DELAY/' + run)
49 tmfFolder = folders.addSplitMC(
'/TILE/ONL01/TMDB/TMF/' + run,
'/TILE/ONL01/TMDB/TMF/' + run)
50 calibFolder = folders.addSplitMC(
'/TILE/ONL01/TMDB/CALIB/' + run,
'/TILE/ONL01/TMDB/CALIB/' + run)
52 raise(Exception(
"No Tile TMDB folders in %s" % flags.IOVDb.DatabaseInstancea))
54 TileCondProxyCoolFlt=CompFactory.getComp(
"TileCondProxyCool<TileCalibDrawerFlt>")
60 from IOVDbSvc.IOVDbSvcConfig
import addFolderList
65 raise(Exception(
"Not implemented source %s" % source))
68 __addCondAlg(threshod, thrProxy)
69 __addCondAlg(delay, delayProxy)
70 __addCondAlg(tmf, tmfProxy)
71 __addCondAlg(calib, calibProxy)