how to store and execute later a series of cint commands

Elemer Nagy (nagy@cppm.in2p3.fr)
Thu, 7 Aug 97 16:31:04 METDST


In PAW one has the possibility to write several PAW commands
in a mfn.kumac file and later execute this macro inside PAW by
typeing

exec mfn

Does exist a similar facility in ROOT, and if yes, please tell
me the generic name of the file to be created and the command inside ROOT
to be executed.

Ex.: I open a file and plot a histogram:

TFile f("htest.root");
f.ls();
h2434.Draw();
etc...

Next time I wouldn't like to type all these but execute a file
which contains these commands. How to do this?

Thanks.


--
---------------------------------------------------------------------------
| Elemer Nagy                  |  Phone    : (+33) 04-91-82-72-73         |
| C.P.P.M.                     |  Fax      : (+33) 04-91-82-72-99         |
| 163, av. de Luminy Case 907  |  Internet : nagy@cppm.in2p3.fr           |
| F-13288 Marseille CEDEX 09   |                                          |
| FRANCE                       |                                          |
---------------------------------------------------------------------------