Commit 84801ddf authored by Wouter Deconinck's avatar Wouter Deconinck
Browse files

More missing energy -> energyDeposit

parent f6497dff
Pipeline #27865 passed with stages
in 1 minute and 30 seconds
......@@ -23,7 +23,7 @@ PMTHit& PMTHit::operator=(const PMTHit& c) {
momentum = c.momentum;
length = c.length;
truth = c.truth;
energy = c.energy;
energyDeposit = c.energyDeposit;
}
return *this;
}
......@@ -32,7 +32,7 @@ PMTHit& PMTHit::operator=(const PMTHit& c) {
PMTHit& PMTHit::clear() {
position.SetXYZ(0, 0, 0);
momentum.SetXYZ(0, 0, 0);
energy = 0.0;
energyDeposit = 0.0;
length = 0.0;
truth.clear();
return *this;
......@@ -51,6 +51,6 @@ PMTHit& PMTHit::storePoint(const G4Step* step, const G4StepPoint* pnt) {
position.SetXYZ(pos.x(), pos.y(), pos.z());
momentum.SetXYZ(mom.x(), mom.y(), mom.z());
length = 0;
energy = pnt->GetTotalEnergy();
energyDeposit = pnt->GetTotalEnergy();
return *this;
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment