Detector Simulation with Root Tree