Re: [ROOT] CINT commands in a file

From: Valeri Fine (Faine) (fine@bnl.gov)
Date: Mon Feb 05 2001 - 18:30:03 MET


Use:

gROOT->Macro("<macrofile name>")

see:

http://root.cern.ch/root/htmldoc/TROOT.html#TROOT:Macro

It says:
" . . .
Int_t Macro(const char *filename)

 Execute a macro in the interpreter. Equivalent to the command line
 command ".x filename".

. . . "



  This helps,
        Valery


----- Original Message -----
From: Philippe Canal <pcanal@fnal.gov>
To: Thomas Eberl <Thomas.Eberl@ph.tum.de>; <roottalk@pcroot.cern.ch>
Sent: 5 февраля 2001 г. 11:15
Subject: RE: [ROOT] CINT commands in a file


> Hi,
>
> You can always use:
>
> gROOT->ProcessLine(".L filename.C");
>
> Philippe.
>
> -----Original Message-----
> From: owner-roottalk@pcroot.cern.ch
> [mailto:owner-roottalk@pcroot.cern.ch]On Behalf Of Thomas Eberl
> Sent: Monday, February 05, 2001 10:04 AM
> To: roottalk@pcroot.cern.ch
> Subject: [ROOT] CINT commands in a file
>
>
> Dear rooters,
>
> I have a number of Macros with functions ("named scripts"). I need to
> load all these files at the beginning of each ROOT session in order to
> be able to use these functions. Usually this is done via a ".L filename"
> at the CINT prompt. As I need to load many of these files, I would like
> to tell CINT in a script to load all my files with functions.
> Unfortunately, I have not found a way to put CINT commands starting
> usually with a dot (e.g. ".x") in a script. Is there a way ??
>
> Thank you
>
>
> Thomas Eberl
>
>



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