Skip to content

Commit

Permalink
sign
Browse files Browse the repository at this point in the history
  • Loading branch information
lobis committed Mar 7, 2024
1 parent 8ce8927 commit 6bff88f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TRestGeant4AnalysisProcess.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ TRestEvent* TRestGeant4AnalysisProcess::ProcessEvent(TRestEvent* inputEvent) {
TVector3 v(xDirection, yDirection, zDirection);
SetObservableValue("thetaPrimary", v.Theta());
SetObservableValue("phiPrimary", v.Phi());
SetObservableValue("zenithYDegrees", TMath::ACos(yDirection) * TMath::RadToDeg());
SetObservableValue("zenithYDegrees", TMath::ACos(-1 * yDirection) * TMath::RadToDeg());

Double_t energyPrimary = fOutputG4Event->GetPrimaryEventEnergy(0);
SetObservableValue("energyPrimary", energyPrimary);
Expand Down

0 comments on commit 6bff88f

Please sign in to comment.