Re: [ROOT] Two dimension array of histogram

From: Luiz Martins Mundim Filho (mundim@uerj.br)
Date: Wed Nov 13 2002 - 19:35:37 MET






  


The obvious way. Sorry :-[ 
Before triyng it, I searched the root site and found a different way like TH1F **x = new TH1F*[n] and so on. then I tried variation of this solution...

Thanks a lot

Luiz

Rene Brun wrote:
Hi Luiz,

Do something like:
  const int N=10, M=20;
  TH1F *h[N][M];

  for (int i=0;i<N;i++) {
     for int j=0;j<M;j++) {
        h[i][j] = new TH1F(....
     }
  }

Rene Brun

On Wed, 13 Nov 2002, Luiz Martins Mundim Filho wrote:

  
Hi rooters

In my analysis program, I need a two dimension array of histograms. I 
found how to define and fill an one dimension array, but could not 
define one the way I really need. I searched the root site also and 
found nothing like this.

Could you help me?

Thanks

Luiz

    

  



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:17 MET