Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue in boost() #244

Open
ajueid opened this issue Feb 12, 2024 · 2 comments
Open

Issue in boost() #244

ajueid opened this issue Feb 12, 2024 · 2 comments
Labels
🐛bug Something isn't working

Comments

@ajueid
Copy link

ajueid commented Feb 12, 2024

System Settings

All operating systems

Describe the bug

There was a problem with void boost(MALorentzVector &p) {} (Line 146 in MABoost.h). The old function does not properly boost the Lorentz vector. Below you can find a fix

void boost(MALorentzVector &p) const
{
MAdouble64 bp = bx_ * p.X() + by_ * p.Y() + bz_ * p.Z();
p.SetX(p.X() - gamma_ * bx_ * p.T() + (gamma_ - 1) * bx_ * bp / b2_);
p.SetY(p.Y() - gamma_ * by_ * p.T() + (gamma_ - 1) * by_ * bp / b2_);
p.SetZ(p.Z() - gamma_ * bz_ * p.T() + (gamma_ - 1) * bz_ * bp / b2_);
p.SetT(gamma_ * (p.T() - bp));
}

To Reproduce

All modes

Expected behaviour

No response

Log files

No response

Additional information

No response

@ajueid ajueid added the 🐛bug Something isn't working label Feb 12, 2024
@jackaraz
Copy link
Member

Hi @ajueid, could you explain what the problem is?

@BFuks
Copy link
Member

BFuks commented Feb 13, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants