TLDR: Error code 129 when cycling through a dictionary holding data dictionaries divided by detectors. Code is attached below; Error is attached via pastebin; root file is attached below. OS - ubuntu 22.04, root version 6.26/04
Hello all,
I have a Root file of the following hierarchy, outputted by G4Beamline simulation software:
TFile->TDirectoryFile->Trees->Leaves (with different entries).
I try to run through the leaves’ entries in order to save them into excel. The following leaves are available:
['x', 'y', 'z', 'Px', 'Py', 'Pz', 't', 'PDGid', 'EventID', 'TrackID', 'ParentID', 'Weight', 'Edep', 'VisibleEdep', 'Ntracks']
With a total of 2118 entries.
The data structure that holds the simulation results is as the following:
detectors_data={
Det1:{'x':[list_of_all_x_values], 'y':[list_of_all_y_values],...},
Det2:{'x':[list_of_all_x_values], 'y':[list_of_all_y_values],...}
}
detectors_data
is the dictionary that holds all the detectors and their datas.
Det1,...,Det5
are the inner dictionaries that actually hold each data that was recorded on each detector. The keys for these dictionaries are the leave’s names.
When trying to save data from all the entries under ‘x’ leaf, everything goes smoothly. When changing to ‘y’ leaf, the program crashes with exit code 129, signal 1: SIGHUP
Attached is the python file and the ROOT file it is meant to run with.
1200000.root (371.9 KB)
test.py (1.5 KB)
OS - ubuntu 22.04, root version 6.26/04
I would appreciate any help!
Thanks!