Skip to content

Commit

Permalink
Merge pull request #51 from rest-for-physics/jporron-change-observabl…
Browse files Browse the repository at this point in the history
…e-name

Add sqrt to SigmaZ values since it is calculated with GetSigmaZ2()
  • Loading branch information
JPorron authored Jan 9, 2025
2 parents 7808b06 + 75de974 commit 85f179a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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
2 changes: 1 addition & 1 deletion src/TRestTrack3DAnalysisProcess.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 85f179a

Please sign in to comment.