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
Alessandro Sala
athena
Commits
cc71c2d1
Commit
cc71c2d1
authored
5 years ago
by
Miha Muskinja
Browse files
Options
Downloads
Patches
Plain Diff
more verbose printout in GenParticleSimWhiteList to help with QS sim debugging
parent
683d8474
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
+9
-2
9 additions, 2 deletions
...ISF_HepMC/ISF_HepMC_Tools/src/GenParticleSimWhiteList.cxx
with
9 additions
and
2 deletions
Simulation/ISF/ISF_HepMC/ISF_HepMC_Tools/src/GenParticleSimWhiteList.cxx
+
9
−
2
View file @
cc71c2d1
...
...
@@ -68,6 +68,9 @@ StatusCode ISF::GenParticleSimWhiteList::initialize()
/** passes through to the private version of the filter */
bool
ISF
::
GenParticleSimWhiteList
::
pass
(
const
HepMC
::
GenParticle
&
particle
)
const
{
ATH_MSG_VERBOSE
(
"Checking whether "
<<
particle
<<
" passes the filter."
);
static
std
::
vector
<
int
>
vertices
(
500
);
vertices
.
clear
();
bool
so_far_so_good
=
pass
(
particle
,
vertices
);
...
...
@@ -81,6 +84,8 @@ bool ISF::GenParticleSimWhiteList::pass(const HepMC::GenParticle& particle) cons
// Check this particle
vertices
.
clear
();
bool
parent_all_clear
=
pass
(
**
it
,
vertices
);
ATH_MSG_VERBOSE
(
"Parent all clear: "
<<
parent_all_clear
<<
"
\n
If true, will not pass the daughter because it should have been picked up through the parent already (to avoid multi-counting)."
);
so_far_so_good
=
so_far_so_good
&&
!
parent_all_clear
;
}
// Loop over parents
}
// particle had parents
...
...
@@ -95,7 +100,6 @@ bool ISF::GenParticleSimWhiteList::pass(const HepMC::GenParticle& particle , std
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
;
// Test all daughter particles
if
(
particle
.
end_vertex
()
&&
m_qs
&&
passFilter
){
// Break loops
...
...
@@ -104,7 +108,10 @@ bool ISF::GenParticleSimWhiteList::pass(const HepMC::GenParticle& particle , std
for
(
HepMC
::
GenVertex
::
particle_iterator
it
=
particle
.
end_vertex
()
->
particles_begin
(
HepMC
::
children
);
it
!=
particle
.
end_vertex
()
->
particles_end
(
HepMC
::
children
);
++
it
){
passFilter
=
passFilter
&&
pass
(
**
it
,
used_vertices
);
if
(
!
passFilter
)
break
;
if
(
!
passFilter
)
{
ATH_MSG_VERBOSE
(
"Daughter particle "
<<
**
it
<<
" does not pass."
);
break
;
}
}
// Loop over daughters
}
// Break loops
}
// particle had daughters
...
...
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