Message: Saving Edep in EventAction to ROOT file Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Saving Edep in EventAction to ROOT file 

Forum: Analysis
Date: 24 May, 2011
From: RY <RY>


I'd like to recommendations as to how to speed up the energy deposited being written to a ROOT file. I think I am doing this rather inefficiently now, as I define a TFile and continually write to this file at the end of every EventAction. I've attached the source and header files for comment.

The write seems to bog it down significantly. When I comment it out, I can run 10k events in a macro using a particle gun in 20seconds. When I write, it takes more like 10 minutes...



 Add Message Add Message
to: "Saving Edep in EventAction to ROOT file"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews

[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]