Skip to content
Snippets Groups Projects
Commit 4a22cb60 authored by Adam Edward Barton's avatar Adam Edward Barton
Browse files

Merge branch 'decorator_refactor_from_a_nightly_tag' into 'master'

Functions refactored for decorator.

See merge request !45282
parents c276dd8f 7a4694b8
No related branches found
No related tags found
5 merge requests!58791DataQualityConfigurations: Modify L1Calo config for web display,!51674Fixing hotSpotInHIST for Run3 HIST,!46784MuonCondInterface: Enable thread-safety checking.,!46776Updated LArMonitoring config file for WD to match new files produced using MT,!45282Functions refactored for decorator.
......@@ -9,8 +9,10 @@ from TrigEDMConfig.TriggerEDMRun3 import recordable
from AthenaConfiguration.ComponentFactory import CompFactory
from TriggerMenuMT.HLTMenuConfig.Menu.DictFromChainName import getChainMultFromDict
from AthenaConfiguration.AccumulatorCache import AccumulatorCache
def _fastCalo(flags, chainDict):
@AccumulatorCache
def _fastCaloSeq(flags):
selAcc=SelectionCA('FastCaloElectron')
selAcc.mergeReco(l2CaloRecoCfg(flags))
......@@ -26,11 +28,17 @@ def _fastCalo(flags, chainDict):
fastCaloSequence = MenuSequenceCA(selAcc,
HypoToolGen=TrigEgammaFastCaloHypoToolFromDict)
return (selAcc , fastCaloSequence)
def _fastCalo(flags, chainDict):
selAcc , fastCaloSequence = _fastCaloSeq(flags)
# this cannot work for asymmetric combined chains....FP
return ChainStep(name=selAcc.name, Sequences=[fastCaloSequence], chainDicts=[chainDict], multiplicity=getChainMultFromDict(chainDict))
def _ftf(flags, chainDict):
@AccumulatorCache
def _ftfSeq(flags):
selAcc=SelectionCA('ElectronFTF')
# # # fast ID (need to be customised because require secialised configuration of the views maker - i.e. parent has to be linked)
name = "IMFastElectron"
......@@ -60,9 +68,14 @@ def _ftf(flags, chainDict):
from TrigEgammaHypo.TrigEgammaFastElectronHypoTool import TrigEgammaFastElectronHypoToolFromDict
fastInDetSequence = MenuSequenceCA(selAcc,
HypoToolGen=TrigEgammaFastElectronHypoToolFromDict)
return (selAcc , fastInDetSequence)
def _ftf(flags, chainDict):
selAcc , fastInDetSequence = _ftfSeq(flags)
return ChainStep( name=selAcc.name, Sequences=[fastInDetSequence], chainDicts=[chainDict], multiplicity=getChainMultFromDict(chainDict))
def _precisonCalo(flags, chainDict):
@AccumulatorCache
def _precisonCaloSeq(flags):
recoAcc = InViewRecoCA('ElectronRoITopoClusterReco', RequireParentView = True)
recoAcc.addRecoAlgo(CompFactory.AthViews.ViewDataVerifier(name='VDV'+recoAcc.name,
DataObjects=[('TrigRoiDescriptorCollection', recoAcc.inputMaker().InViewRoIs),
......@@ -87,10 +100,14 @@ def _precisonCalo(flags, chainDict):
from TrigEgammaHypo.TrigEgammaPrecisionCaloHypoTool import TrigEgammaPrecisionCaloHypoToolFromDict
menuSequence = MenuSequenceCA(selAcc,
HypoToolGen=TrigEgammaPrecisionCaloHypoToolFromDict)
return ChainStep(name=selAcc.name, Sequences=[menuSequence], chainDicts=[chainDict], multiplicity=getChainMultFromDict(chainDict))
return (selAcc , menuSequence)
def _precisonCalo(flags, chainDict):
selAcc , menuSequence = _precisonCaloSeq(flags)
return ChainStep(name=selAcc.name, Sequences=[menuSequence], chainDicts=[chainDict], multiplicity=getChainMultFromDict(chainDict))
def _precisionTracking(flags, chainDict):
@AccumulatorCache
def _precisionTrackingSeq(flags):
selAcc=SelectionCA('ElectronPrecision')
name = "IMPrecisionTrackingElectron"
......@@ -115,6 +132,10 @@ def _precisionTracking(flags, chainDict):
selAcc.addHypoAlgo(hypoAlg)
menuSequence = MenuSequenceCA(selAcc,
HypoToolGen=TrigEgammaPrecisionTrackingHypoToolFromDict)
return (selAcc , menuSequence)
def _precisionTracking(flags, chainDict):
selAcc , menuSequence = _precisionTrackingSeq(flags)
return ChainStep(name=selAcc.name, Sequences=[menuSequence], chainDicts=[chainDict], multiplicity=getChainMultFromDict(chainDict))
def generateChains(flags, chainDict):
......
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