Skip to content
Merged
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
2 changes: 1 addition & 1 deletion PWGCF/FemtoWorld/Core/FemtoWorldMath.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@

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

Check failure on line 22 in PWGCF/FemtoWorld/Core/FemtoWorldMath.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 <iostream>

Check failure on line 25 in PWGCF/FemtoWorld/Core/FemtoWorldMath.h

View workflow job for this annotation

GitHub Actions / O2 linter

[include-iostream]

Do not include iostream. Use O2 logging instead.

namespace o2::analysis::femtoWorld
{
Expand Down Expand Up @@ -50,8 +50,8 @@
const float betay = beta * std::sin(trackSum.Phi()) * std::sin(trackSum.Theta());
const float betaz = beta * std::cos(trackSum.Theta());

ROOT::Math::PxPyPzMVector PartOneCMS(vecpart1);

Check failure on line 53 in PWGCF/FemtoWorld/Core/FemtoWorldMath.h

View workflow job for this annotation

GitHub Actions / O2 linter

[name/function-variable]

Use lowerCamelCase for names of functions and variables.
ROOT::Math::PxPyPzMVector PartTwoCMS(vecpart2);

Check failure on line 54 in PWGCF/FemtoWorld/Core/FemtoWorldMath.h

View workflow job for this annotation

GitHub Actions / O2 linter

[name/function-variable]

Use lowerCamelCase for names of functions and variables.

const ROOT::Math::Boost boostPRF = ROOT::Math::Boost(-betax, -betay, -betaz);
PartOneCMS = boostPRF(PartOneCMS);
Expand Down Expand Up @@ -93,9 +93,9 @@
template <typename T>
static float getQ3(const T& part1, const float mass1, const T& part2, const float mass2, const T& part3, const float mass3)
{
float E1 = sqrt(pow(part1.px(), 2) + pow(part1.py(), 2) + pow(part1.pz(), 2) + pow(mass1, 2));

Check failure on line 96 in PWGCF/FemtoWorld/Core/FemtoWorldMath.h

View workflow job for this annotation

GitHub Actions / O2 linter

[name/function-variable]

Use lowerCamelCase for names of functions and variables.

Check failure on line 96 in PWGCF/FemtoWorld/Core/FemtoWorldMath.h

View workflow job for this annotation

GitHub Actions / O2 linter

[std-prefix]

Use std:: prefix for names from the std namespace.
float E2 = sqrt(pow(part2.px(), 2) + pow(part2.py(), 2) + pow(part2.pz(), 2) + pow(mass2, 2));

Check failure on line 97 in PWGCF/FemtoWorld/Core/FemtoWorldMath.h

View workflow job for this annotation

GitHub Actions / O2 linter

[name/function-variable]

Use lowerCamelCase for names of functions and variables.

Check failure on line 97 in PWGCF/FemtoWorld/Core/FemtoWorldMath.h

View workflow job for this annotation

GitHub Actions / O2 linter

[std-prefix]

Use std:: prefix for names from the std namespace.
float E3 = sqrt(pow(part3.px(), 2) + pow(part3.py(), 2) + pow(part3.pz(), 2) + pow(mass3, 2));

Check failure on line 98 in PWGCF/FemtoWorld/Core/FemtoWorldMath.h

View workflow job for this annotation

GitHub Actions / O2 linter

[std-prefix]

Use std:: prefix for names from the std namespace.

const ROOT::Math::PxPyPzEVector vecpart1(part1.px(), part1.py(), part1.pz(), E1);
const ROOT::Math::PxPyPzEVector vecpart2(part2.px(), part2.py(), part2.pz(), E2);
Expand All @@ -107,7 +107,7 @@

float Q32 = q12.M2() + q23.M2() + q31.M2();

return sqrt(-Q32);

Check failure on line 110 in PWGCF/FemtoWorld/Core/FemtoWorldMath.h

View workflow job for this annotation

GitHub Actions / O2 linter

[std-prefix]

Use std:: prefix for names from the std namespace.
}

/// Compute the transverse momentum of a pair of particles
Expand Down Expand Up @@ -140,4 +140,4 @@

} // namespace o2::analysis::femtoWorld

#endif // PWGCF_FEMTOWORLD_CORE_FEMTOWORLDMATH_H_
#endif // PWGCF_FEMTOWORLD_CORE_FEMTOWORLDMATH_H_
Loading