User Tools

Site Tools


gaudi:removealgorithm

This is an old revision of the document!


How to remove an Algorithm in an Options file

Problem

Suppose you want to remove an algorithm, for example the instance 'FitDownstream', which is a TrackEventFitter, in the sequence 'TrackDownstreamFitSeq'. For this, you write in your options file:

GaudiSequencer("TrackDownstreamFitSeq").Members.remove(TrackEventFitter("FitDownstream"))

But this may or may not work, as it is possible that these settings get overridden in furhter options file, which is called somewhere in the back.

Solution

One solution for this is to use the method called 'appendPostConfigAction'. Do something like:

def removeAlgo():
    GaudiSequencer("TrackDownstreamFitSeq").Members.remove(TrackEventFitter("FitDownstream"))

appendPostConfigAction( removeAlgo )
gaudi/removealgorithm.1256983362.txt.gz · Last modified: by decianm