Skip to content

Commit 233e39c

Browse files
authored
update process data type in convert_edepsim_roottoh5.py
1 parent 22f2d60 commit 233e39c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

run-convert2h5/convert_edepsim_roottoh5.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
# Output array datatypes
1717
segments_dtype = np.dtype([("event_id","u4"),("vertex_id", "u8"), ("segment_id", "u4"),
18-
("z_end", "f4"),("traj_id", "u4"), ("file_traj_id", "u4"), ("tran_diff", "f4"),
18+
("z_end", "f4"),("traj_id", "i4"), ("file_traj_id", "u4"), ("tran_diff", "f4"),
1919
("z_start", "f4"), ("x_end", "f4"),
2020
("y_end", "f4"), ("n_electrons", "u4"),
2121
("pdg_id", "i4"), ("x_start", "f4"),
@@ -28,14 +28,14 @@
2828
("n_photons","f4")], align=True)
2929

3030
trajectories_dtype = np.dtype([("event_id","u4"), ("vertex_id", "u8"),
31-
("traj_id", "u4"), ("file_traj_id", "u4"), ("parent_id", "i4"), ("primary", "?"),
31+
("traj_id", "i4"), ("file_traj_id", "u4"), ("parent_id", "i4"), ("primary", "?"),
3232
("E_start", "f4"), ("pxyz_start", "f4", (3,)),
3333
("xyz_start", "f4", (3,)), ("t_start", "f8"),
3434
("E_end", "f4"), ("pxyz_end", "f4", (3,)),
3535
("xyz_end", "f4", (3,)), ("t_end", "f8"),
36-
("pdg_id", "i4"), ("start_process", "u4"),
37-
("start_subprocess", "u4"), ("end_process", "u4"),
38-
("end_subprocess", "u4"),("dist_travel", "f4")], align=True)
36+
("pdg_id", "i4"), ("start_process", "i4"),
37+
("start_subprocess", "i4"), ("end_process", "i4"),
38+
("end_subprocess", "i4"),("dist_travel", "f4")], align=True)
3939

4040
vertices_dtype = np.dtype([("event_id","u4"), ("vertex_id","u8"),
4141
("x_vert","f4"), ("y_vert","f4"), ("z_vert","f4"),

0 commit comments

Comments
 (0)