Creating graphs in functions

From: Matthew R. Nelson (mrn@supermta.hg.med.umich.edu)
Date: Mon Nov 16 1998 - 19:15:51 MET


Rooters,

ROOT's greatest appeal to me is the advanced set of C++ graphing tools.  I
have a set of existing templated classes (non-ROOT) that contain data
that I want plotted in various ways.  Ideally, I would like to create a
new class that encapsulates these plotting routines.  Besides the various
initializations required in the main() file, I would like all of the
ROOT functions handled by this class, including creating the canvas. 

Would this create any scoping problems for ROOT?  Can I declare a canvas
inside a function?  Do I need special declarations of the ROOT objects
(extern, etc.)?  Are there any example applications someone could point me
to?

Also, my templated classes use the STL containers vector<> and string
extensively.  Does this preclude the successful use of CINT compiled into
this stand-alone application (not called from within ROOT)?

Thanks in advance for any pointers, example code, enlightenment, ...

Matt
----------------------------------------------------------------------------
Matthew R. Nelson
Dept. of Human Genetics         
University of Michigan              http://www-personal.umich.edu/~ticul/
4711 Medical Science II             email: ticul@umich.edu
Ann Arbor, MI  48109-0618           phone: (734) 647-3151
----------------------------------------------------------------------------



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