From bb86e8161fcf77dfffaaa716966f11f07cc74537 Mon Sep 17 00:00:00 2001 From: jokonig Date: Thu, 8 Oct 2026 17:32:52 +0200 Subject: [PATCH] [PWGEM] Fix code check errors - Fix missing includes or remove unnecessary includes - Add safeguard to still use global using declaration (since its not a real header file, its okay to define using globally) - partially introduced in https://github.com/AliceO2Group/O2Physics/pull/17787 --- PWGEM/PhotonMeson/TableProducer/photonconversionbuilder.h | 2 ++ .../TableProducer/skimmerPrimaryElectronFromDalitzEE.h | 8 ++------ 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/PWGEM/PhotonMeson/TableProducer/photonconversionbuilder.h b/PWGEM/PhotonMeson/TableProducer/photonconversionbuilder.h index 95f181e49fd..483f38098b7 100644 --- a/PWGEM/PhotonMeson/TableProducer/photonconversionbuilder.h +++ b/PWGEM/PhotonMeson/TableProducer/photonconversionbuilder.h @@ -82,6 +82,7 @@ #include #include +// NOLINTBEGIN(google-global-names-in-headers) using o2::framework::AxisSpec; using o2::framework::Configurable; using o2::framework::ConfigurableGroup; @@ -92,6 +93,7 @@ using o2::framework::kTH2F; using o2::framework::kTHnSparseF; using o2::framework::Preslice; using o2::framework::Produces; +// NOLINTEND(google-global-names-in-headers) using MyCollisions = o2::soa::Join; // using MyCollisionsWithSWT = soa::Join; diff --git a/PWGEM/PhotonMeson/TableProducer/skimmerPrimaryElectronFromDalitzEE.h b/PWGEM/PhotonMeson/TableProducer/skimmerPrimaryElectronFromDalitzEE.h index d89f3b002a1..559da2e0d8d 100644 --- a/PWGEM/PhotonMeson/TableProducer/skimmerPrimaryElectronFromDalitzEE.h +++ b/PWGEM/PhotonMeson/TableProducer/skimmerPrimaryElectronFromDalitzEE.h @@ -60,12 +60,7 @@ #include #include -// using namespace o2; -// using namespace o2::soa; -// using namespace o2::framework; -// using namespace o2::framework::expressions; -// using namespace o2::constants::physics; - +// NOLINTBEGIN(google-global-names-in-headers) using o2::framework::AxisSpec; using o2::framework::Configurable; using o2::framework::ConfigurableGroup; @@ -76,6 +71,7 @@ using o2::framework::kTH2F; using o2::framework::kTHnSparseF; using o2::framework::Preslice; using o2::framework::Produces; +// NOLINTEND(google-global-names-in-headers) using MyCollisions = o2::soa::Join; using MyCollisionsWithSWT = o2::soa::Join;