Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
athena
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Julian Blumenthal
athena
Commits
0cb811da
Commit
0cb811da
authored
3 years ago
by
Daniele Zanzi
Committed by
Walter Lampl
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
add all trigger matchable chains for Run3 in DAOD_PHYS (ATR-23142)
parent
9a8109fd
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
PhysicsAnalysis/DerivationFramework/DerivationFrameworkPhys/share/PHYS.py
+12
-9
12 additions, 9 deletions
...DerivationFramework/DerivationFrameworkPhys/share/PHYS.py
with
12 additions
and
9 deletions
PhysicsAnalysis/DerivationFramework/DerivationFrameworkPhys/share/PHYS.py
+
12
−
9
View file @
0cb811da
...
...
@@ -19,6 +19,7 @@ from DerivationFrameworkJetEtMiss import METCommon
from
TriggerMenuMT.TriggerAPI.TriggerAPI
import
TriggerAPI
from
TriggerMenuMT.TriggerAPI.TriggerEnums
import
TriggerPeriod
,
TriggerType
from
DerivationFrameworkTrigger.TriggerMatchingHelper
import
TriggerMatchingHelper
import
re
#====================================================================
# SET UP STREAM
...
...
@@ -101,15 +102,17 @@ from AthenaConfiguration.AutoConfigFlags import GetFileMD
from
AthenaConfiguration.AllConfigFlags
import
ConfigFlags
if
ConfigFlags
.
Trigger
.
EDMVersion
==
3
:
trigger_names_notau
=
[
"
HLT_mu26_ivarmedium_L1MU20
"
,
"
HLT_mu50_L1MU20
"
,
"
HLT_e26_etcut_L1EM22VHI
"
,
"
HLT_e26_lhmedium_L1EM22VHI
"
,
"
HLT_mu22_mu8noL1_L1MU20
"
,
"
HLT_e7_lhmedium_mu24_L1MU20
"
,
]
trigger_names_tau
=
[
"
HLT_tau25_mediumRNN_tracktwoMVA_L1TAU12IM
"
,]
r_tau
=
re
.
compile
(
"
HLT_.*tau.*
"
)
r_notau
=
re
.
compile
(
"
HLT_[1-9]*(e|mu|g).*
"
)
r_veto
=
re
.
compile
(
"
HLT_.*(LRT).*
"
)
for
chain_name
in
GetFileMD
(
ConfigFlags
.
Input
.
Files
)[
'
TriggerMenu
'
][
'
HLTChains
'
]:
result_tau
=
r_tau
.
match
(
chain_name
)
result_notau
=
r_notau
.
match
(
chain_name
)
result_veto
=
r_veto
.
match
(
chain_name
)
if
result_tau
is
not
None
and
result_veto
is
None
:
trigger_names_tau
.
append
(
chain_name
)
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
:
for
chain_name
in
GetFileMD
(
ConfigFlags
.
Input
.
Files
)[
'
TriggerMenu
'
][
'
HLTChains
'
]:
if
chain_name
in
trigger_names_full_notau
:
trigger_names_notau
.
append
(
chain_name
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment