Skip to content
Snippets Groups Projects
Commit 4a20f5bd authored by Walter Lampl's avatar Walter Lampl
Browse files

Merge branch 'ATR-triggerListPHYS_dzanzi' into 'master'

add all trigger matchable chains for Run3 in DAOD_PHYS (ATR-23142)

See merge request !42098
parents 3bd355d9 0cb811da
No related branches found
No related tags found
No related merge requests found
...@@ -19,6 +19,7 @@ from DerivationFrameworkJetEtMiss import METCommon ...@@ -19,6 +19,7 @@ from DerivationFrameworkJetEtMiss import METCommon
from TriggerMenuMT.TriggerAPI.TriggerAPI import TriggerAPI from TriggerMenuMT.TriggerAPI.TriggerAPI import TriggerAPI
from TriggerMenuMT.TriggerAPI.TriggerEnums import TriggerPeriod, TriggerType from TriggerMenuMT.TriggerAPI.TriggerEnums import TriggerPeriod, TriggerType
from DerivationFrameworkTrigger.TriggerMatchingHelper import TriggerMatchingHelper from DerivationFrameworkTrigger.TriggerMatchingHelper import TriggerMatchingHelper
import re
#==================================================================== #====================================================================
# SET UP STREAM # SET UP STREAM
...@@ -101,15 +102,17 @@ from AthenaConfiguration.AutoConfigFlags import GetFileMD ...@@ -101,15 +102,17 @@ from AthenaConfiguration.AutoConfigFlags import GetFileMD
from AthenaConfiguration.AllConfigFlags import ConfigFlags from AthenaConfiguration.AllConfigFlags import ConfigFlags
if ConfigFlags.Trigger.EDMVersion == 3: if ConfigFlags.Trigger.EDMVersion == 3:
trigger_names_notau = [ r_tau = re.compile("HLT_.*tau.*")
"HLT_mu26_ivarmedium_L1MU20", r_notau = re.compile("HLT_[1-9]*(e|mu|g).*")
"HLT_mu50_L1MU20", r_veto = re.compile("HLT_.*(LRT).*")
"HLT_e26_etcut_L1EM22VHI", for chain_name in GetFileMD(ConfigFlags.Input.Files)['TriggerMenu']['HLTChains']:
"HLT_e26_lhmedium_L1EM22VHI", result_tau = r_tau.match(chain_name)
"HLT_mu22_mu8noL1_L1MU20", result_notau = r_notau.match(chain_name)
"HLT_e7_lhmedium_mu24_L1MU20", result_veto = r_veto.match(chain_name)
] if result_tau is not None and result_veto is None: trigger_names_tau.append(chain_name)
trigger_names_tau = ["HLT_tau25_mediumRNN_tracktwoMVA_L1TAU12IM",] if result_notau is not None and result_veto is None: trigger_names_notau.append(chain_name)
trigger_names_notau = set(trigger_names_notau) - set(trigger_names_tau)
trigger_names_notau = list(trigger_names_notau)
else: else:
for chain_name in GetFileMD(ConfigFlags.Input.Files)['TriggerMenu']['HLTChains']: for chain_name in GetFileMD(ConfigFlags.Input.Files)['TriggerMenu']['HLTChains']:
if chain_name in trigger_names_full_notau: trigger_names_notau.append(chain_name) if chain_name in trigger_names_full_notau: trigger_names_notau.append(chain_name)
......
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