diff --git a/PhysicsAnalysis/DerivationFramework/DerivationFrameworkEGamma/python/EGAM2.py b/PhysicsAnalysis/DerivationFramework/DerivationFrameworkEGamma/python/EGAM2.py index 4020357e188a3ad973bb49530979953e84078cff..2b38d3729ffd2ecc8de7c05ec7e7df9d8585f348 100644 --- a/PhysicsAnalysis/DerivationFramework/DerivationFrameworkEGamma/python/EGAM2.py +++ b/PhysicsAnalysis/DerivationFramework/DerivationFrameworkEGamma/python/EGAM2.py @@ -179,7 +179,9 @@ def EGAM2KernelCfg(flags, name="EGAM2Kernel", **kwargs): # Gain and cluster energies per layer decoration tool # ==================================================================== from DerivationFrameworkCalo.DerivationFrameworkCaloConfig import ( - CaloDecoratorKernelCfg) + CaloDecoratorKernelCfg, + ) + acc.merge(CaloDecoratorKernelCfg(flags)) # thinning tools @@ -497,6 +499,29 @@ def EGAM2Cfg(flags): OutputContainerPrefix="TrigMatch_", TriggerList=EGAM2TriggerListsHelper.Run2TriggerNamesNoTau, ) + + # add some single-leg trigger matching info needed for Jpsi triggers + from DerivationFrameworkPhys.TriggerMatchingCommonConfig import ( + TriggerMatchingCommonRun2Cfg + ) + EGAM2TrigMatchList = [ + "HLT_e5_lhtight_nod0", + "HLT_e9_lhtight_nod0", + "HLT_e14_lhtight_nod0", + ] + acc.merge(TriggerMatchingCommonRun2Cfg( + flags, + name="EGAM2TrigMatch", + OutputContainerPrefix="TrigMatch_", + ChainNames=EGAM2TrigMatchList) + ) + + AddRun2TriggerMatchingToSlimmingHelper( + SlimmingHelper=EGAM2SlimmingHelper, + OutputContainerPrefix="TrigMatch_", + TriggerList=EGAM2TrigMatchList + ) + # Run 3 if flags.Trigger.EDMVersion == 3: from TrigNavSlimmingMT.TrigNavSlimmingMTConfig import (