Skip to content

Commit e00b334

Browse files
ChiaraDeMartin95Chiara De Martin
andauthored
[PWGLF,Trigger] fix definition of DCAToPV (#10961)
Co-authored-by: Chiara De Martin <chiara.de.martin@cern.ch>
1 parent 6fef4ce commit e00b334

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

EventFiltering/PWGLF/strangenessFilter.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ static const std::vector<std::string> speciesNames{"Xi", "Omega"};
6161

6262
float CalculateDCAStraightToPV(float X, float Y, float Z, float Px, float Py, float Pz, float pvX, float pvY, float pvZ)
6363
{
64-
return std::hypot((pvY - Y) * Pz - (pvZ - Z) * Py, (pvX - X) * Pz - (pvZ - Z) * Px, (pvX - X) * Py - (pvY - Y) * Px) / (Px * Px + Py * Py + Pz * Pz);
64+
return std::hypot((pvY - Y) * Pz - (pvZ - Z) * Py, (pvX - X) * Pz - (pvZ - Z) * Px, (pvX - X) * Py - (pvY - Y) * Px) / std::sqrt(Px * Px + Py * Py + Pz * Pz);
6565
}
6666

6767
struct strangenessFilter {

0 commit comments

Comments
 (0)