Ejemplo n.º 1
0
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')
    if not 'Tile2003Noise' in dir():
        Tile2003Noise = True
Ejemplo n.º 2
0
    ALLOWBACKNAV=False
    from __main__ import ALLOWIGNOREEXISTINGDATAOBJECT
    from __main__ import ALLOWIGNORECONFIGERROR
    from __main__ import ALLOWDISABLE
    from __main__ import ALLOWBACKNAV

#-------------------
# Adjust conditions
#-------------------

TileFrameLength = 9; # correct frame length for all testbeams
from TileConditions.TileInfoConfigurator import TileInfoConfigurator
tileInfoConfigurator = TileInfoConfigurator()
tileInfoConfigurator.NSamples = TileFrameLength
tileInfoConfigurator.TrigSample = (TileFrameLength-1)/2
tileInfoConfigurator.NoiseScaleIndex = 3; # Noise for Fit method
from AthenaCommon.AppMgr import ToolSvc
from TileConditions.TileCondProxyConf import getTileCondProxy
ToolSvc.TileCondToolNoiseSample.ProxyNoiseSample = getTileCondProxy('FILE','Flt','Tile2003.ped','TileCondProxyFile_NoiseSample')
ToolSvc.TileBadChanTool.ProxyOflBch = getTileCondProxy('FILE','Bch','TileNoBad.oflBch','TileCondProxyFile_OflBch')

#----------------
# Add Algorithms
#----------------

## get a handle on the top sequence of algorithms
from AthenaCommon.AlgSequence import AlgSequence
topSequence = AlgSequence()


if doTileHitToDigit or doTileHitToRawChannelDirect: