Skip to content

Commit

Permalink
update zenith & azimuth conventions
Browse files Browse the repository at this point in the history
zen_GRAND = zen_Corsika
az_GRAND = 180 - az_Corsika
  • Loading branch information
jelenakhlr committed Mar 4, 2024
1 parent c40eeda commit ee101ca
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions sim2root/CoREASRawRoot/CoreasToRawROOT.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,10 @@ def CoreasToRawRoot(file, simID=None):
GeomagneticAngle = read_params(reas_input, "GeomagneticAngle") # in degrees

else:
#theta_GRAND = 180-theta_Corsika
zenith = 180 - read_params(inp_input, "THETAP")
azimuth = read_params(inp_input, "PHIP")
#theta_GRAND = theta_Corsika
zenith = read_params(inp_input, "THETAP")
#azimuth_GRAND = 180 - azimuth_Corsika
azimuth = 180 - read_params(inp_input, "PHIP")

Energy = read_params(inp_input, "ERANGE") # in GeV
Primary = read_params(inp_input, "PRMPAR") # as defined in CORSIKA
Expand Down

0 comments on commit ee101ca

Please sign in to comment.