Skip to content

Commit

Permalink
Please consider the following formatting changes (#183)
Browse files Browse the repository at this point in the history
  • Loading branch information
alibuild authored Nov 12, 2023
1 parent 0e81eef commit 8b5cf9e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
4 changes: 2 additions & 2 deletions PWGLF/DataModel/LFStrangenessTables.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 4 additions & 5 deletions PWGLF/TableProducer/lambdakzerobuilder.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}

Expand Down Expand Up @@ -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]++;

Expand Down
3 changes: 1 addition & 2 deletions PWGLF/TableProducer/lambdakzerofinder.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit 8b5cf9e

Please sign in to comment.