[ROOT] pointer to 2-dimensional array of TH1F

From: Martin Brueckel (martin555@gmx.net)
Date: Tue Dec 03 2002 - 18:48:17 MET


Hallo,

I  want to pass a pointer to a 2-dimensional array of TH1F-histograms to 
a function, but it doesn't work:

I try:

TH1F* values[n1][n2];
function(**values);

with the function:

class::function(TH1F* values[n2]){

values[i][j]->Fit(...);
...
}


and similar but the compiler always gives out errors like : base operand 
of -> has non-pointer-type "TH1F".
Does anyone know how to treat the problem properly ?

Thanks in advance,
Martin



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