From f28583e21cc5c3e1b40ba32f1dd1a54b4c7ab8cb Mon Sep 17 00:00:00 2001 From: ALICE Action Bot Date: Fri, 22 Aug 2025 15:45:50 +0000 Subject: [PATCH] Please consider the following formatting changes --- PWGLF/DataModel/LFSigmaTables.h | 26 +++++++------------ .../Strangeness/sigma0builder.cxx | 8 +++--- PWGLF/Tasks/Strangeness/sigmaanalysis.cxx | 16 +++++------- 3 files changed, 21 insertions(+), 29 deletions(-) diff --git a/PWGLF/DataModel/LFSigmaTables.h b/PWGLF/DataModel/LFSigmaTables.h index ed956c16319..fdeab068f44 100644 --- a/PWGLF/DataModel/LFSigmaTables.h +++ b/PWGLF/DataModel/LFSigmaTables.h @@ -9,13 +9,13 @@ // granted to it by virtue of its status as an Intergovernmental Organization // or submit itself to any jurisdiction. +#include "PWGLF/DataModel/LFStrangenessTables.h" + #include "Common/Core/RecoDecay.h" #include "Common/DataModel/Centrality.h" #include "Common/DataModel/Multiplicity.h" #include "Common/DataModel/Qvectors.h" -#include "PWGLF/DataModel/LFStrangenessTables.h" - #include "CommonConstants/PhysicsConstants.h" #include "Framework/ASoAHelpers.h" #include "Framework/AnalysisDataModel.h" @@ -376,7 +376,7 @@ DECLARE_SOA_DYNAMIC_COLUMN(MCOPAngle, mcopAngle, TVector3 v1(photonMCPx, photonMCPy, photonMCPz); TVector3 v2(lambdaMCPx, lambdaMCPy, lambdaMCPz); return v1.Angle(v2); - }); + }); // Photon DECLARE_SOA_DYNAMIC_COLUMN(PhotonMCPt, photonmcpt, //! Transverse momentum in GeV/c @@ -425,7 +425,6 @@ DECLARE_SOA_DYNAMIC_COLUMN(LambdaMCY, lambdaMCY, //! Rapidity DECLARE_SOA_DYNAMIC_COLUMN(LambdaMCPhi, lambdaMCPhi, //! Phi in the range [0, 2pi) [](float lambdaMCPx, float lambdaMCPy) -> float { return RecoDecay::phi(lambdaMCPx, lambdaMCPy); }); - } // namespace sigma0MCCore @@ -436,9 +435,9 @@ DECLARE_SOA_TABLE(Sigma0MCCores, "AOD", "SIGMA0MCCORES", sigma0MCCore::PhotonMCPx, sigma0MCCore::PhotonMCPy, sigma0MCCore::PhotonMCPz, sigma0MCCore::IsPhotonPrimary, sigma0MCCore::PhotonPDGCode, sigma0MCCore::PhotonPDGCodeMother, sigma0MCCore::PhotonIsCorrectlyAssoc, - sigma0MCCore::LambdaMCPx, sigma0MCCore::LambdaMCPy, sigma0MCCore::LambdaMCPz, + sigma0MCCore::LambdaMCPx, sigma0MCCore::LambdaMCPy, sigma0MCCore::LambdaMCPz, sigma0MCCore::IsLambdaPrimary, sigma0MCCore::LambdaPDGCode, sigma0MCCore::LambdaPDGCodeMother, sigma0MCCore::LambdaIsCorrectlyAssoc, - + // Dynamic columns sigma0MCCore::IsSigma0, sigma0MCCore::IsAntiSigma0, @@ -451,7 +450,7 @@ DECLARE_SOA_TABLE(Sigma0MCCores, "AOD", "SIGMA0MCCORES", sigma0MCCore::Sigma0MCMass, sigma0MCCore::Sigma0MCY, sigma0MCCore::MCPhi, - sigma0MCCore::MCEta, + sigma0MCCore::MCEta, sigma0MCCore::MCOPAngle, sigma0MCCore::PhotonMCPt, @@ -464,10 +463,7 @@ DECLARE_SOA_TABLE(Sigma0MCCores, "AOD", "SIGMA0MCCORES", sigma0MCCore::LambdaMCP, sigma0MCCore::LambdaMCEta, sigma0MCCore::LambdaMCY, - sigma0MCCore::LambdaMCPhi - ); - - + sigma0MCCore::LambdaMCPhi); namespace sigma0Gen { @@ -703,7 +699,6 @@ DECLARE_SOA_COLUMN(Photon2PDGCode, photon2PDGCode, int); DECLARE_SOA_COLUMN(Photon2PDGCodeMother, photon2PDGCodeMother, int); DECLARE_SOA_COLUMN(Photon2IsCorrectlyAssoc, photon2IsCorrectlyAssoc, bool); - DECLARE_SOA_DYNAMIC_COLUMN(IsPi0, isPi0, //! IsPi0 [](int pdgCode) -> bool { return pdgCode == 111; }); @@ -816,7 +811,7 @@ DECLARE_SOA_TABLE(Pi0CoresMC, "AOD", "PI0CORESMC", // Dynamic columns Pi0CoreMC::IsPi0, Pi0CoreMC::IsFromXi0, - + Pi0CoreMC::MCPx, Pi0CoreMC::MCPy, Pi0CoreMC::MCPz, @@ -825,7 +820,7 @@ DECLARE_SOA_TABLE(Pi0CoresMC, "AOD", "PI0CORESMC", Pi0CoreMC::Pi0MCMass, Pi0CoreMC::Pi0MCY, Pi0CoreMC::MCPhi, - Pi0CoreMC::MCEta, + Pi0CoreMC::MCEta, Pi0CoreMC::MCOPAngle, Pi0CoreMC::Photon1MCPt, @@ -838,8 +833,7 @@ DECLARE_SOA_TABLE(Pi0CoresMC, "AOD", "PI0CORESMC", Pi0CoreMC::Photon2MCP, Pi0CoreMC::Photon2MCEta, Pi0CoreMC::Photon2MCY, - Pi0CoreMC::Photon2MCPhi - ); + Pi0CoreMC::Photon2MCPhi); DECLARE_SOA_TABLE(Pi0CollRef, "AOD", "PI0COLLREF", //! optional table to refer back to a collision o2::soa::Index<>, v0data::StraCollisionId); diff --git a/PWGLF/TableProducer/Strangeness/sigma0builder.cxx b/PWGLF/TableProducer/Strangeness/sigma0builder.cxx index 4e8e465cf8c..92dfca35f88 100644 --- a/PWGLF/TableProducer/Strangeness/sigma0builder.cxx +++ b/PWGLF/TableProducer/Strangeness/sigma0builder.cxx @@ -348,7 +348,7 @@ struct sigma0builder { float V02MCpx = -999.f; float V02MCpy = -999.f; float V02MCpz = -999.f; - float V0PairMCRadius = -999.f; + float V0PairMCRadius = -999.f; }; // ______________________________________________________ @@ -434,10 +434,10 @@ struct sigma0builder { } MCinfo.V01MCpx = v01MC.pxMC(); - MCinfo.V01MCpy = v01MC.pyMC(); + MCinfo.V01MCpy = v01MC.pyMC(); MCinfo.V01MCpz = v01MC.pzMC(); MCinfo.V02MCpx = v02MC.pxMC(); - MCinfo.V02MCpy = v02MC.pyMC(); + MCinfo.V02MCpy = v02MC.pyMC(); MCinfo.V02MCpz = v02MC.pzMC(); // Get corresponding entries in MCParticles table @@ -459,7 +459,7 @@ struct sigma0builder { MCinfo.V0PairPDGCode = MCMother_v01.pdgCode(); MCinfo.V0PairMCProcess = MCMother_v01.getProcess(); MCinfo.V0PairMCParticleID = MCMother_v01.globalIndex(); - MCinfo.V0PairMCRadius = std::hypot(MCMother_v01.vx(), MCMother_v01.vy()); // production position radius + MCinfo.V0PairMCRadius = std::hypot(MCMother_v01.vx(), MCMother_v01.vy()); // production position radius auto const& v0pairmothers = MCMother_v01.template mothers_as(); // Get mothers if (!v0pairmothers.empty()) { diff --git a/PWGLF/Tasks/Strangeness/sigmaanalysis.cxx b/PWGLF/Tasks/Strangeness/sigmaanalysis.cxx index 4ddcdd1957f..6f94ba4dd67 100644 --- a/PWGLF/Tasks/Strangeness/sigmaanalysis.cxx +++ b/PWGLF/Tasks/Strangeness/sigmaanalysis.cxx @@ -1357,16 +1357,15 @@ struct sigmaanalysis { return false; // Sigma0 specific selections - // Rapidity - if constexpr (requires { cand.sigma0MCY();}) { // MC + // Rapidity + if constexpr (requires { cand.sigma0MCY(); }) { // MC if (TMath::Abs(cand.sigma0MCY()) > sigma0Selections.Sigma0MaxRap) return false; - } - else{ // Real data + } else { // Real data if (TMath::Abs(cand.sigma0Y()) > sigma0Selections.Sigma0MaxRap) return false; } - + // V0Pair Radius if (cand.radius() > sigma0Selections.Sigma0MaxRadius) return false; @@ -1489,15 +1488,14 @@ struct sigmaanalysis { return false; // Pi0 specific selections - if constexpr (requires { cand.pi0MCY();}) { // MC + if constexpr (requires { cand.pi0MCY(); }) { // MC if (TMath::Abs(cand.pi0MCY()) > pi0Selections.Pi0MaxRap) return false; - } - else{ // DATA + } else { // DATA if (TMath::Abs(cand.pi0Y()) > pi0Selections.Pi0MaxRap) return false; } - + // V0Pair Radius if (cand.radius() > pi0Selections.Pi0MaxRadius) return false;