Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DD4hep
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cepc
externals
mirroring
DD4hep
Commits
532f5e10
Commit
532f5e10
authored
4 years ago
by
Andre Sailer
Committed by
Marko Petric
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Geant4InputHandling: add debug printout for particle selection/rejection
parent
557f30bd
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
DDG4/src/Geant4InputHandling.cpp
+7
-0
7 additions, 0 deletions
DDG4/src/Geant4InputHandling.cpp
with
7 additions
and
0 deletions
DDG4/src/Geant4InputHandling.cpp
+
7
−
0
View file @
532f5e10
...
...
@@ -391,6 +391,13 @@ getRelevant(set<int>& visited,
or
(
primaryConfig
.
m_rejectPDGs
.
count
(
abs
(
p
->
pdgID
))
!=
0
)
// quarks, gluon, "strings", W, Z etc.
or
(
isProperTimeZero
and
p
.
definition
()
->
GetPDGStable
()
)
// initial state electrons, etc.
or
(
isProperTimeZero
and
primaryConfig
.
m_zeroTimePDGs
.
count
(
abs
(
p
->
pdgID
))
!=
0
)
;
// charged 'documentation' leptons, e.g. in lepton pairs w/ FSR
printout
(
dd4hep
::
DEBUG
,
"Input"
,
"Checking rejection: PDG(%-*d), Definition(%s), isProperTimeZero(%s), stable(%s), reject(%s)"
,
8
,
p
->
pdgID
,
p
.
definition
()
?
"true"
:
"false"
,
isProperTimeZero
?
"true"
:
"false"
,
(
bool
(
p
.
definition
())
?
p
.
definition
()
->
GetPDGStable
()
:
false
)
?
"true"
:
"false"
,
rejectParticle
?
"true"
:
"false"
);
if
(
not
rejectParticle
)
{
map
<
int
,
G4PrimaryParticle
*>::
iterator
ip4
=
prim
.
find
(
p
->
id
);
G4PrimaryParticle
*
p4
=
(
ip4
==
prim
.
end
())
?
0
:
(
*
ip4
).
second
;
...
...
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