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
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
John Derek Chapman
athena
Commits
892ec8a3
Commit
892ec8a3
authored
1 week ago
by
John Chapman
Browse files
Options
Downloads
Patches
Plain Diff
Migrate MCTruthClassifier to use TruthUtils PDG ID helper functions
parent
823fbdd2
No related branches found
No related tags found
No related merge requests found
Pipeline
#11041576
passed
1 week ago
Stage: external
Changes
2
Pipelines
1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
PhysicsAnalysis/MCTruthClassifier/Root/MCRecoToTruth.cxx
+2
-2
2 additions, 2 deletions
PhysicsAnalysis/MCTruthClassifier/Root/MCRecoToTruth.cxx
PhysicsAnalysis/MCTruthClassifier/Root/MCTruthClassifierGen.cxx
+158
-156
158 additions, 156 deletions
...sAnalysis/MCTruthClassifier/Root/MCTruthClassifierGen.cxx
with
160 additions
and
158 deletions
PhysicsAnalysis/MCTruthClassifier/Root/MCRecoToTruth.cxx
+
2
−
2
View file @
892ec8a3
/*
/*
Copyright (C) 2002-202
4
CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-202
5
CERN for the benefit of the ATLAS collaboration
*/
*/
#ifndef GENERATIONBASE
#ifndef GENERATIONBASE
...
@@ -230,7 +230,7 @@ MCTruthClassifier::getGenPart(const xAOD::TrackParticle* trk, MCTruthPartClassif
...
@@ -230,7 +230,7 @@ MCTruthClassifier::getGenPart(const xAOD::TrackParticle* trk, MCTruthPartClassif
ATH_MSG_DEBUG
(
"track matched to the truth with status "
<<
theGenParticle
->
status
());
ATH_MSG_DEBUG
(
"track matched to the truth with status "
<<
theGenParticle
->
status
());
}
}
if
(
MC
::
isDecayed
(
theGenParticle
)
&&
(
std
::
abs
(
theGenParticle
->
pdgId
())
==
11
||
std
::
abs
(
theGenParticle
->
pdgId
())
==
13
))
{
if
(
MC
::
isDecayed
(
theGenParticle
)
&&
(
MC
::
isElectron
(
theGenParticle
)
||
MC
::
isMuon
(
theGenParticle
)
))
{
const
xAOD
::
TruthVertex
*
EndVrtx
=
theGenParticle
->
decayVtx
();
const
xAOD
::
TruthVertex
*
EndVrtx
=
theGenParticle
->
decayVtx
();
const
xAOD
::
TruthParticle
*
theGenPartTmp
(
nullptr
);
const
xAOD
::
TruthParticle
*
theGenPartTmp
(
nullptr
);
...
...
This diff is collapsed.
Click to expand it.
PhysicsAnalysis/MCTruthClassifier/Root/MCTruthClassifierGen.cxx
+
158
−
156
View file @
892ec8a3
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