Dear ROOT experts,
I know that I can define an array as data member of a ROOT derived class
with dynamic dimension in this way:
Int_t fMyDim;
Float_t *fMyArray ; //[fMyDim] my array with dimension fMyDim
And in the constructor I can initializa this variable as:
....
fMyDim = dim;
fMyArray = new Float_t[fMyDim] ;
for ( Int_t n = 0; n < fMyDim; n++ ){
fMyArray[n] = MyVal;
}
If I have a bi-dimensional array
fMy2DArray[n][fMyDim]
where the first dimension is a known constant value, but I want to use a dynamic value for the second dimension.
Can I using something similar to the 1-dim array as before?
Cheers,
Vito Received on Wed Mar 17 2010 - 14:43:40 CET
This archive was generated by hypermail 2.2.0 : Wed Mar 17 2010 - 23:50:01 CET