Re: [ROOT] CINT commands in a file

From: Nick van Eijndhoven (Nick@phys.uu.nl)
Date: Tue Feb 06 2001 - 09:03:27 MET


Hi Thomas and Rene,
An alternative way, which I use myself, to do this is to put your
named macros in the file rootalias.C.
In this way all your macros are automatically loaded when you start
a root session.

                                              Cheers,
                                               Nick.

-- 
Dr. Nick van Eijndhoven mailto:nick@phys.uu.nl http://www.phys.uu.nl/~nick
--------------------------------------------------------------------------
Org.:    Utrecht University/Nikhef, Department of Subatomic Physics
Address: P.O. Box 80.000, NL-3508 TA Utrecht, The Netherlands
Phone:   +31-30-2532331(direct) +31-30-2531492(secr.)  Fax: +31-30-2518689
NIKHEF:  +31-20-5922028(direct) +31-20-5922000(secr.)  Fax: +31-20-5925155
CERN:    +41-22-7679751(direct) +41-22-7675857(secr.)  Fax: +41-22-7679480
Offices: Buys Ballot lab. 710 (Utrecht)   H350 (Nikhef)   B23 1-020 (CERN)
--------------------------------------------------------------------------
 

Rene Brun wrote:
> 
> Hi Thomas,
> You should do this in the startup macro rootlogon.C
> You can also choose the name of the startup macro in system.rootrc or
> the local .rootrc.
> 
> Rene Brun
> 
> Thomas Eberl wrote:
> >
> > 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