From 05e52a6482851f12f57833729157978edf852a37 Mon Sep 17 00:00:00 2001 From: Markus Frank <Markus.Frank@cern.ch> Date: Wed, 1 Mar 2023 19:28:39 +0100 Subject: [PATCH] Addendum to PR https://github.com/AIDASoft/DD4hep/pull/1068 --- DDG4/src/Geant4Data.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DDG4/src/Geant4Data.cpp b/DDG4/src/Geant4Data.cpp index 9d3ac7bd4..e6f6e7bf5 100644 --- a/DDG4/src/Geant4Data.cpp +++ b/DDG4/src/Geant4Data.cpp @@ -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); - deposit = 0.0; + energyDeposit = 0.0; length = 0.0; truth.clear(); return *this; -- GitLab