def clearAllAsgSelectors(): from AthenaCommon.AppMgr import ToolSvc for name in getAsgToolNames(): if hasattr(ToolSvc, name): print 'removing ', name ToolSvc.remove(name)
def removeFromToolSvc(tool): "removeFromToolSvc( tool ) --> remove tool from ToolSvc" from AthenaCommon.AppMgr import ToolSvc if hasattr(ToolSvc, tool.getName()): print("Removing tool %s from ToolSvc." % tool.getName()) ToolSvc.remove(tool.getName())
clist += [y] else: print "Removing: ", y, " from CaloCellMaker.CaloCellMakerToolNames" topSequence.CaloCellMaker.CaloCellMakerToolNames = clist # Configuring LArBadChanTool ToolSvc.LArBadChanTool.ReadFromASCII = True ToolSvc.LArBadChanTool.CoolFolder = "" ToolSvc.LArBadChanTool.ComplementaryCoolFolder = "" ToolSvc.LArBadChanTool.CoolMissingFEBsFolder = "" ToolSvc.LArBadChanTool.WriteEmptyFolders = True ToolSvc.LArBadChanTool.FCALAfile = "H6BadChannels.txt" ToolSvc.LArBadChanTool.HECAfile = "H6BadChannels.txt" ToolSvc.LArBadChanTool.EMECAfile = "H6BadChannels.txt" # and removing TileBadChanTool ToolSvc.remove("TileBadChanTool/TileBadChanTool") if doBeamQuality and doSim: from TBRec.TBRecConf import TBBeamQualityMC TBBeamQualityClus = TBBeamQualityMC("TBBeamQualityClus") TBBeamQualityClus.ReadFileforXcryo = False TBBeamQualityClus.CheckTrackParams = False TBBeamQualityClus.CheckPrimaryTrack = False TBBeamQualityClus.CheckVetoScint = False TBBeamQualityClus.CheckClusters = True TBBeamQualityClus.CheckTrackReco = False # from AthenaCommon.AppMgr import athMasterSeq topSequence += TBBeamQualityClus if doMakeEMTopoCluster: include("CaloRec/EMTopoCluster_jobOptions.py")