Re: [ROOT] ROOT and Geant4

From: Bertalan Juhasz (Bertalan.Juhasz@cern.ch)
Date: Wed Mar 13 2002 - 10:43:40 MET


Hi Allister,

Maybe you can find this useful:

http://juhaszbe.home.cern.ch/juhaszbe/pbarstop.tar.gz

I wrote this program quite long ago and it requires a rather old version
of Geant4 (1.1) so most likely you won't be able to compile it but anyway
you can find out how to define, fill and write THn objects. The ROOT
related codes are in pbarstop.cc, pbarRunAction.hh, pbarRunAction.cc and
pbarEventAction.cc. The program produces a ROOT file with the simulation
results. This file then can be read and analyzed by a ROOT macro (pbar.C).
Not very elegant but works...

I hope this helps.

Regards,

Bertalan


On Wed, 13 Mar 2002, Allister Levi Sanchez wrote:

> Hi ROOTers,
> 
> I'm using ROOT for analysis of my Geant4 simulation data.  Since I'm not
> a C++ wizard (I learned C++ when I started using ROOT), and didn't  have
> the time to sit on it before, I'm doing it the roundabout way:
> 1. Output the data by C++ ofstream to an ASCII data file.
> 2. Read this ASCII data file with a ROOT macro.
> 
> Obviously, I get a nastily large ASCII data file for a large number of
> events.  So what I want to do is to connect Geant4 with ROOT,
> particularly on data storage, histogramming and GUI.  I'm sure this has
> been done by somebody already.  Would you please tell me
> where to start?
> 
> Cheers,
> Allister
> ___________________
> Allister Levi Sanchez
> Research Student
> Niigata University
> Japan
> 
> 



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:45 MET