Re: [ROOT] ROOT and Geant4

From: Jacek M. Holeczek (holeczek@us.edu.pl)
Date: Thu Mar 14 2002 - 00:11:59 MET


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.





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