Skip to content

Commit

Permalink
Merge pull request #194 from brownd1978/qfix
Browse files Browse the repository at this point in the history
Fix sign bug
  • Loading branch information
brownd1978 authored Sep 18, 2024
2 parents 47f4701 + 3fef8b2 commit 3b2e0b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Trajectory/LoopHelix.hh
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ namespace KinKal {
double momentumVariance(double time=0) const;
double positionVariance(double time,MomBasis::Direction dir) const;
PMAT planeCovariance(double time,Plane const& plane) const;
double energy(double time=0) const { return ebar()*Q(); }
double energy(double time=0) const { return fabs(ebar()*Q()); }
VEC3 direction(double time, MomBasis::Direction mdir= MomBasis::momdir_) const;
double mass() const { return mass_;} // mass
int charge() const { return charge_;} // charge in proton charge units
Expand Down

0 comments on commit 3b2e0b7

Please sign in to comment.