from AthenaCommon.Logging import logging msg = logging.getLogger('TileTBConditions_jobOptions.py') from TileConditions.TileInfoConfigurator import TileInfoConfigurator tileInfoConfigurator = TileInfoConfigurator() if not 'TileFrameLength' in dir(): TileFrameLength = 9 # correct frame length for all testbeams TileUseCOOL = False # do not use COOL DB msg.info("Adjusting TileInfo for %s samples" % TileFrameLength) tileInfoConfigurator.NSamples = TileFrameLength tileInfoConfigurator.TrigSample = (TileFrameLength - 1) / 2 msg.info("Adjusting TileInfo to return cell noise for Fit Method") tileInfoConfigurator.NoiseScaleIndex = 3 # Noise for Fit method #=== set special CIS and cesium calibraton for 2004 data if not 'Tile2004' in dir() or Tile2004: # 2004 configuration by default from TileConditions.TileCondProxyConf import getTileCondProxy ToolSvc.TileCondToolEmscale.ProxyOflCisLin = getTileCondProxy( 'FILE', 'Flt', 'Tile2004.cis', 'TileCondProxyFile_OflCisLin') ToolSvc.TileCondToolEmscale.ProxyOflCisNln = getTileCondProxy( 'FILE', 'Flt', 'Tile2004.lut', 'TileCondProxyFile_OflCisNln') ToolSvc.TileCondToolEmscale.ProxyOflCes = getTileCondProxy( 'FILE', 'Flt', 'Tile2004.ces', 'TileCondProxyFile_OflCes')
from RecExConfig.AutoConfiguration import GetRunNumber rn = GetRunNumber() if not 'RunOflOFC' in dir(): RunOflOFC = 314450 if rn < RunOflOFC: # use OFC stored in online folder for all runs before 2017 from TileConditions.TileCoolMgr import tileCoolMgr tileCoolMgr.addSource('OfcOf2Phy', '/TILE/ONL01/FILTER/OF2/PHY', 'TILE', "", '/TILE/ONL01/FILTER/OF2/PHY', 'SplitMC') tileCoolMgr.addSource('OfcOf1Phy', '/TILE/ONL01/FILTER/OF1/PHY', 'TILE', "", '/TILE/ONL01/FILTER/OF1/PHY', 'SplitMC') msg.info("Adjusting TileInfo for %s samples" % TileFrameLength) tileInfoConfigurator.NSamples = TileFrameLength tileInfoConfigurator.TrigSample = (TileFrameLength - 1) // 2 # Floor division if TileUseCOOL or athenaCommonFlags.isOnline(): #=== setup reading from COOL DB msg.info("setting up COOL for TileCal conditions data") TileGapTiming = "" if (('TileCisRun' in dir()) and (TileCisRun) or ('TileMonoRun' in dir()) and (TileMonoRun) or ('TileRampRun' in dir()) and (TileRampRun)): TilePulse = "CIS" elif ('TileLasRun' in dir()) and (TileLasRun): TilePulse = "LAS" if ('TilePhysTiming' in dir()) and (TilePhysTiming): TileGapTiming = "GAP" else: TilePulse = "PHY"