Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
athena
Manage
Activity
Members
Labels
Plan
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review 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
atlas
athena
Commits
94fb87ad
Commit
94fb87ad
authored
1 year ago
by
Thomas Strebler
Committed by
Ahmed Tarek
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Clean up legacy MET monitoring
Clean up legacy MET monitoring
parent
1e721d77
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!69125
2024-02-22: merge of 24.0 into main
,
!69084
Clean up legacy MET monitoring
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Reconstruction/MissingETMonitoring/share/MissingET_Monitoring.py
+0
-357
0 additions, 357 deletions
...ruction/MissingETMonitoring/share/MissingET_Monitoring.py
with
0 additions
and
357 deletions
Reconstruction/MissingETMonitoring/share/MissingET_Monitoring.py
deleted
100755 → 0
+
0
−
357
View file @
1e721d77
from
AthenaCommon.AlgSequence
import
AlgSequence
from
AthenaMonitoring.AthenaMonitoringConf
import
AthenaMonManager
from
MissingETMonitoring.MissingETMonitoringConf
import
*
from
AthenaMonitoring.BadLBFilterTool
import
GetLArBadLBFilterTool
from
AthenaMonitoring.FilledBunchFilterTool
import
GetFilledBunchFilterTool
from
JetSelectorTools.JetSelectorToolsConf
import
JetCleaningTool
cleaningTool
=
JetCleaningTool
(
"
LooseBadJets
"
,
CutLevel
=
"
LooseBad
"
,
JetContainer
=
"
AntiKt4LCTopoJets
"
)
ToolSvc
+=
cleaningTool
topSequence
=
AlgSequence
()
monManETmiss
=
AthenaMonManager
(
name
=
"
ETmissMonManager
"
,
FileKey
=
DQMonFlags
.
monManFileKey
(),
Environment
=
DQMonFlags
.
monManEnvironment
(),
ManualDataTypeSetup
=
DQMonFlags
.
monManManualDataTypeSetup
(),
DataType
=
DQMonFlags
.
monManDataType
()
)
topSequence
+=
monManETmiss
# Monitoring of all events and XE trigger
if
DQMonFlags
.
useTrigger
():
triggerList
=
[
""
]
# All triggers
# triggerList += ["EF_xe30_FEB_L1EM5"] # updated on March, 2012 (Heavy Ion runs)
# triggerList += ["EF_xe25_FEB_L1TE90"] # updated on March, 2012
# triggerList += ["EF_xe30"] # updated on June, 2013
triggerList
+=
[
"
L1_XE35
"
]
# updated on June, 2013
# triggerList += ["EF_xe80"] # updated on June, 2013
else
:
triggerList
=
[
""
]
# If trigger is on then run twice the same tools:
# - for all events
# - for triggered events
# Otherwise run for all events only
for
trigger
in
triggerList
:
if
trigger
!=
""
:
triggerName
=
trigger
# this makes sure we have for each trigger a separate folder!
else
:
triggerName
=
""
# Standard Monitoring
metMonTool
=
METMonTool
(
name
=
"
METMonTool_
"
+
triggerName
)
metMonTool
.
NameSuffix
=
triggerName
metMonTool
.
TriggerChain
=
trigger
#New AthenaMonitoring filter tool to be added to filter out events in non-filled BCIDs
# metMonTool.FilterTools += [GetFilledBunchFilterTool()]
metMonTool
.
FilterTools
+=
[
GetLArBadLBFilterTool
()]
if
trigger
!=
""
:
metMonTool
.
TrigDecisionTool
=
monTrigDecTool
#Uncomment when switching to AOD
#metMonTool.eleColKey = "ElectronAODCollection"
#Uncomment to avoid the jet cleaning
#metMonTool.doJetcleaning = False
#ToolSvc += metMonTool
monManETmiss
.
AthenaMonTools
+=
[
metMonTool
]
# Standard Monitoring cut80
# metMonTool = METMonTool(name = "METMonTool_cut80_"+triggerName)
# metMonTool.NameSuffix = "cut80"
# if triggerName != "":
# metMonTool.NameSuffix += "_"+triggerName
## metMonTool.NameSuffix = triggerName
# metMonTool.TriggerChain = trigger
# metMonTool.doMetCut80 = True
# metMonTool.metCut = 10
# #New AthenaMonitoring filter tool to be added to filter out events in non-filled BCIDs
# metMonTool.FilterTools += [GetFilledBunchFilterTool()]
# metMonTool.FilterTools += [GetLArBadLBFilterTool()]
# if trigger != "":
# metMonTool.TrigDecisionTool = monTrigDecTool
#Uncomment when switching to AOD
#metMonTool.eleColKey = "ElectronAODCollection"
#Uncomment to avoid the jet cleaning
#metMonTool.doJetcleaning = False
# ToolSvc += metMonTool
# monManETmiss.AthenaMonTools += [ metMonTool ]
# Bad Jets Monitoring
metMonTool
=
METMonTool
(
name
=
"
METMonTool_BadJets
"
+
triggerName
)
metMonTool
.
NameSuffix
=
"
BadJets
"
if
triggerName
!=
""
:
metMonTool
.
NameSuffix
+=
"
_
"
+
triggerName
metMonTool
.
metKeys
=
[
"
MET_RefFinal
"
]
metMonTool
.
metCalKey
=
""
metMonTool
.
eleColKey
=
""
metMonTool
.
muoColKey
=
""
metMonTool
.
jetColKey
=
"
AntiKt4LCTopoJets
"
metMonTool
.
TriggerChain
=
trigger
# metMonTool.FilterTools += [GetFilledBunchFilterTool()]
metMonTool
.
FilterTools
+=
[
GetLArBadLBFilterTool
()]
metMonTool
.
JetSelectorTool
=
cleaningTool
metMonTool
.
badJets
=
True
if
trigger
!=
""
:
metMonTool
.
TrigDecisionTool
=
monTrigDecTool
#Uncomment when switching to AOD
#metMonTool.eleColKey = "ElectronAODCollection"
#Uncomment to avoid the jet cleaning
#metMonTool.doJetcleaning = False
#ToolSvc += metMonTool
monManETmiss
.
AthenaMonTools
+=
[
metMonTool
]
# Tool for calorimetric MET monitoring
metMonTool
=
METMonTool
(
name
=
"
METMonTool_Calo_
"
+
triggerName
)
metMonTool
.
NameSuffix
=
"
Calo
"
if
triggerName
!=
""
:
metMonTool
.
NameSuffix
+=
"
_
"
+
triggerName
metMonTool
.
metKeys
=
[
"
MET_Topo
"
,
"
MET_LocHadTopo
"
]
metMonTool
.
metFinKey
=
""
metMonTool
.
metCalKey
=
""
metMonTool
.
jetColKey
=
"
AntiKt4LCTopoJets
"
metMonTool
.
eleColKey
=
""
metMonTool
.
muoColKey
=
""
metMonTool
.
TriggerChain
=
trigger
# metMonTool.FilterTools += [GetFilledBunchFilterTool()]
metMonTool
.
FilterTools
+=
[
GetLArBadLBFilterTool
()]
if
trigger
!=
""
:
metMonTool
.
TrigDecisionTool
=
monTrigDecTool
#ToolSvc += metMonTool
monManETmiss
.
AthenaMonTools
+=
[
metMonTool
]
# Tool for refined MET monitoring
metMonTool
=
METMonTool
(
name
=
"
METMonTool_Refined_
"
+
triggerName
)
metMonTool
.
NameSuffix
=
"
Refined
"
if
triggerName
!=
""
:
metMonTool
.
NameSuffix
+=
"
_
"
+
triggerName
metMonTool
.
metKeys
=
[
"
MET_RefEle
"
,
"
MET_RefGamma
"
,
"
MET_RefTau
"
,
"
MET_RefJet
"
,
"
MET_Muon
"
,
"
MET_PVSoftTrk
"
,
"
MET_SoftClus
"
,
"
MET_RefFinal
"
]
metMonTool
.
metFinKey
=
""
metMonTool
.
metCalKey
=
""
metMonTool
.
jetColKey
=
"
AntiKt4LCTopoJets
"
metMonTool
.
eleColKey
=
""
metMonTool
.
muoColKey
=
""
metMonTool
.
TriggerChain
=
trigger
# metMonTool.FilterTools += [GetFilledBunchFilterTool()]
metMonTool
.
FilterTools
+=
[
GetLArBadLBFilterTool
()]
if
trigger
!=
""
:
metMonTool
.
TrigDecisionTool
=
monTrigDecTool
#ToolSvc += metMonTool
monManETmiss
.
AthenaMonTools
+=
[
metMonTool
]
# Tool for PFlow MET monitoring
metMonTool
=
METMonTool
(
name
=
"
METMonTool_PFlow_
"
+
triggerName
)
metMonTool
.
NameSuffix
=
"
PFlow
"
if
triggerName
!=
""
:
metMonTool
.
NameSuffix
+=
"
_
"
+
triggerName
metMonTool
.
metKeys
=
[
"
MET_PFlow_RefEle
"
,
"
MET_PFlow_RefGamma
"
,
"
MET_PFlow_RefTau
"
,
"
MET_PFlow_RefJet
"
,
"
MET_PFlow_Muon
"
,
"
MET_PFlow_PVSoftTrk
"
,
"
MET_PFlow_SoftClus
"
,
"
MET_PFlow_RefFinal
"
]
metMonTool
.
metFinKey
=
""
metMonTool
.
metCalKey
=
""
metMonTool
.
jetColKey
=
"
AntiKt4LCTopoJets
"
metMonTool
.
eleColKey
=
""
metMonTool
.
muoColKey
=
""
metMonTool
.
TriggerChain
=
trigger
# metMonTool.FilterTools += [GetFilledBunchFilterTool()]
metMonTool
.
FilterTools
+=
[
GetLArBadLBFilterTool
()]
if
trigger
!=
""
:
metMonTool
.
TrigDecisionTool
=
monTrigDecTool
#ToolSvc += metMonTool
monManETmiss
.
AthenaMonTools
+=
[
metMonTool
]
# Tool for MET monitoring dojet cleaning
metMonTool
=
METMonTool
(
name
=
"
METMonTool_Refined_JetCleaning
"
+
triggerName
)
metMonTool
.
NameSuffix
=
"
Refined_JetCleaning
"
if
triggerName
!=
""
:
metMonTool
.
NameSuffix
+=
"
_
"
+
triggerName
metMonTool
.
metKeys
=
[
"
MET_RefEle
"
,
"
MET_RefGamma
"
,
"
MET_RefTau
"
,
"
MET_RefJet
"
,
"
MET_Muon
"
,
"
MET_PVSoftTrk
"
,
"
MET_SoftClus
"
,
"
MET_RefFinal
"
]
metMonTool
.
metFinKey
=
""
metMonTool
.
metCalKey
=
""
metMonTool
.
jetColKey
=
"
AntiKt4LCTopoJets
"
metMonTool
.
eleColKey
=
""
metMonTool
.
muoColKey
=
""
metMonTool
.
doMetCut80
=
False
metMonTool
.
metCut
=
80.0
metMonTool
.
doJetcleaning
=
True
metMonTool
.
JetSelectorTool
=
cleaningTool
metMonTool
.
TriggerChain
=
trigger
# metMonTool.FilterTools += [GetFilledBunchFilterTool()]
metMonTool
.
FilterTools
+=
[
GetLArBadLBFilterTool
()]
if
trigger
!=
""
:
metMonTool
.
TrigDecisionTool
=
monTrigDecTool
#ToolSvc += metMonTool
monManETmiss
.
AthenaMonTools
+=
[
metMonTool
]
# Tool for calorimetric MET monitoring (TopoCluster)
metMonTool
=
METMonTool
(
name
=
"
METMonTool_Topo_JetCleaning
"
+
triggerName
)
metMonTool
.
NameSuffix
=
"
Calo_JetCleaning
"
if
triggerName
!=
""
:
metMonTool
.
NameSuffix
+=
"
_
"
+
triggerName
metMonTool
.
metKeys
=
[
"
MET_Topo
"
,
"
MET_LocHadTopo
"
]
metMonTool
.
metFinKey
=
""
metMonTool
.
metCalKey
=
""
metMonTool
.
jetColKey
=
"
AntiKt4LCTopoJets
"
metMonTool
.
eleColKey
=
""
metMonTool
.
muoColKey
=
""
metMonTool
.
doJetcleaning
=
True
metMonTool
.
JetSelectorTool
=
cleaningTool
metMonTool
.
TriggerChain
=
trigger
# metMonTool.FilterTools += [GetFilledBunchFilterTool()]
metMonTool
.
FilterTools
+=
[
GetLArBadLBFilterTool
()]
if
trigger
!=
""
:
metMonTool
.
TrigDecisionTool
=
monTrigDecTool
#ToolSvc += metMonTool
monManETmiss
.
AthenaMonTools
+=
[
metMonTool
]
# Tool for calorimetric MET monitoring (Layer)
metMonTool
=
METMonTool
(
name
=
"
METMonTool_Calos_JetCleaning
"
+
triggerName
)
metMonTool
.
NameSuffix
=
"
JetCleaning
"
if
triggerName
!=
""
:
metMonTool
.
NameSuffix
+=
"
_
"
+
triggerName
metMonTool
.
metKeys
=
[]
metMonTool
.
metFinKey
=
"
MET_Topo
"
metMonTool
.
metCalKey
=
"
MET_Topo
"
metMonTool
.
jetColKey
=
"
AntiKt4LCTopoJets
"
metMonTool
.
eleColKey
=
""
metMonTool
.
muoColKey
=
""
metMonTool
.
doJetcleaning
=
True
metMonTool
.
JetSelectorTool
=
cleaningTool
metMonTool
.
TriggerChain
=
trigger
# metMonTool.FilterTools += [GetFilledBunchFilterTool()]
metMonTool
.
FilterTools
+=
[
GetLArBadLBFilterTool
()]
if
trigger
!=
""
:
metMonTool
.
TrigDecisionTool
=
monTrigDecTool
#ToolSvc += metMonTool
monManETmiss
.
AthenaMonTools
+=
[
metMonTool
]
# Tool for MET > 80 GeV monitoring
metMonTool
=
METMonTool
(
name
=
"
METMonTool_Refined_cut80
"
)
metMonTool
.
NameSuffix
=
"
Refined_cut80
"
#if triggerName != "":
# metMonTool.NameSuffix += "_"+triggerName
metMonTool
.
metKeys
=
[
"
MET_RefEle
"
,
"
MET_RefGamma
"
,
"
MET_RefTau
"
,
"
MET_RefJet
"
,
"
MET_Muon
"
,
"
MET_PVSoftTrk
"
,
"
MET_SoftClus
"
,
"
MET_RefFinal
"
]
metMonTool
.
metFinKey
=
""
metMonTool
.
metCalKey
=
""
metMonTool
.
jetColKey
=
"
AntiKt4LCTopoJets
"
metMonTool
.
eleColKey
=
""
metMonTool
.
muoColKey
=
""
metMonTool
.
doMetCut80
=
True
metMonTool
.
metCut
=
80.0
# metMonTool.TriggerChain = trigger
# metMonTool.FilterTools += [GetFilledBunchFilterTool()]
metMonTool
.
FilterTools
+=
[
GetLArBadLBFilterTool
()]
if
trigger
!=
""
:
metMonTool
.
TrigDecisionTool
=
monTrigDecTool
#ToolSvc += metMonTool
monManETmiss
.
AthenaMonTools
+=
[
metMonTool
]
# Tool for calorimetric MET monitoring
metMonTool
=
METMonTool
(
name
=
"
METMonTool_Calo_cut80_
"
+
triggerName
)
metMonTool
.
NameSuffix
=
"
Calo_cut80
"
metMonTool
.
metKeys
=
[
"
MET_Topo
"
,
"
MET_LocHadTopo
"
]
metMonTool
.
metFinKey
=
""
metMonTool
.
metCalKey
=
""
metMonTool
.
jetColKey
=
"
AntiKt4LCTopoJets
"
metMonTool
.
eleColKey
=
""
metMonTool
.
muoColKey
=
""
metMonTool
.
doMetCut80
=
True
metMonTool
.
metCut
=
80.0
#metMonTool.TriggerChain = trigger
metMonTool
.
FilterTools
+=
[
GetFilledBunchFilterTool
()]
metMonTool
.
FilterTools
+=
[
GetLArBadLBFilterTool
()]
if
trigger
!=
""
:
metMonTool
.
TrigDecisionTool
=
monTrigDecTool
#ToolSvc += metMonTool
monManETmiss
.
AthenaMonTools
+=
[
metMonTool
]
# Monitoring for Random trigger
# If trigger is off, run anyway without trigger (useful for Random stream)
if
DQMonFlags
.
useTrigger
():
trigger
=
"
L1_RD0_EMPTY
"
else
:
trigger
=
""
#
# Tool for calorimeter term monitoring (TopoClusters)
metMonTool
=
METMonTool
(
name
=
"
METMonTool_Topo
"
)
metMonTool
.
NameSuffix
=
"
Topo
"
metMonTool
.
metKeys
=
[]
metMonTool
.
metFinKey
=
"
MET_Topo
"
#metMonTool.metCalKey = "MET_Topo"
metMonTool
.
metCalKey
=
""
metMonTool
.
jetColKey
=
"
AntiKt4LCTopoJets
"
metMonTool
.
eleColKey
=
""
metMonTool
.
muoColKey
=
""
metMonTool
.
doMetCut80
=
False
metMonTool
.
nEtBins
=
100
metMonTool
.
EtRange
=
10.0
metMonTool
.
SumEtRangeFactor
=
2.0
metMonTool
.
FillNegativeSumEt
=
True
metMonTool
.
TriggerChain
=
trigger
if
trigger
!=
""
:
metMonTool
.
TrigDecisionTool
=
monTrigDecTool
#ToolSvc += metMonTool
monManETmiss
.
AthenaMonTools
+=
[
metMonTool
]
# Tool for calorimeter term monitoring (TopoClusters) cut80
metMonTool
=
METMonTool
(
name
=
"
METMonTool_Topo_cut80
"
)
#metMonTool.NameSuffix = "Topo_cut80"
metMonTool
.
NameSuffix
=
"
cut80
"
metMonTool
.
metKeys
=
[]
metMonTool
.
metFinKey
=
"
MET_Topo
"
metMonTool
.
metCalKey
=
"
MET_Topo
"
metMonTool
.
jetColKey
=
"
AntiKt4LCTopoJets
"
metMonTool
.
eleColKey
=
""
metMonTool
.
muoColKey
=
""
metMonTool
.
doMetCut80
=
True
metMonTool
.
metCut
=
80.0
metMonTool
.
nEtBins
=
100
metMonTool
.
EtRange
=
10.0
metMonTool
.
SumEtRangeFactor
=
2.0
metMonTool
.
FillNegativeSumEt
=
True
#metMonTool.TriggerChain = trigger
#if trigger != "":
# metMonTool.TrigDecisionTool = monTrigDecTool
#ToolSvc += metMonTool
monManETmiss
.
AthenaMonTools
+=
[
metMonTool
]
## Tool for calorimeter term monitoring (2 sigma noise suppression)
#metMonTool = METMonTool(name = "METMonTool_Base")
#metMonTool.NameSuffix = "Base"
#metMonTool.metKeys = []
#metMonTool.metFinKey = "MET_Base"
#metMonTool.metCalKey = "MET_Base"
#metMonTool.jetColKey = "AntiKt4LCTopoJets"
#metMonTool.eleColKey = ""
#metMonTool.muoColKey = ""
#metMonTool.nEtBins = 100
#metMonTool.EtRange = 50.0
#metMonTool.SumEtRangeFactor = 2.0
#metMonTool.FillNegativeSumEt = True
#metMonTool.TriggerChain = trigger
#if trigger != "":
# metMonTool.TrigDecisionTool = monTrigDecTool
#ToolSvc += metMonTool
#monManETmiss.AthenaMonTools += [ metMonTool ]
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