Annalisa,
There are two possibilities shown in the tutorials.
gROOT->Macro("macro.C")
gROOT->ProcessLine(".x macro.C")
I recommend to use the send form.
Rene Brun
On Tue, 6 Mar 2001, Annalisa De Caro wrote:
> Hi root people,
> is it possible to run a macro from a main macro?
> I am finding a structure similarly to this in PAW (with the kumac):
> promt> exec main.kumac
> where the main.kumac content is:
> ...
> exe inside
> ...
> Thank you
> ************************************************************
> * Annalisa De Caro *
> *----------------------------------------------------------*
> * University of Bologna - Departement of Physics *
> * Via A. Righi 46 - 40126 Bologna *
> * University of Salerno - Departement of Physics Sciences *
> * (INFN of Napoli) *
> * Via S. Allende - 84081 Baronissi (Salerno) *
> * CERN - EP division *
> * Rue de Meyrin CH-1211 Geneve 23 Switzerland *
> *----------------------------------------------------------*
> * Phone Number: *
> * +39 089 96 5359 (Salerno Office) - L9 - *
> * +39 051 20 91103 (Bologna Office) - 203 - *
> * +41 22 76 77767 (CERN Office) - Bld.29 R019- *
> *----------------------------------------------------------*
> * E-mail: *
> * Annalisa.de.caro@cern.ch (decaro@mail.cern.ch) *
> * decaro@bo.infn.it *
> ************************************************************
>
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:38 MET