Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
athena
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
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
Davide Di Croce
athena
Commits
0d826917
Commit
0d826917
authored
11 months ago
by
Thomas Strebler
Committed by
Edward Moyse
11 months ago
Browse files
Options
Downloads
Patches
Plain Diff
Fixes for TauAntiTauJetOverlapTool
Fixes for TauAntiTauJetOverlapTool
parent
023d47a7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
PhysicsAnalysis/AnalysisCommon/AssociationUtils/Root/TauAntiTauJetOverlapTool.cxx
+23
-12
23 additions, 12 deletions
...Common/AssociationUtils/Root/TauAntiTauJetOverlapTool.cxx
with
23 additions
and
12 deletions
PhysicsAnalysis/AnalysisCommon/AssociationUtils/Root/TauAntiTauJetOverlapTool.cxx
+
23
−
12
View file @
0d826917
...
...
@@ -114,6 +114,15 @@ namespace ORUtils
m_decHelper
->
initializeDecorations
(
taus
);
m_decHelper
->
initializeDecorations
(
jets
);
// Start by discarding all taus which are not ID or anti-ID
for
(
const
auto
tau
:
taus
)
{
if
(
!
m_decHelper
->
isSurvivingObject
(
*
tau
))
continue
;
if
(
isSurvivingTau
(
*
tau
))
continue
;
if
(
isSurvivingAntiTau
(
*
tau
))
continue
;
// remove it with trivial overlap with itself
ATH_CHECK
(
handleOverlap
(
tau
,
tau
)
);
}
// Remove bjets overlapping with ID taus
int
ntaus
=
0
;
for
(
const
auto
tau
:
taus
)
{
...
...
@@ -134,6 +143,7 @@ namespace ORUtils
if
(
!
m_decHelper
->
isSurvivingObject
(
*
jet
))
continue
;
if
(
!
isBJet
(
*
jet
))
continue
;
for
(
const
auto
tau
:
taus
)
{
if
(
!
m_decHelper
->
isSurvivingObject
(
*
jet
))
continue
;
if
(
!
isSurvivingAntiTau
(
*
tau
))
continue
;
if
(
m_dRMatcher
->
objectsMatch
(
*
tau
,
*
jet
))
{
ATH_CHECK
(
handleOverlap
(
tau
,
jet
)
);
...
...
@@ -145,8 +155,8 @@ namespace ORUtils
int
antiTauCategory
=
0
;
static
const
SG
::
AuxElement
::
ConstAccessor
<
int
>
categoryAcc
(
m_antiTauEventCategoryDecorName
);
for
(
const
auto
tau
:
taus
)
{
if
(
!
m_decHelper
->
isSurvivingObject
(
*
tau
)
&&
!
isSurvivingAntiTau
(
*
tau
)
)
continue
;
if
(
!
m_decHelper
->
isSurvivingObject
(
*
tau
)
)
continue
;
if
(
!
isSurvivingAntiTau
(
*
tau
))
continue
;
nantitaus
++
;
antiTauCategory
=
categoryAcc
(
*
tau
);
}
...
...
@@ -163,20 +173,21 @@ namespace ORUtils
int
nSelectedAntitaus
=
0
;
int
idx
=
0
;
for
(
const
auto
tau
:
taus
)
{
if
(
!
m_decHelper
->
isSurvivingObject
(
*
tau
)
&&
!
isSurvivingAntiTau
(
*
tau
)
)
continue
;
if
(
idx
==
selIndex
&&
nSelectedAntitaus
<
nAntiTauMax
)
nSelectedAntitaus
++
;
else
{
// remove excess anti-taus by applying OR fail (it trivially overlaps with itself)
ATH_CHECK
(
handleOverlap
(
tau
,
tau
)
);
}
idx
++
;
if
(
!
m_decHelper
->
isSurvivingObject
(
*
tau
)
)
continue
;
if
(
!
isSurvivingAntiTau
(
*
tau
)
)
continue
;
if
(
idx
==
selIndex
&&
nSelectedAntitaus
<
nAntiTauMax
)
nSelectedAntitaus
++
;
else
{
// remove excess anti-taus by applying OR fail (it trivially overlaps with itself)
ATH_CHECK
(
handleOverlap
(
tau
,
tau
)
);
}
idx
++
;
}
}
// Remove light jets from remaining anti-taus.
for
(
const
auto
tau
:
taus
)
{
if
(
!
m_decHelper
->
isSurvivingObject
(
*
tau
)
&&
!
isSurvivingAntiTau
(
*
tau
)
)
continue
;
if
(
!
m_decHelper
->
isSurvivingObject
(
*
tau
)
)
continue
;
if
(
!
isSurvivingAntiTau
(
*
tau
))
continue
;
// if isSurviving
for
(
const
auto
jet
:
jets
)
{
if
(
!
m_decHelper
->
isSurvivingObject
(
*
jet
))
continue
;
...
...
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