diff --git a/DDG4/src/Geant4Data.cpp b/DDG4/src/Geant4Data.cpp index 9d3ac7bd428145fb157f9e93c71059b1a41e01d4..e6f6e7bf5f6af2cbaf7777ce4f641eef57a7a0ab 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;