Re: [ROOT] pointer to 2-dimensional array of TH1F

From: Brett Viren (bv@bnl.gov)
Date: Tue Dec 03 2002 - 18:02:41 MET


Martin Brueckel writes:
 > TH1F* values[n1][n2];

BTW, this is illegal C++ unless n1 and n2 are const ints.  However,
g++ will let you get away with it.

 > function(**values);
 > 
 > with the function:
 > 
 > class::function(TH1F* values[n2]){
 > 
 > values[i][j]->Fit(...);

values[i][j].Fit(...);

-Brett.



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