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
f1182f50
Commit
f1182f50
authored
6 years ago
by
Frank Gaede
Committed by
Marko Petric
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
fix bug in input handling and relnotes v01-17-01
parent
9d2ca63e
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
DDG4/src/Geant4InputHandling.cpp
+3
-1
3 additions, 1 deletion
DDG4/src/Geant4InputHandling.cpp
doc/ReleaseNotes.md
+6
-0
6 additions, 0 deletions
doc/ReleaseNotes.md
with
9 additions
and
1 deletion
DDG4/src/Geant4InputHandling.cpp
+
3
−
1
View file @
f1182f50
...
...
@@ -384,10 +384,12 @@ getRelevant(set<int>& visited,
double
proper_time_Precision
=
pow
(
10.
,
-
DBL_DIG
)
*
me
*
fmax
(
fabs
(
p
->
time
),
fabs
(
dp
->
time
));
bool
isProperTimeZero
=
(
proper_time
<=
proper_time_Precision
);
const
std
::
set
<
int
>
leptonPDGs
{
11
,
13
,
15
,
17
};
// -- remove original if ---
bool
rejectParticle
=
not
p
.
definition
()
// completely unknown to geant4
or
(
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
p
.
definition
()
->
GetPDGStable
()
)
// initial state electrons, etc.
or
(
isProperTimeZero
and
leptonPDGs
.
count
(
abs
(
p
->
pdgID
))
!=
0
)
;
// charged 'documentation' leptons, e.g. in lepton pairs w/ FSR
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.
doc/ReleaseNotes.md
+
6
−
0
View file @
f1182f50
# v01-07-01
*
2018-05-17 Frank Gaede
-
fix bug in input handling, for details see discussion
[
#387
](
https://github.com/AIDASoft/DD4hep/issues/387
)
-
exclude leptons with zero lifetime from Geant4
# v01-07
*
2018-03-26 Javier Cervantes Villanueva (
[
PR#343
](
https://github.com/AIDASoft/DD4hep/pull/343
)
)
...
...
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