From d7bd85fc2f282dedd112089943dace7483419cfa Mon Sep 17 00:00:00 2001 From: ALICE Action Bot Date: Sun, 5 Apr 2026 16:37:06 +0000 Subject: [PATCH] Please consider the following formatting changes --- .../TableProducer/Strangeness/sigma0builder.cxx | 16 ++++++++-------- PWGLF/Tasks/Strangeness/sigmaanalysis.cxx | 10 +++++----- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/PWGLF/TableProducer/Strangeness/sigma0builder.cxx b/PWGLF/TableProducer/Strangeness/sigma0builder.cxx index f052c5c63f9..0450200a07b 100644 --- a/PWGLF/TableProducer/Strangeness/sigma0builder.cxx +++ b/PWGLF/TableProducer/Strangeness/sigma0builder.cxx @@ -1081,7 +1081,7 @@ struct sigma0builder { // Assumption: first mother is the physical one auto const& lambdaMother = lambdaMothers.front(); int lambdaMotherIndex = lambdaMother.globalIndex(); - + // ============================================================ // 2) --- EMCal cluster: loop over MC contributors --- // ============================================================ @@ -1117,21 +1117,21 @@ struct sigma0builder { // Require true photon, please if (mcPhoton.pdgCode() != PDG_t::kGamma) continue; - + // Get Sigma0 index from photon mother - auto const& photonMothers = mcPhoton.template mothers_as(); + auto const& photonMothers = mcPhoton.template mothers_as(); if (photonMothers.empty()) // No mothers? Weird continue; // Assumption: first mother is the physical one auto const& photonMother = photonMothers.front(); - int photonMotherIndex = photonMother.globalIndex(); - + int photonMotherIndex = photonMother.globalIndex(); + // ------------------------------------------------------------ // Check 2: // Does this photon share the same mother as the Lambda? // ------------------------------------------------------------ - if (photonMotherIndex == lambdaMotherIndex) { + if (photonMotherIndex == lambdaMotherIndex) { matchedPhotonId = daughterId; matchedMotherIndex = photonMotherIndex; MCinfo.EMCalClusterAmplitude = cluster.amplitudeA()[i]; @@ -2402,7 +2402,7 @@ struct sigma0builder { // Momentum components float gammapx = gammapT * std::cos(gamma.phi()); float gammapy = gammapT * std::sin(gamma.phi()); - float gammapz = gammapT * std::sinh(gamma.eta()); + float gammapz = gammapT * std::sinh(gamma.eta()); //_______________________________________________ // Sigma0 pre-selections @@ -2439,7 +2439,7 @@ struct sigma0builder { if constexpr (requires { gamma.mcParticleIds(); lambda.motherMCPartId(); }) { auto sigma0MCInfo = getClusterV0PairMCInfo(gamma, lambda, collision, mcparticles); - + sigma0mccores(sigma0MCInfo.V0PairMCParticleID, sigma0MCInfo.V0PairMCRadius, sigma0MCInfo.V0PairPDGCode, sigma0MCInfo.V0PairPDGCodeMother, sigma0MCInfo.V0PairMCProcess, sigma0MCInfo.fV0PairProducedByGenerator, sigma0MCInfo.V01MCpx, sigma0MCInfo.V01MCpy, sigma0MCInfo.V01MCpz, sigma0MCInfo.EMCalClusterAmplitude, sigma0MCInfo.V01PDGCodePos, sigma0MCInfo.V01PDGCodeNeg, sigma0MCInfo.fIsV01Primary, sigma0MCInfo.V01PDGCode, sigma0MCInfo.V01PDGCodeMother, sigma0MCInfo.fIsV01CorrectlyAssign, diff --git a/PWGLF/Tasks/Strangeness/sigmaanalysis.cxx b/PWGLF/Tasks/Strangeness/sigmaanalysis.cxx index 1c44c88ad3a..8e0b65f125a 100644 --- a/PWGLF/Tasks/Strangeness/sigmaanalysis.cxx +++ b/PWGLF/Tasks/Strangeness/sigmaanalysis.cxx @@ -505,9 +505,9 @@ struct sigmaanalysis { histos.add(histodir + "/MC/Reso/h2dGammaPtResolution", "h2dGammaPtResolution", kTH2D, {axisInvPt, axisReso}); histos.add(histodir + "/MC/Reso/h2dGammaInvPtResolution", "h2dGammaInvPtResolution", kTH2D, {axisInvPt, axisDeltaPt}); histos.add(histodir + "/MC/Reso/h2dLambdaPtResolution", "h2dLambdaPtResolution", kTH2D, {axisInvPt, axisDeltaPt}); - histos.add(histodir + "/MC/Reso/h3dLambdaPtResoVsTPCCR", "h3dLambdaPtResoVsTPCCR", kTH3D, {axisInvPt, axisDeltaPt, axisTPCrows}); + histos.add(histodir + "/MC/Reso/h3dLambdaPtResoVsTPCCR", "h3dLambdaPtResoVsTPCCR", kTH3D, {axisInvPt, axisDeltaPt, axisTPCrows}); histos.add(histodir + "/MC/Reso/h2dAntiLambdaPtResolution", "h2dAntiLambdaPtResolution", kTH2D, {axisInvPt, axisDeltaPt}); - histos.add(histodir + "/MC/Reso/h3dAntiLambdaPtResoVsTPCCR", "h3dAntiLambdaPtResoVsTPCCR", kTH3D, {axisInvPt, axisDeltaPt, axisTPCrows}); + histos.add(histodir + "/MC/Reso/h3dAntiLambdaPtResoVsTPCCR", "h3dAntiLambdaPtResoVsTPCCR", kTH3D, {axisInvPt, axisDeltaPt, axisTPCrows}); histos.add(histodir + "/MC/Reso/h2dSigma0PtResolution", "h2dSigma0PtResolution", kTH2D, {axisInvPt, axisReso}); histos.add(histodir + "/MC/Reso/h2dSigma0InvPtResolution", "h2dSigma0InvPtResolution", kTH2D, {axisInvPt, axisDeltaPt}); histos.add(histodir + "/MC/Reso/h2dAntiSigma0PtResolution", "h2dAntiSigma0PtResolution", kTH2D, {axisInvPt, axisReso}); @@ -1011,7 +1011,7 @@ struct sigmaanalysis { // Gamma MC association if (sigma.photonPDGCode() == PDG_t::kGamma) { if (sigma.photonmcpt() > 0) { - histos.fill(HIST(MainDir[mode]) + HIST("/MC/Reso/h2dGammaPtResolution"), sigma.photonmcpt(), (sigma.photonPt()/sigma.photonmcpt()) - 1.f); // pT resolution + histos.fill(HIST(MainDir[mode]) + HIST("/MC/Reso/h2dGammaPtResolution"), sigma.photonmcpt(), (sigma.photonPt() / sigma.photonmcpt()) - 1.f); // pT resolution histos.fill(HIST(MainDir[mode]) + HIST("/MC/Reso/h2dGammaInvPtResolution"), 1.f / sigma.photonmcpt(), 1.f / sigma.photonPt() - 1.f / sigma.photonmcpt()); // pT resolution } } @@ -1041,7 +1041,7 @@ struct sigmaanalysis { if (sigma.isSigma0()) { histos.fill(HIST(MainDir[mode]) + HIST("/MC/Reso/h2dSigma0RadiusResolution"), sigma.mcpt(), sigma.radius() - sigma.mcradius()); // pT resolution if (sigma.mcpt() > 0) { - histos.fill(HIST(MainDir[mode]) + HIST("/MC/Reso/h2dSigma0PtResolution"), sigma.mcpt(), (sigma.pt()/sigma.mcpt()) - 1.f); // pT resolution + histos.fill(HIST(MainDir[mode]) + HIST("/MC/Reso/h2dSigma0PtResolution"), sigma.mcpt(), (sigma.pt() / sigma.mcpt()) - 1.f); // pT resolution histos.fill(HIST(MainDir[mode]) + HIST("/MC/Reso/h2dSigma0InvPtResolution"), 1.f / sigma.mcpt(), 1.f / sigma.pt() - 1.f / sigma.mcpt()); // pT resolution } } @@ -1664,7 +1664,7 @@ struct sigmaanalysis { auto sigma0 = fullSigma0s.rawIteratorAt(sigma0grouped[coll.globalIndex()][i]); // if MC - if constexpr (requires { sigma0.isSigma0(); sigma0.isAntiSigma0(); }) { + if constexpr (requires { sigma0.isSigma0(); sigma0.isAntiSigma0(); }) { if (doMCAssociation && !(sigma0.isSigma0() || sigma0.isAntiSigma0())) continue;