Save every track's information to ROOT

Hello everyone,
A parent track has many daughter tracks, and I’d like to save every track’s information to ROOT. For example, there are 70 tracks whose parentID is 0 (means they are all created by the Primary Particle), and each track of these 70 has information of energy deposit, vertex direction, vertex kinetic energy, and so on. How can I save ALL OF THEM?
He Chih-Hsuan