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
05e52a64
Commit
05e52a64
authored
2 years ago
by
Markus Frank
Committed by
MarkusFrankATcernch
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Addendum to PR
https://github.com/AIDASoft/DD4hep/pull/1068
parent
5ee93223
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/Geant4Data.cpp
+2
-2
2 additions, 2 deletions
DDG4/src/Geant4Data.cpp
with
2 additions
and
2 deletions
DDG4/src/Geant4Data.cpp
+
2
−
2
View file @
05e52a64
...
...
@@ -130,9 +130,9 @@ Geant4Tracker::Hit::~Hit() {
/// Explicit assignment operation
void
Geant4Tracker
::
Hit
::
copyFrom
(
const
Hit
&
c
)
{
if
(
&
c
!=
this
)
{
energyDeposit
=
c
.
energyDeposit
;
position
=
c
.
position
;
momentum
=
c
.
momentum
;
deposit
=
c
.
deposit
;
length
=
c
.
length
;
truth
=
c
.
truth
;
}
...
...
@@ -142,7 +142,7 @@ void Geant4Tracker::Hit::copyFrom(const Hit& c) {
Geant4Tracker
::
Hit
&
Geant4Tracker
::
Hit
::
clear
()
{
position
.
SetXYZ
(
0
,
0
,
0
);
momentum
.
SetXYZ
(
0
,
0
,
0
);
d
eposit
=
0.0
;
energyD
eposit
=
0.0
;
length
=
0.0
;
truth
.
clear
();
return
*
this
;
...
...
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