Storing Track Graph For Offline Analysis

I want to study the properties of shower development within calorimeter configurations. Is there an example of extracting and storing the graph, as in the DAG, of tracks from the shower particles for offline analysis?

Thanks,
Chris