Writing ROOT files within another program

From: Anthony Faust (afaust@dres.dnd.ca)
Date: Wed Nov 24 1999 - 00:38:15 MET


	
	I am writing a class that is intended to be used both with a Geant4 
program, where the class will only be filled an written to a ROOT file,
and as a stand alone analysis class to be loaded in a ROOT session and will then 
read back the generated G4 ROOT files.

	To do this, I created a class which inclued methods to fill my class 
object in the G4 environment all hidden behind preprocessor diectives so they 
would not be seem when working in ROOT. Similarly, I would like to hide as much 
of the ROOT information from G4 as I can so as to minimize the code size. 
However, I can no seem to do this without the linker complaining about a number 
of missing definitions. 
	
	What then would be the minimal definition of a class so that its members 
could be written to a ROOT file? Can I simply include a Class::Streamer function 
or must I link in the full ClassDict.XX files (These are the ones I would like 
to avoid) ?

	Thanks.

_____________
Dr. Anthony A. Faust                            | Anthony.Faust@dres.dnd.ca
Defence Research Establishment Suffield         | PH:  (403) 544-5362
Box 4000, Medicine Hat, Alberta, CANADA T1A 8K6 | FAX: (403) 544-4704



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:43 MET