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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Lars Rickard Strom
athena
Commits
36924306
Commit
36924306
authored
5 years ago
by
Miha Muskinja
Browse files
Options
Downloads
Patches
Plain Diff
Tighten the requirement of particles subject to quasi-stable sim
parent
564a358c
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
Simulation/ISF/ISF_HepMC/ISF_HepMC_Tools/src/GenParticleSimWhiteList.cxx
+3
-3
3 additions, 3 deletions
...ISF_HepMC/ISF_HepMC_Tools/src/GenParticleSimWhiteList.cxx
with
3 additions
and
3 deletions
Simulation/ISF/ISF_HepMC/ISF_HepMC_Tools/src/GenParticleSimWhiteList.cxx
+
3
−
3
View file @
36924306
/*
Copyright (C) 2002-201
7
CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-201
9
CERN for the benefit of the ATLAS collaboration
*/
///////////////////////////////////////////////////////////////////
...
...
@@ -105,7 +105,7 @@ bool ISF::GenParticleSimWhiteList::pass(const HepMC::GenParticle& particle , std
// See if the particle is in the white list
bool
passFilter
=
std
::
binary_search
(
m_pdgId
.
begin
()
,
m_pdgId
.
end
()
,
particle
.
pdg_id
()
)
||
MC
::
PID
::
isNucleus
(
particle
.
pdg_id
()
);
// Remove documentation particles
passFilter
=
passFilter
&&
particle
.
status
()
!=
3
;
passFilter
=
passFilter
&&
particle
.
status
()
<
3
;
// Test all daughter particles
if
(
particle
.
end_vertex
()
&&
m_qs
&&
passFilter
){
// Break loops
...
...
@@ -121,7 +121,7 @@ bool ISF::GenParticleSimWhiteList::pass(const HepMC::GenParticle& particle , std
}
// Loop over daughters
}
// Break loops
}
// particle had daughters
else
if
(
!
particle
.
end_vertex
()
&&
!
passFilter
&&
particle
.
status
()
!=
3
)
{
// no daughters... No end vertex... Check if this isn't trouble
else
if
(
!
particle
.
end_vertex
()
&&
!
passFilter
&&
particle
.
status
()
<
3
)
{
// no daughters... No end vertex... Check if this isn't trouble
ATH_MSG_ERROR
(
"Found a particle with no end vertex that does not appear in the white list."
);
ATH_MSG_ERROR
(
"This is VERY likely pointing to a problem with either the configuration you "
);
ATH_MSG_ERROR
(
"are using, or a bug in the generator. Either way it should be fixed. The"
);
...
...
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