-
Notifications
You must be signed in to change notification settings - Fork 624
[PWGEM/Dilepton] add a beta histogram in dileptonPolarization.cxx #14056
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
Conversation
|
O2 linter results: ❌ 30 errors, |
alibuild
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Auto-approving on behalf of @dsekihat.
alibuild
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Auto-approving on behalf of @dsekihat.
| float px() const { return fPt * std::cos(fPhi); } | ||
| float py() const { return fPt * std::sin(fPhi); } | ||
| float pz() const { return fPt * std::sinh(fEta); } | ||
| float e() const { return std::sqrt(std::pow(fPt * std::cosh(fEta), 2) + std::pow(fMass, 2)); } // e2 = p2 + m2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could just use std::hypot or RecoDecay::e. Btw, all these calculations are available as RecoDecay methods.
PWGEM/Dilepton: add a beta histogram in dileptonPolarization.cxx