Skip to content
Merged
Show file tree
Hide file tree
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
1 change: 0 additions & 1 deletion PWGEM/PhotonMeson/Core/V0PhotonCut.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
#include <Framework/HistogramSpec.h>
#include <Framework/Logger.h>

#include <Math/Vector3D.h> // IWYU pragma: keep
#include <TH2.h>
#include <TNamed.h>

Expand Down Expand Up @@ -891,12 +890,12 @@
float z = v0.vz(); // cm, measured secondary vertex of gamma->ee

float rxy = std::sqrt(x * x + y * y);
if (rxy < 7.0 || 14.0 < rxy) {

Check failure on line 893 in PWGEM/PhotonMeson/Core/V0PhotonCut.h

View workflow job for this annotation

GitHub Actions / O2 linter

[magic-number]

Avoid magic numbers in expressions. Assign the value to a clearly named variable or constant.
return false;
}

// r = 0.192 * z + 8.88 (cm) expected wire position in RZ plane.TMath::Tan(10.86 * o2::constants::math::Deg2Rad) = 0.192
if (rxy > 0.192 * z + 14.0) { // upper limit

Check failure on line 898 in PWGEM/PhotonMeson/Core/V0PhotonCut.h

View workflow job for this annotation

GitHub Actions / O2 linter

[magic-number]

Avoid magic numbers in expressions. Assign the value to a clearly named variable or constant.
return false;
}

Expand Down
4 changes: 0 additions & 4 deletions PWGEM/PhotonMeson/Utils/EMPhoton.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,7 @@
#ifndef PWGEM_PHOTONMESON_UTILS_EMPHOTON_H_
#define PWGEM_PHOTONMESON_UTILS_EMPHOTON_H_

#include <Math/Vector4D.h> // IWYU pragma: keep (do not replace with Math/Vector4Dfwd.h)
#include <Math/Vector4Dfwd.h>

#include <cmath>
#include <cstdint>

#include <math.h>

Expand Down
Loading