Skip to content
Snippets Groups Projects
Commit 836496ed authored by Benjamin Michael Wynne's avatar Benjamin Michael Wynne Committed by Adam Edward Barton
Browse files

Restore parallelism in HLT track reco

parent 26911d67
No related branches found
No related tags found
No related merge requests found
...@@ -6,10 +6,7 @@ from AthenaConfiguration.AllConfigFlags import ConfigFlags ...@@ -6,10 +6,7 @@ from AthenaConfiguration.AllConfigFlags import ConfigFlags
# menu components # menu components
from TriggerMenuMT.HLTMenuConfig.Menu.MenuComponents import MenuSequence, RecoFragmentsPool from TriggerMenuMT.HLTMenuConfig.Menu.MenuComponents import MenuSequence, RecoFragmentsPool
# ATR-20453 from AthenaCommon.CFElements import parOR, seqAND
# Until such time as FS and RoI collections do not interfere, a hacky fix
#from AthenaCommon.CFElements import parOR, seqAND
from AthenaCommon.CFElements import seqAND
from ViewAlgs.ViewAlgsConf import EventViewCreatorAlgorithm from ViewAlgs.ViewAlgsConf import EventViewCreatorAlgorithm
from DecisionHandling.DecisionHandlingConf import ViewCreatorInitialROITool from DecisionHandling.DecisionHandlingConf import ViewCreatorInitialROITool
from TrigEDMConfig.TriggerEDMRun3 import recordable from TrigEDMConfig.TriggerEDMRun3 import recordable
...@@ -51,10 +48,7 @@ def fastElectronSequence(ConfigFlags): ...@@ -51,10 +48,7 @@ def fastElectronSequence(ConfigFlags):
l2ElectronViewsMaker.RequireParentView = True l2ElectronViewsMaker.RequireParentView = True
theElectronFex.RoIs = l2ElectronViewsMaker.InViewRoIs theElectronFex.RoIs = l2ElectronViewsMaker.InViewRoIs
# ATR-20453 electronInViewAlgs = parOR("electronInViewAlgs", viewAlgs + [ theElectronFex ])
# Until such time as FS and RoI collections do not interfere, a hacky fix
#electronInViewAlgs = parOR("electronInViewAlgs", viewAlgs + [ theElectronFex ])
electronInViewAlgs = seqAND("electronInViewAlgs", viewAlgs + [ theElectronFex ])
l2ElectronViewsMaker.ViewNodeName = "electronInViewAlgs" l2ElectronViewsMaker.ViewNodeName = "electronInViewAlgs"
electronAthSequence = seqAND("electronAthSequence", [l2ElectronViewsMaker, electronInViewAlgs ] ) electronAthSequence = seqAND("electronAthSequence", [l2ElectronViewsMaker, electronInViewAlgs ] )
......
...@@ -490,17 +490,11 @@ def muFastRecoSequence( RoIs, doFullScanID = False, InsideOutMode=False ): ...@@ -490,17 +490,11 @@ def muFastRecoSequence( RoIs, doFullScanID = False, InsideOutMode=False ):
def muonIDFastTrackingSequence( RoIs, name, extraLoads=None ): def muonIDFastTrackingSequence( RoIs, name, extraLoads=None ):
# ATR-20453 from AthenaCommon.CFElements import parOR
# Until such time as FS and RoI collections do not interfere, a hacky fix
#from AthenaCommon.CFElements import parOR
from AthenaCommon.CFElements import seqAND
viewNodeName=name+"FastIDViewNode" viewNodeName=name+"FastIDViewNode"
# ATR-20453 muonIDFastTrackingSequence = parOR(viewNodeName)
# Until such time as FS and RoI collections do not interfere, a hacky fix
#muonIDFastTrackingSequence = parOR(viewNodeName)
muonIDFastTrackingSequence = seqAND(viewNodeName)
### Define input data of Inner Detector algorithms ### ### Define input data of Inner Detector algorithms ###
### and Define EventViewNodes to run the algorithms ### ### and Define EventViewNodes to run the algorithms ###
...@@ -939,14 +933,9 @@ def muEFInsideOutRecoSequence(RoIs, name): ...@@ -939,14 +933,9 @@ def muEFInsideOutRecoSequence(RoIs, name):
def efmuisoRecoSequence( RoIs, Muons ): def efmuisoRecoSequence( RoIs, Muons ):
# ATR-20453 from AthenaCommon.CFElements import parOR
# Until such time as FS and RoI collections do not interfere, a hacky fix
from AthenaCommon.CFElements import seqAND,parOR
# ATR-20453 efmuisoRecoSequence = parOR("efmuIsoViewNode")
# Until such time as FS and RoI collections do not interfere, a hacky fix
#efmuisoRecoSequence = parOR("efmuIsoViewNode")
efmuisoRecoSequence = seqAND("efmuIsoViewNode")
from TrigInDetConfig.ConfigSettings import getInDetTrigConfig from TrigInDetConfig.ConfigSettings import getInDetTrigConfig
IDTrigConfig = getInDetTrigConfig( 'muonIso' ) IDTrigConfig = getInDetTrigConfig( 'muonIso' )
......
...@@ -213,8 +213,8 @@ def tauCaloMVASequence(ConfigFlags): ...@@ -213,8 +213,8 @@ def tauCaloMVASequence(ConfigFlags):
return (tauCaloMVASequence, tauCaloMVAViewsMaker, sequenceOut) return (tauCaloMVASequence, tauCaloMVAViewsMaker, sequenceOut)
def preSelSequence( RoIs, name): def preSelSequence( RoIs, name):
tauPreSelSequence = seqAND(name) tauPreSelSequence = parOR(name)
signatureName, signatureNameID = _getTauSignatureShort( name ) signatureName, signatureNameID = _getTauSignatureShort( name )
from TrigInDetConfig.ConfigSettings import getInDetTrigConfig from TrigInDetConfig.ConfigSettings import getInDetTrigConfig
...@@ -247,7 +247,7 @@ def preSelSequence( RoIs, name): ...@@ -247,7 +247,7 @@ def preSelSequence( RoIs, name):
def tauIdSequence( RoIs, name): def tauIdSequence( RoIs, name):
tauIdSequence = seqAND(name) tauIdSequence = parOR(name)
signatureName, signatureNameID = _getTauSignatureShort( name ) signatureName, signatureNameID = _getTauSignatureShort( name )
from TrigInDetConfig.ConfigSettings import getInDetTrigConfig from TrigInDetConfig.ConfigSettings import getInDetTrigConfig
...@@ -288,8 +288,6 @@ def tauIdSequence( RoIs, name): ...@@ -288,8 +288,6 @@ def tauIdSequence( RoIs, name):
def precTrackSequence( RoIs , name): def precTrackSequence( RoIs , name):
precTrackSequence = seqAND(name)
signatureName, signatureNameID = _getTauSignatureShort( name ) signatureName, signatureNameID = _getTauSignatureShort( name )
from TrigInDetConfig.ConfigSettings import getInDetTrigConfig from TrigInDetConfig.ConfigSettings import getInDetTrigConfig
IDTrigConfig = getInDetTrigConfig( signatureNameID ) IDTrigConfig = getInDetTrigConfig( signatureNameID )
...@@ -322,8 +320,6 @@ def precTrackSequence( RoIs , name): ...@@ -322,8 +320,6 @@ def precTrackSequence( RoIs , name):
topSequence.SGInputLoader.Load += [( 'TRT_RDO_Container' , 'StoreGateSvc+TRT_RDOs' )] topSequence.SGInputLoader.Load += [( 'TRT_RDO_Container' , 'StoreGateSvc+TRT_RDOs' )]
ViewVerifyTrk.DataObjects += [( 'TRT_RDO_Container' , 'StoreGateSvc+TRT_RDOs' )] ViewVerifyTrk.DataObjects += [( 'TRT_RDO_Container' , 'StoreGateSvc+TRT_RDOs' )]
precTrackSequence+= ViewVerifyTrk
#Precision Tracking #Precision Tracking
PTAlgs = [] #List of precision tracking algs PTAlgs = [] #List of precision tracking algs
PTTracks = [] #List of TrackCollectionKeys PTTracks = [] #List of TrackCollectionKeys
...@@ -333,18 +329,16 @@ def precTrackSequence( RoIs , name): ...@@ -333,18 +329,16 @@ def precTrackSequence( RoIs , name):
#When run in a different view than FTF some data dependencies needs to be loaded through verifier #When run in a different view than FTF some data dependencies needs to be loaded through verifier
#Pass verifier as an argument and it will automatically append necessary DataObjects@NOTE: Don't provide any verifier if loaded in the same view as FTF #Pass verifier as an argument and it will automatically append necessary DataObjects@NOTE: Don't provide any verifier if loaded in the same view as FTF
PTTracks, PTTrackParticles, PTAlgs = makeInDetPrecisionTracking( config = IDTrigConfig, verifier = ViewVerifyTrk, rois = RoIs ) PTTracks, PTTrackParticles, PTAlgs = makeInDetPrecisionTracking( config = IDTrigConfig, verifier = ViewVerifyTrk, rois = RoIs )
PTSeq = parOR("precisionTrackingIn"+signatureName, PTAlgs ) precTrackSequence = parOR(name, [ViewVerifyTrk] + PTAlgs )
#Get last tracks from the list as input for other alg #Get last tracks from the list as input for other alg
precTrackSequence += PTSeq
sequenceOut = PTTrackParticles[-1] sequenceOut = PTTrackParticles[-1]
return precTrackSequence, sequenceOut return precTrackSequence, sequenceOut
def tauFTFSequence( RoIs, name ): def tauFTFSequence( RoIs, name ):
tauFTFSequence = seqAND(name) tauFTFSequence = parOR(name)
signatureName, signatureNameID = _getTauSignatureShort( name ) signatureName, signatureNameID = _getTauSignatureShort( name )
from TrigInDetConfig.ConfigSettings import getInDetTrigConfig from TrigInDetConfig.ConfigSettings import getInDetTrigConfig
......
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