Skip to content

Commit f91e499

Browse files
author
fbattist
committed
Small fix to units
1 parent 64b8e48 commit f91e499

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/analysis.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ void RecoFromTrack(particle& p)
175175
double r0z = p.tr.z0 - p.tr.zc;
176176
double r0y = p.tr.y0 - p.tr.yc;
177177

178-
double mom_yz = constant::k * p.tr.r * ecal::Bfield::B;
178+
double mom_yz = constant::k * p.tr.r * ecal::Bfield::B * conversion::GeV_to_MeV;
179179
double ang_yz = TMath::ATan2(r0z, -r0y);
180180
double ang_x = 0.5 * TMath::Pi() - TMath::ATan(1. / p.tr.b);
181181

0 commit comments

Comments
 (0)