Skip to content

Commit

Permalink
Add square root to SigmaZ values since it is calculated with GetSigma…
Browse files Browse the repository at this point in the history
…Z2()
  • Loading branch information
JPorron committed Jan 9, 2025
1 parent 7808b06 commit 4bc776c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/TRestTrack2DAnalysisProcess.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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();
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 4bc776c

Please sign in to comment.