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

Allow clients to explicitly set the sequnece for LumiBlockMuWriter algorithm

Added sequence argument to the LumiBlockMuWriterDefault() function. If the argument
is set, then this sequence is used for LumiBlockMuWriter. Otherwise the appropriate
sequence is chosen by the LumiBlockMuWriterDefault() function itself.

Addresses ATR-22141
parent 9b5a4109
No related branches found
No related tags found
No related merge requests found
......@@ -10,13 +10,13 @@ from AthenaConfiguration.ComponentFactory import CompFactory
from AthenaCommon.BeamFlags import jobproperties
def LumiBlockMuWriterDefault (name = 'LumiBlockMuWriter'):
def LumiBlockMuWriterDefault (name = 'LumiBlockMuWriter', sequence = None):
from AthenaCommon.AlgSequence import AthSequencer
from AthenaCommon.AlgSequence import AlgSequence
condSeq = AthSequencer ('AthCondSeq')
topSequence = AlgSequence()
if hasattr (condSeq, name) or hasattr (topSequence, name):
if (sequence and hasattr (sequence, name)) or hasattr (condSeq, name) or hasattr (topSequence, name):
return
LumiBlockMuWriter = CompFactory.LumiBlockMuWriter # LumiBlockComps
......@@ -40,10 +40,13 @@ def LumiBlockMuWriterDefault (name = 'LumiBlockMuWriter'):
# FIXME: If EventInfoCnvAlg is in topSequence, then this needs to come
# after it. Otherwise, schedule to condSeq so we'll be run early.
if cnvalg and cnvseq is topSequence:
topSequence += alg
if sequence:
sequence += alg
else:
condSeq += alg
if cnvalg and cnvseq is topSequence:
topSequence += alg
else:
condSeq += alg
from AthenaCommon.GlobalFlags import globalflags
from RecExConfig.ObjKeyStore import objKeyStore
......
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