Skip to content

Commit

Permalink
Replaced magic number in BTOFChargeSharing with the correct unit.
Browse files Browse the repository at this point in the history
  • Loading branch information
ssedd1123 committed Nov 1, 2024
1 parent 576055c commit 232a3ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/algorithms/digi/BTOFChargeSharing.cc
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ void BTOFChargeSharing::process(const BTOFChargeSharing::Input& input,
double time = hit.getTime();
auto momentum = hit.getMomentum();
auto truePos = hit.getPosition();
auto localPos_hit = this -> _global2Local(dd4hep::Position(truePos.x / 10., truePos.y / 10., truePos.z / 10.));
auto localPos_hit = this -> _global2Local(dd4hep::Position(truePos.x*dd4hep::mm, truePos.y*dd4hep::mm, truePos.z*dd4hep::mm));

for(const auto neighbor : *neighbors) {
// integrate over neighbor area to get total energy deposition
Expand Down

0 comments on commit 232a3ef

Please sign in to comment.