Skip to content

Commit

Permalink
Merge branch 'dev_sim2root' of https://github.com/grand-mother/grand
Browse files Browse the repository at this point in the history
…into dev_sim2root
  • Loading branch information
mjtueros committed Mar 6, 2024
2 parents a2ec1e8 + 0c6f113 commit b6eb614
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions sim2root/CoREASRawRoot/CoreasToRawROOT.py
Original file line number Diff line number Diff line change
Expand Up @@ -442,9 +442,7 @@ def CoreasToRawRoot(file, simID=None):
# padding_right = max(0, final_length - len(trace_x) - shift)

# Create a new array with zeros and appropriate padding
print(trace_x.shape)
trace_x_new = np.zeros(final_length)
print(trace_x_new[padding_left:padding_left + len(trace_x)].shape)

if shift > 0:
# for positive shift
Expand Down Expand Up @@ -477,10 +475,6 @@ def CoreasToRawRoot(file, simID=None):
trace_y = trace_y_new
trace_z = trace_z_new

# TODO: get rid of this once we are done testing traces :)
data = np.column_stack((trace_x, trace_y, trace_z)) # Combine data into a 2D array
np.savetxt(f"testtrace_{antenna}.csv", data, delimiter=",", header="trace_x,trace_y,trace_z") # Save with headers


# add to ROOT tree
# in Zhaires converter: AntennaN[ant_ID]
Expand Down

0 comments on commit b6eb614

Please sign in to comment.