Skip to content
Snippets Groups Projects
Commit 05e52a64 authored by Markus Frank's avatar Markus Frank Committed by MarkusFrankATcernch
Browse files
parent 5ee93223
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment