Re: [ROOT] Command Line arguments & Carrot

From: Valeriy Onuchin (onuchin@sirius.ihep.su)
Date: Fri Nov 09 2001 - 11:20:51 MET


 Hi again,
sorry, I forgot to answer to the question

Roland Bramm wrote:

>
> Hi,
>
> is it possible to pass command line argumrntd to a root macro , like
> root MyMacro.C <option for the macro> ?
>

 - To pass parameters to macro use QUERY_STRING (the part of URL after '?')
 - The parameters and their values are key=value paires separated by '&'
 - To get value(as string) of parameter from inside the macro use gSystem->Getenv(param_name)

 For example:

http://localhost/CarrotExamples/hsimple7.C?entries=20000&sigma=2&mean=10


Check also a set of tutorials ( hsimple* ) in CarrotExamples dir
which comes along with distributive.


Regards.    Valeriy



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:51:07 MET