- Int_t tempo1[3] ;
- tempo1[0] = fPrimary1 ;
- tempo1[1] = fPrimary2 ;
- tempo1[2] = fPrimary3 ;
-
- Int_t tempo2[3] ;
- tempo2[0] = digit.fPrimary1 ;
- tempo2[1] = digit.fPrimary2 ;
- tempo2[2] = digit.fPrimary3 ;
-
- Int_t max1 = fNprimary ;
- Int_t max2 = digit.fNprimary ;
-
- if ( fNprimary >= 3 ) {
- cout << "AliPHOSDigit + operator ERROR > too many primaries, modify AliPHOSDigit" << endl ;
- }
- else {
- fNprimary += digit.fNprimary ;
- if ( fNprimary > 3 ) {
- cout << "AliPHOSDigit + operator ERROR > too many primaries, modify AliPHOSDigit" << endl ;
- fNprimary = 3 ;
- }
-
- Int_t tempo3[3] ;
- Int_t index ;
- for (index = 0 ; index < 3 ; index++)
- tempo3[index] = 0 ;
-
- for (index = 0 ; index < max1 ; index++)
- tempo3[index] = tempo1[index] ;
-
- for (index = 0 ; index < max2 ; index++)
- tempo3[index+max1] = tempo2[index] ;
-
- fPrimary1 = tempo3[0] ;
- fPrimary2 = tempo3[1] ;
- fPrimary3 = tempo3[2] ;
-
- }
- // end of crummy stuff
-