But then when I do that I get an error that
Error: Function passParameters("parameter1","parameter2") is not defined in current scope
Regards,
Seforo Mohlalisi
Cell: +27 79 226 3682
Emails: seforo_at_gmail.com seforomohlalisi_at_yahoo.co.uk
HI Seforo,
> I have a file named passParameters.cxx and in it main function is defined
> int main(int argc, const char **argv)
> {
>    //code goes here
> }
> I can generate an executable passParameters with g++ and run as follow:
> ./passParameters parameter1 pameter2 .. parametern
>
> How can I achieve this with ROOT?
> I can compile as
> root[0].L passParameters.cxx+
> Then how do I pass the parameters?
Probably, you can do the following:
root[0].L passParameters.cxx
root[0]passParameters("parameter1","parameter2",....);
cheers,
-Nitesh __________________________________________________________ Sent from Yahoo! Mail. A Smarter Email http://uk.docs.yahoo.com/nowyoucan.htmlReceived on Wed May 28 2008 - 14:31:59 CEST
This archive was generated by hypermail 2.2.0 : Wed May 28 2008 - 17:50:02 CEST