From 4bc776c46c651c5aba202a89c2d86c49bbf3e21e Mon Sep 17 00:00:00 2001 From: JPorron Date: Thu, 9 Jan 2025 10:33:00 +0100 Subject: [PATCH 1/2] Add square root to SigmaZ values since it is calculated with GetSigmaZ2() --- src/TRestTrack2DAnalysisProcess.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/TRestTrack2DAnalysisProcess.cxx b/src/TRestTrack2DAnalysisProcess.cxx index 453c5ce..c0f6ffc 100644 --- a/src/TRestTrack2DAnalysisProcess.cxx +++ b/src/TRestTrack2DAnalysisProcess.cxx @@ -218,7 +218,7 @@ TRestEvent* TRestTrack2DAnalysisProcess::ProcessEvent(TRestEvent* inputEvent) { XZ_NHitsX[t->GetTrackID()] = t->GetNumberOfHits(); XZ_EnergyX[t->GetTrackID()] = t->GetTrackEnergy(); XZ_SigmaX[t->GetTrackID()] = t->GetHits()->GetSigmaX(); - XZ_SigmaZ[t->GetTrackID()] = t->GetHits()->GetSigmaZ2(); + XZ_SigmaZ[t->GetTrackID()] = sqrt(t->GetHits()->GetSigmaZ2()); XZ_GaussSigmaX[t->GetTrackID()] = t->GetHits()->GetGaussSigmaX(); XZ_GaussSigmaZ[t->GetTrackID()] = t->GetHits()->GetGaussSigmaZ(); XZ_LengthX[t->GetTrackID()] = t->GetLength(); @@ -254,7 +254,7 @@ TRestEvent* TRestTrack2DAnalysisProcess::ProcessEvent(TRestEvent* inputEvent) { YZ_NHitsY[t->GetTrackID()] = t->GetNumberOfHits(); YZ_EnergyY[t->GetTrackID()] = t->GetTrackEnergy(); YZ_SigmaY[t->GetTrackID()] = t->GetHits()->GetSigmaY(); - YZ_SigmaZ[t->GetTrackID()] = t->GetHits()->GetSigmaZ2(); + YZ_SigmaZ[t->GetTrackID()] = sqrt(t->GetHits()->GetSigmaZ2()); YZ_GaussSigmaY[t->GetTrackID()] = t->GetHits()->GetGaussSigmaY(); YZ_GaussSigmaZ[t->GetTrackID()] = t->GetHits()->GetGaussSigmaZ(); YZ_LengthY[t->GetTrackID()] = t->GetLength(); @@ -372,7 +372,7 @@ TRestEvent* TRestTrack2DAnalysisProcess::ProcessEvent(TRestEvent* inputEvent) { } } - MaxTrack_XZ_YZ_SigmaZ = hits.GetSigmaZ2(); + MaxTrack_XZ_YZ_SigmaZ = sqrt(hits.GetSigmaZ2()); MaxTrack_XZ_YZ_GaussSigmaZ = hits.GetGaussSigmaZ(); MaxTrack_XZ_YZ_SkewXY = hits.GetSkewXY(); MaxTrack_XZ_YZ_SkewZ = hits.GetSkewZ(); From 75de97439a6175ea7bacbc73eefc212ad63963a0 Mon Sep 17 00:00:00 2001 From: JPorron Date: Thu, 9 Jan 2025 11:00:17 +0100 Subject: [PATCH 2/2] Same for 3D --- src/TRestTrack3DAnalysisProcess.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TRestTrack3DAnalysisProcess.cxx b/src/TRestTrack3DAnalysisProcess.cxx index 84657ce..010b194 100644 --- a/src/TRestTrack3DAnalysisProcess.cxx +++ b/src/TRestTrack3DAnalysisProcess.cxx @@ -161,7 +161,7 @@ TRestEvent* TRestTrack3DAnalysisProcess::ProcessEvent(TRestEvent* inputEvent) { XYZ_Energy[t->GetTrackID()] = t->GetTrackEnergy(); XYZ_SigmaX[t->GetTrackID()] = t->GetHits()->GetSigmaX(); XYZ_SigmaY[t->GetTrackID()] = t->GetHits()->GetSigmaY(); - XYZ_SigmaZ[t->GetTrackID()] = t->GetHits()->GetSigmaZ2(); + XYZ_SigmaZ[t->GetTrackID()] = sqrt(t->GetHits()->GetSigmaZ2()); XYZ_GaussSigmaX[t->GetTrackID()] = t->GetHits()->GetGaussSigmaX(); XYZ_GaussSigmaY[t->GetTrackID()] = t->GetHits()->GetGaussSigmaY(); XYZ_GaussSigmaZ[t->GetTrackID()] = t->GetHits()->GetGaussSigmaZ();