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
f70d2d01
Commit
f70d2d01
authored
2 weeks ago
by
John Chapman
Browse files
Options
Downloads
Patches
Plain Diff
MCTruthClassifier PDG ID values should be int rather than long int.
parent
f08ce914
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#11016163
passed
1 week ago
Stage: external
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
PhysicsAnalysis/MCTruthClassifier/Root/MCTruthClassifierGen.cxx
+7
-7
7 additions, 7 deletions
...sAnalysis/MCTruthClassifier/Root/MCTruthClassifierGen.cxx
with
7 additions
and
7 deletions
PhysicsAnalysis/MCTruthClassifier/Root/MCTruthClassifierGen.cxx
+
7
−
7
View file @
f70d2d01
/*
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
*/
/*
...
...
@@ -268,7 +268,7 @@ ParticleOrigin MCTruthClassifier::defOrigOfElectron(const xAOD::TruthParticleCon
//
if
((
abs
(
motherPDG
)
==
13
||
abs
(
motherPDG
)
==
15
||
abs
(
motherPDG
)
==
24
)
&&
mothOriVert
!=
nullptr
&&
!
samePart
)
{
long
pPDG
(
0
);
int
pPDG
(
0
);
const
xAOD
::
TruthParticle
*
MotherParent
(
nullptr
);
do
{
pPDG
=
0
;
...
...
@@ -562,7 +562,7 @@ ParticleOrigin MCTruthClassifier::defOrigOfMuon(const xAOD::TruthParticleContain
int
motherPDG
=
mother
->
pdgId
();
if
((
MC
::
isTau
(
motherPDG
)
||
MC
::
isW
(
motherPDG
))
&&
mothOriVert
!=
nullptr
)
{
long
pPDG
(
0
);
int
pPDG
(
0
);
const
xAOD
::
TruthParticle
*
MotherParent
(
nullptr
);
do
{
//
...
...
@@ -799,7 +799,7 @@ ParticleOrigin MCTruthClassifier::defOrigOfTau(const xAOD::TruthParticleContaine
if
(
MC
::
isW
(
motherPDG
)
&&
mothOriVert
!=
nullptr
)
{
MotherParent
=
MC
::
findMother
(
mother
);
long
pPDG
(
0
);
int
pPDG
(
0
);
if
(
MotherParent
)
{
//MotherParent checked here...
pPDG
=
MotherParent
->
pdgId
();
...
...
@@ -988,7 +988,7 @@ ParticleOrigin MCTruthClassifier::defOrigOfPhoton(const xAOD::TruthParticleConta
int
NumOfTau
(
0
);
int
NumOfPht
(
0
);
int
NumOfLQ
(
0
);
long
DaugType
(
0
);
int
DaugType
(
0
);
long
NumOfLep
(
0
);
long
NumOfNeut
(
0
);
long
NumOfPartons
(
0
);
...
...
@@ -1023,7 +1023,7 @@ ParticleOrigin MCTruthClassifier::defOrigOfPhoton(const xAOD::TruthParticleConta
!
(
Daug
&&
info
&&
info
->
Mother
()
&&
HepMC
::
is_same_generator_particle
(
Daug
,
info
->
Mother
()))
&&
mothOriVert
!=
nullptr
&&
mothOriVert
->
nIncomingParticles
()
==
1
)
{
int
itr
=
0
;
long
PartPDG
=
0
;
int
PartPDG
=
0
;
const
xAOD
::
TruthVertex
*
prodVert
=
mothOriVert
;
const
xAOD
::
TruthVertex
*
Vert
=
nullptr
;
do
{
...
...
@@ -1238,7 +1238,7 @@ MCTruthClassifier::defOrigOfNeutrino(const xAOD::TruthParticleContainer* mcTruth
//
if
((
abs
(
motherPDG
)
==
nuFlav
||
abs
(
motherPDG
)
==
15
||
MC
::
isW
(
motherPDG
))
&&
mothOriVert
!=
nullptr
&&
!
samePart
)
{
long
pPDG
(
0
);
int
pPDG
(
0
);
const
xAOD
::
TruthParticle
*
MotherParent
(
nullptr
);
do
{
pPDG
=
0
;
...
...
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