series of histograms

From: Damir Buskulic (buskulic@lapp.in2p3.fr)
Date: Wed Jun 11 1997 - 17:53:58 MEST


A series of histograms have been filled with hbook and converted with 
h2root. Their names are now h1..h9 (for example) How can I access histo 
hi in a loop over all the histograms ?
For instance, how would you translate this PAW sequence to ROOT ?

DO I=1,9
  H/PL [i]
ENDDO

Of course, creating histos from scratch is obvious, just have to define 
an array. The problem is for histos converted with h2root.
On the other hand, what should I do to keep this "array" arrangement when 
I save the histos to a file ? Put them in different branches of a Tree ?

Cheers

Damir & Robert

=====================================================================
| Damir Buskulic                  | Universite de Savoie/LAPP       |
|                                 | Chemin de Bellevue, B.P. 110    |
| Tel : +33 (0)450091600          | F-74941 Annecy-le-Vieux Cedex   |
| e-mail: buskulic@lapp.in2p3.fr  | FRANCE                          |
=====================================================================
mailto:buskulic@lapp.in2p3.fr



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:26:19 MET