Example #1
0
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')
Example #2
0
# extra LAr setup
if doLAr:
    include("LArConditionsCommon/LArIdMap_comm_jobOptions.py")
    include("LArIdCnv/LArIdCnv_joboptions.py")
    svcMgr.ByteStreamAddressProviderSvc.TypeNames += [
        "LArFebHeaderContainer/LArFebHeader"
    ]
    include("LArROD/LArFebErrorSummaryMaker_jobOptions.py")

# extra Tile setup
if doTile:
    # fix some strange bug ...
    from TileConditions.TileInfoConfigurator import TileInfoConfigurator
    tileInfoConfigurator = TileInfoConfigurator()
    tileInfoConfigurator.NSamples = 7

# reconstruct cells
from CaloRec.CaloCellGetter import CaloCellGetter
CaloCellGetter()
del rec

# setup l1calo database
from IOVDbSvc.CondDB import conddb
L1CaloDbConnection = "<dbConnection>sqlite://;schema=calib.sqlite;dbname=L1CALO</dbConnection>"
L1CaloDbTag = "<tag>HEAD</tag>"
L1CaloFolderList = []
L1CaloFolderList += ["/TRIGGER/L1Calo/Configuration/PprChanDefaults"]
L1CaloFolderList += ["/TRIGGER/L1Calo/Calibration/PprChanCalib"]
L1CaloFolderList += ["/TRIGGER/L1Calo/Calibration/PpmDeadChannels"]
for l1calofolder in L1CaloFolderList: