Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions PWGCF/FemtoUniverse/Core/FemtoUniverseMath.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

#include "Math/Boost.h"
#include "Math/Vector4D.h"
#include "TLorentzVector.h"

Check failure on line 24 in PWGCF/FemtoUniverse/Core/FemtoUniverseMath.h

View workflow job for this annotation

GitHub Actions / O2 linter

[root/lorentz-vector]

Do not use the TLorentzVector legacy class. Use std::array with RecoDecay methods or the ROOT::Math::LorentzVector template instead.
#include "TMath.h"

#include <algorithm>
Expand Down Expand Up @@ -269,11 +269,11 @@
const double mRS = (y1_lcms - y2_lcms) / 0.197327;
const double mRL = (z1_lcms - z2_lcms) / 0.197327;
const double mDT = (t1_lcms - t2_lcms) / 0.197327;
const double rOutPRF = gammaOut * (mRO - betaOut * mDT);
const double rOutPRF = gammaOut * (mRO - betaOut * mDT);

const double phase_inv = fDKOutPRF * mROut + fDKSidePRF * mRS + fDKLongPRF * mRL;
double quantumweight = 1.0 + TMath::Cos(2.0*phase_inv);
double quantumweight = 1.0 + TMath::Cos(2.0 * phase_inv);

vect.push_back(quantumweight);
} else {
vect.push_back(1.0);
Expand Down
Loading