Splitting ROOT files according to sampling times

From: Ida Häggström <ida.haggstrom_at_radfys.umu.se>
Date: Mon, 9 Nov 2009 08:57:25 +0100


Dear all,

I've run a 400 sec dynamic simulation of a PET acqusition (in Gate), resulting in one large ROOT file (A Tree containing branches of hits, singles and coincidences). There is also a time flag in the branches.

What I wonder is if it is possible to split the single ROOT output file I get from the run into several ones according to the time sampling scheme I had during my simulation? I.e. one file containing all coincidences occurring between 0-1 s, next file coincidences between 1-2 s and so on. Or I could for example split the large ROOT file to one with coincidences 0-10 s, next 10-20 s and so on.

I don't really know how to sort the data and match an event to the right time and so on.
Thank you in advance for any help on how to get started or reading tips! Ida Received on Mon Nov 09 2009 - 08:57:31 CET

This archive was generated by hypermail 2.2.0 : Tue Nov 10 2009 - 17:50:03 CET