Skip to content
Snippets Groups Projects
Commit e059f192 authored by Siarhei Harkusha's avatar Siarhei Harkusha Committed by Melissa Yexley
Browse files

TileRecUtils: Remove legacy Tile JO configurations (ATLASRECTS-7898)

Legacy Tile JO configurations have been removed.
parent a0871e9d
No related branches found
No related tags found
No related merge requests found
......@@ -24,7 +24,6 @@ atlas_add_component( TileRecUtils
# Install files from the package:
atlas_install_python_modules( python/*.py POST_BUILD_CMD ${ATLAS_FLAKE8} )
atlas_install_joboptions( share/*.py )
atlas_add_dictionary( TileRecUtilsDict
TileRecUtils/TileRecUtilsDict.h
......
from TileRecUtils.TileRecFlags import jobproperties
if jobproperties.TileRecFlags.noiseFilter == 1:
tag = "CaloOflNoiseCellnoise-tile_filter"
else:
tag = "CaloOflNoiseCellnoise-tile_nofilter"
folder = "/CALO/Ofl/Noise/CellNoise"
from AthenaCommon.AppMgr import ServiceMgr as svcMgr
svcMgr.IOVDbSvc.overrideTags += ["<prefix>"+folder+"</prefix> <tag>"+tag+"</tag>"]
from AthenaCommon.GlobalFlags import GlobalFlags
GlobalFlags.DataSource.set_data()
from TileRecUtils.TileRecFlags import jobproperties
jobproperties.TileRecFlags.noiseFilter=1
#==============================================================
#
# Job options file : TileCellBuilder_cosmics_jobOptions.py
# Choose proper container with TileRawChannels
# It should be always TileRawChannelCnt for simulated data
# and normally TileRawChannelOpt2 (new Opt Filt with iterations) for real data
#
#==============================================================
# real data by default
if not 'doTileCosmicsSim' in dir():
doTileCosmicsSim=False
from AthenaCommon.AppMgr import ToolSvc
if not hasattr( ToolSvc, "TileCellBuilder" ):
from TileRecUtils.TileRecUtilsConf import TileCellBuilder
theTileCellBuilder=TileCellBuilder()
ToolSvc += theTileCellBuilder
from TileRecUtils.TileRecFlags import jobproperties
if doTileCosmicsSim:
# set correct name of input container in simulation
jobproperties.TileRecFlags.TileRawChannelContainer = "TileRawChannelCnt"
ToolSvc.TileCellBuilder.maskBadChannels = True
ToolSvc.TileCellBuilder.TileRawChannelContainer = jobproperties.TileRecFlags.TileRawChannelContainer()
# Configure TileROD_Decoder
#if not hasattr( ToolSvc, "TileROD_Decoder" ):
from TileByteStream.TileByteStreamConf import TileROD_Decoder
ToolSvc += TileROD_Decoder()
ToolSvc.TileROD_Decoder.calibrateEnergy = True
ToolSvc.TileROD_Decoder.suppressDummyFragments = True
ToolSvc.TileROD_Decoder.maskBadDigits = True
print ToolSvc.TileROD_Decoder
###############################################################
#
# Job options file : TileCellBuilder
# Read TileRawChannels and create TileCells
# All Det.Descr and Conditions options
# as well as CaloRec DLLs should be loaded before
#
#==============================================================
#-----------
# Load DLLs
#-----------
theApp.Dlls += ["TileRecUtils"]
#theApp.Dlls += [ "CaloRec" ]
#--------------------------------
# Algorithms Properties settings
#--------------------------------
#theApp.TopAlg += ["CaloCellMaker"]
CaloCellMaker=Algorithm("CaloCellMaker")
#CaloCellMaker.CaloCellsOutputName = "AllCalo"
CaloCellMaker.CaloCellMakerToolNames += [ "TileCellBuilder/TileCellBuilder" ]
from AthenaCommon.AppMgr import ToolSvc
ToolSvc.TileCellBuilder.TileRawChannelContainer = "TileRawChannelCnt"
from Digitization.DigitizationFlags import digitizationFlags
if digitizationFlags.doDigiTruth():
CaloCellMaker=Algorithm("CaloCellMaker_DigiHSTruth")
CaloCellMaker_DigiHSTruth.CaloCellMakerToolNames += [ "TileCellBuilder/TileCellBuilder_DigiHSTruth" ]
ToolSvc.TileCellBuilder_DigiHSTruth.TileRawChannelContainer = "TileRawChannelCnt_DigiHSTruth"
ToolSvc.TileCellBuilder_DigiHSTruth.TileDSPRawChannelContainer = "TileRawChannelCnt_DigiHSTruth"
ToolSvc.TileCellBuilder_DigiHSTruth.E4prContainer = "E4prContainer_DigiHSTruth"
ToolSvc.TileCellBuilder_DigiHSTruth.MBTSContainer = "MBTSContainer_DigiHSTruth"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment