Skip to content
Snippets Groups Projects

PerfMonComps: Do not overwrite topSequence in the configuration

2 files
+ 10
9
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -135,22 +135,22 @@ class doMonitoringMT(JobProperty):
svcMgr += PerfMonMTSvc("PerfMonMTSvc")
# Setup PerfMonAlg
from AthenaCommon.AlgSequence import AthSequencer
topSequence = AthSequencer("AthAlgSeq")
if not hasattr(topSequence, "PerfMonMTAlg"):
algSeq = AthSequencer("AthAlgSeq")
if not hasattr(algSeq, "PerfMonMTAlg"):
from PerfMonComps.PerfMonCompsConf import PerfMonMTAlg
topSequence += PerfMonMTAlg("PerfMonMTAlg")
algSeq += PerfMonMTAlg("PerfMonMTAlg")
return
def _undo_action(self):
# Uninstall the service and the algorithm
from AthenaCommon.AppMgr import ServiceMgr as svcMgr
from AthenaCommon.AlgSequence import AthSequencer
topSequence = AthSequencer("AthAlgSeq")
algSeq = AthSequencer("AthAlgSeq")
if hasattr(svcMgr, 'PerfMonMTSvc'):
del svcMgr.PerfMonMTSvc
if hasattr(topSequence, 'PerfMonMTAlg'):
del topSequence.PerfMonMTAlg
if hasattr(algSeq, 'PerfMonMTAlg'):
del algSeq.PerfMonMTAlg
return
#
class doFastMonMT(JobProperty):
Loading