fNprimary = 0 ;
fNMaxPrimary = 20 ;
fNiparent = 0 ;
- fNMaxiparent = fNMaxPrimary*10;
+ fNMaxiparent = 40; //fNMaxPrimary*10;
fPrimary = new Int_t[fNMaxPrimary] ;
fIparent = new Int_t[fNMaxiparent] ;
}
// ctor with all data
fNMaxPrimary = 20 ;
- fNMaxiparent = fNMaxPrimary*10;
+ fNMaxiparent = 40 ; //fNMaxPrimary*10;
fPrimary = new Int_t[fNMaxPrimary] ;
fIparent = new Int_t[fNMaxiparent] ;
fAmp = DigEnergy ;
for ( i = 1; i < fNMaxPrimary ; i++)
fPrimary[i] = -1 ;
- for ( Int_t j =1; j< fNMaxiparent ; j++)
- fIparent[j] = -1 ;
+ for ( i =1; i< fNMaxiparent ; i++)
+ fIparent[i] = -1 ;
}
//____________________________________________________________________________
cout << "printindex = " << printindex << " primary = " << fPrimary[printindex];
cout <<endl;
cout << "AliEMCALDigit >> Increase NMaxPrimary "<< endl ;
-// return *this ;
+ return *this ;
}
}
}
max2++;}
if(fNiparent==fNMaxiparent) {
Int_t printindex ;
- for (printindex = 0 ; printindex < max1 ; printindex++)
- cout << "printindex = " << printindex << " primary = " << fPrimary[printindex];
+ for (printindex = 0 ; printindex < max2 ; printindex++)
+ cout << "printindex = " << printindex << " parent = " << fIparent[printindex];
cout <<endl;
cout << "AliEMCALDigit >> Increase NMaxiparent "<< endl ;
return *this ;