Re: [ROOT] need scripting (Was: ...)

From: Valeri Fine (fine@bnl.gov)
Date: Thu Sep 05 2002 - 03:05:38 MEST


http://root.cern.ch/root/ExApplications.html
> Timur Pocheptsoff writes:
Timur >  > 1. I love C++ very much, but I don't like any scripting
languages. What is the
Timur >  > root? At this site I've seen class hierarchies and a greate
number of class
Timur >  > descriptions. But... Can I use Root wihout Root scripts?


See %ROOTSYS%\test\Makefile.w32 makefile to build ROOT-application with no
scripting
with NMAKE.

Viren > Simply, "Yes".

But...
ROOT uses the "scripting" internally. Even the end-user sees no scripting,
the core of ROOT can not work
with no built-in C++ interpreter.


Viren > You might want to use the "root-config" script to help you set
Viren > compile/link -I, -L, -l things.

Viren > An extra step of running "rootcint" on your code is necessary for
some
Viren > aditional features of any ROOT based classes you write (things like
Viren > I/O, generated popup menus or the signal-slot mechanism).  But, if
you
Viren > don't need these things, then it is just "normal C++".

Timur >  > Can I use Root library like MFC classes?

Viren > Yes, but, lets hope ROOT is better written....

There are examples:
See link:
http://d0.phys.washington.edu/~haas/winroot/index.html
from
http://root.cern.ch/root/ExApplications.html


However it is not trivial (sometimes :-)
That has nothing to do with the quality of MFC whatsoever.
The main problem is to manage two or more different
"event loops" those each interactive system in question
(for example ROOT and MFC) is in possession
(assuming you want to use GUI from MFC)

An integration of ROOT with Qt GUI class library is an example:
http://www.usatlas.bnl.gov/~fine/QtRootDownload.html
and
http://go4.gsi.de/

Integration  ROOT  and "Open Inverntor" is another one.
Check http://www.atsweb.neu.edu/hepvis01/  for
http://www.atsweb.neu.edu/hepvis01/Site/Talks/Talk010.pdf

Best regards, Valeri


>
> -Brett.
>



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