[ROOT] executing macro with gROOT

From: Tommaso Chiarusi (Tommaso.Chiarusi@bo.infn.it)
Date: Thu Aug 22 2002 - 16:51:02 MEST


Dear rooters,

suppose you have a macro called  my_macro.C with some arguments, sothat 
when you make it run, you type:

.x my_macro.C(1,2,3)

The macro is not the simple one you can have within  two '{}', but is in 
the form of a C++ program,  I mean:

#include <vector>
#include <...>
...

void my_macro(int a, int b, int c)
{
....
}


well, if I call this macro from another one, with the command

gROOT->Macro("my_macro.C(1,2,3)");

I get the following erro message:

Error in <TROOT::Macro>: macro my_macro.C(1,2,3) not found in path 
.:/home/applicazioni/root/macros

Such a directory does not exist by default, nevertheless I get the same 
error if I create it and if I put my_macro.C in it.

What can I do...
I feel I'm drowning in a glass of water....
Cheers,
Tommaso



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