From 8004c41037ebd5d331d6fdeee1af40ebe58245e2 Mon Sep 17 00:00:00 2001 From: ALICE Action Bot Date: Sun, 12 Nov 2023 20:05:50 +0000 Subject: [PATCH] Please consider the following formatting changes --- PWGLF/DataModel/LFStrangenessTables.h | 4 ++-- PWGLF/TableProducer/lambdakzerobuilder.cxx | 9 ++++----- PWGLF/TableProducer/lambdakzerofinder.cxx | 3 +-- 3 files changed, 7 insertions(+), 9 deletions(-) diff --git a/PWGLF/DataModel/LFStrangenessTables.h b/PWGLF/DataModel/LFStrangenessTables.h index b06fe91d26a..4df3889e9c9 100644 --- a/PWGLF/DataModel/LFStrangenessTables.h +++ b/PWGLF/DataModel/LFStrangenessTables.h @@ -43,8 +43,8 @@ DECLARE_SOA_COLUMN(Z, z, float); //! decay position Z DECLARE_SOA_COLUMN(DCAV0Daughters, dcaV0daughters, float); //! DCA between V0 daughters DECLARE_SOA_COLUMN(DCAPosToPV, dcapostopv, float); //! DCA positive prong to PV DECLARE_SOA_COLUMN(DCANegToPV, dcanegtopv, float); //! DCA negative prong to PV -DECLARE_SOA_COLUMN(V0CosPA, v0cosPA, float); //! DCA negative prong to PV -DECLARE_SOA_COLUMN(DCAV0ToPV, dcav0topv, float); //! DCA negative prong to PV +DECLARE_SOA_COLUMN(V0CosPA, v0cosPA, float); //! DCA negative prong to PV +DECLARE_SOA_COLUMN(DCAV0ToPV, dcav0topv, float); //! DCA negative prong to PV // Saved from finding: covariance matrix of parent track (on request) DECLARE_SOA_COLUMN(PositionCovMat, positionCovMat, float[6]); //! covariance matrix elements diff --git a/PWGLF/TableProducer/lambdakzerobuilder.cxx b/PWGLF/TableProducer/lambdakzerobuilder.cxx index 24997c4f16f..76935d57284 100644 --- a/PWGLF/TableProducer/lambdakzerobuilder.cxx +++ b/PWGLF/TableProducer/lambdakzerobuilder.cxx @@ -212,7 +212,7 @@ struct lambdakzeroBuilder { {"hV0Criteria", "hV0Criteria", {HistType::kTH1F, {{10, -0.5f, 9.5f}}}}}}; float CalculateDCAStraightToPV(float X, float Y, float Z, float Px, float Py, float Pz, float pvX, float pvY, float pvZ) - { + { return std::sqrt((std::pow((pvY - Y) * Pz - (pvZ - Z) * Py, 2) + std::pow((pvX - X) * Pz - (pvZ - Z) * Px, 2) + std::pow((pvX - X) * Py - (pvY - Y) * Px, 2)) / (Px * Px + Py * Py + Pz * Pz)); } @@ -585,14 +585,13 @@ struct lambdakzeroBuilder { return false; } - v0candidate.dcav0topv = CalculateDCAStraightToPV( + v0candidate.dcav0topv = CalculateDCAStraightToPV( v0candidate.pos[0], v0candidate.pos[1], v0candidate.pos[2], v0candidate.posP[0] + v0candidate.negP[0], v0candidate.posP[1] + v0candidate.negP[1], v0candidate.posP[2] + v0candidate.negP[2], - primaryVertex.getX(), primaryVertex.getY(), primaryVertex.getZ() - ); - + primaryVertex.getX(), primaryVertex.getY(), primaryVertex.getZ()); + // Passes CosPA check statisticsRegistry.v0stats[kV0CosPA]++; diff --git a/PWGLF/TableProducer/lambdakzerofinder.cxx b/PWGLF/TableProducer/lambdakzerofinder.cxx index 2fd760bb4b7..70184abe393 100644 --- a/PWGLF/TableProducer/lambdakzerofinder.cxx +++ b/PWGLF/TableProducer/lambdakzerofinder.cxx @@ -277,8 +277,7 @@ struct lambdakzerofinder { } if (smallestDCA > maxV0DCAtoPV) return 0; // unassociated - - + v0(collisionIndex, t1.globalIndex(), t2.globalIndex()); v0data(t1.globalIndex(), t2.globalIndex(), collisionIndex, 0, fitter.getTrack(0).getX(), fitter.getTrack(1).getX(),