Order tree

Dear all,

I have a file but don´t have the correct sequence of time. ( example of the CSV file structure: TimeStamp, measurement, sensor name)
It is possible to add all values on the tree on the specific branch for each type of data and then re-order the tree by time, please?

Many thanks.

João

Hi,

There is no automatic tools to do so. You would need to keep an external list (for example a TEventList which respect the order in which you fill it) to either read the TTree in disorder or, probably better, copy the TTree into a new file (reading the entry of the original in the order you need them to be).

Philippe.