Hi all,
I simulated SPECT system in GATE, which included the acquisition of projections at 64 angular positions.
Generated root output file is composed of all data at 64 angular positions of gamma camera.
Is it possible to save any data of each angular position of gamma camera in a separate root file?
i.e.:
Save hits (or singles and …) of first angular position in test1.root.
Save hits (or singles and …) of second angular position in test2.root.
.
.
.
it’s still a bit hard to propose a solution working out of the box given the lack of information but what I think it’s certain is that you’ll need to filter the right entries out.
This is how you filter with TDataFrame: I assume that your trees have a branch called ang_pos, which is an angular position which can have 64 integer values.
Dear Dpiparo,
Thanks,
The simple root file is attached.
It is composed of data at 2 angular positions of gamma camera.
I want to save data of energy branch related to the each angular position of gamma camera in a separate root file.