Skip to content

Commit 6ffeccf

Browse files
committed
Fix: fix code check errors
1 parent 01e6d3f commit 6ffeccf

3 files changed

Lines changed: 3 additions & 4 deletions

File tree

‎PWGCF/Femto/Core/femtoMath.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131

3232
#include <algorithm>
3333
#include <cmath>
34+
#include <cstddef>
3435
#include <tuple>
3536
#include <vector>
3637

‎PWGCF/Femto/Core/pairHistManager.h‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,11 @@
3030
#include <Framework/HistogramSpec.h>
3131
#include <Framework/Logger.h>
3232

33-
#include <Math/Vector3D.h> // IWYU pragma: keep (do not replace with Math/Vector3Dfwd.h)
34-
#include <Math/Vector3Dfwd.h>
3533
#include <Math/Vector4D.h> // IWYU pragma: keep (do not replace with Math/Vector4Dfwd.h)
3634
#include <Math/Vector4Dfwd.h>
3735
#include <TH1.h>
3836
#include <TH3.h>
3937

40-
#include <algorithm>
4138
#include <array>
4239
#include <cmath>
4340
#include <complex>

‎PWGCF/Femto/Core/tripletHistManager.h‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
#include <Math/Vector4D.h> // IWYU pragma: keep (do not replace with Math/Vector4Dfwd.h)
3030
#include <Math/Vector4Dfwd.h>
3131

32-
#include <algorithm>
3332
#include <array>
3433
#include <cmath>
3534
#include <cstdint>
@@ -847,6 +846,8 @@ class TripletHistManager
847846

848847
float getMt(ROOT::Math::PtEtaPhiMVector const& part1, ROOT::Math::PtEtaPhiMVector const& part2, ROOT::Math::PtEtaPhiMVector const& part3)
849848
{
849+
// all three pairwise combinations are intentional, not a mixed-up argument order
850+
// NOLINTNEXTLINE(readability-suspicious-call-argument)
850851
return (femtomath::getMt(part1, part2, mMtType) + femtomath::getMt(part2, part3, mMtType) + femtomath::getMt(part1, part3, mMtType)) / 3.f;
851852
}
852853

0 commit comments

Comments
 (0)