Skip to content
Snippets Groups Projects
Commit 17e1c529 authored by Vakhtang Tsulaia's avatar Vakhtang Tsulaia
Browse files

Merge branch 'fix_LArBadChanTool_removal' into 'master'

fix trigger MT tests

See merge request atlas/athena!16629
parents 2483776e 683dbc78
No related branches found
No related tags found
No related merge requests found
include.block("TrigT2CaloCommon/CaloCellMasking.py")
from AthenaCommon.AppMgr import ToolSvc #if not already imported
from LArBadChannelTool.LArBadChannelToolConf import LArBadChanTool, LArBadChannelMasker
from LArBadChannelTool.LArBadChannelToolConf import LArBadChanLegacyTool, LArBadChannelMasker
ToolSvc+=LArBadChanTool("MyBadChanTool")
ToolSvc+=LArBadChanLegacyTool("MyBadChanTool")
ToolSvc.MyBadChanTool.ReadFromASCII=False #Not necessary if you have already produced a database file
ToolSvc.MyBadChanTool.ComplementaryCoolFolder="/LAR/BadChannels/BadChannelsOnl"
#ToolSvc.MyBadChanTool.OutputLevel=VERBOSE
......
......@@ -4,7 +4,7 @@
from AthenaCommon.SystemOfUnits import GeV
from TrigCaloHypo.TrigCaloHypoConf import TrigEFCaloHypoNoise
from LArCellRec.LArCellRecConf import LArNoisyROTool
from LArBadChannelTool.LArBadChannelToolConf import LArBadChanTool
from LArBadChannelTool.LArBadChannelToolConf import LArBadChanLegacyTool
from IOVDbSvc.CondDB import conddb
from AthenaCommon.AppMgr import ServiceMgr as svcMgr
......@@ -20,7 +20,7 @@ class EFCaloHypoNoiseConfig (TrigEFCaloHypoNoise):
self.BadFEBCut=3
if 'COMP200' not in conddb.GetInstance() and not conddb.isMC:
if not hasattr(svcMgr.ToolSvc, "KnownBADFEBsTool"):
theBadFebTool=LArBadChanTool("KnownBADFEBsTool")
theBadFebTool=LArBadChanLegacyTool("KnownBADFEBsTool")
theBadFebTool.CoolMissingFEBsFolder="/LAR/BadChannels/KnownBADFEBs"
havefolder=False
for fld in conddb.iovdbsvc.Folders:
......@@ -32,7 +32,7 @@ class EFCaloHypoNoiseConfig (TrigEFCaloHypoNoise):
else:
theBadFebTool=svcMgr.ToolSvc.KnownBADFEBsTool
if not hasattr(svcMgr.ToolSvc, "KnownMNBFEBsTool"):
theMNBFebTool=LArBadChanTool("KnownMNBFEBsTool")
theMNBFebTool=LArBadChanLegacyTool("KnownMNBFEBsTool")
theMNBFebTool.CoolMissingFEBsFolder="/LAR/BadChannels/KnownMNBFEBs"
havefolder=False
for fld in conddb.iovdbsvc.Folders:
......
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