Re: [ROOT] ROOT and Geant4

From: Rene Brun (Rene.Brun@cern.ch)
Date: Thu Mar 14 2002 - 08:23:16 MET


Hi Jacek,

It is excellent that you have taken this initiative.
I will prepare a small HOWTO pointing to the nice Isidro's work plus
your example.

Rene Brun

Jacek M. Holeczek wrote:
> 
> Hi,
> You can use ROOT with Geant quite easily ...
> Take the G4UIRoot from :
>         http://i.home.cern.ch/i/iglez/www/alice/G4UIRoot
> You always need to build your geant4-root application (executable).
> You can use ROOT objects (the TROOT object is created on application "load
> time") in any of user's geant4 classes as soon as you "ask" your
> application to use the G4UIRoot (you don't even have to wait until you do
> "session = new G4UIRoot(argc,argv)").
> You can also use the provided interactive root session ...
> Note that the suite contains some "novice" examples ...
> These examples do not create any ROOT objects so, please find attached a
> slightly modified "ExN01DetectorConstruction.cc" - two TF1 objects are
> created there ("np0", "np1"). After you get the "root" prompt, just try :
>         gROOT->FindObject("np0")
>         gROOT->FindObject("np1")
> You can also try the TBrowser (see "root -> Functions").
> Have fun,
> Jacek.
> 
>   --------------------------------------------------------------------------------
> 
>                                          Name: ExN01DetectorConstruction.cc
>    ExN01DetectorConstruction.cc          Type: Plain Text (TEXT/PLAIN)
>                                      Encoding: BASE64
>                                   Description: ExN01DetectorConstruction.cc



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