Coping primaries corrected
authorschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 24 Apr 2003 08:12:29 +0000 (08:12 +0000)
committerschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 24 Apr 2003 08:12:29 +0000 (08:12 +0000)
PHOS/AliPHOSDigit.cxx

index 80d2075..77e35c2 100644 (file)
@@ -176,8 +176,8 @@ AliPHOSDigit& AliPHOSDigit::operator+(AliPHOSDigit const & digit)
       else{
        for(Int_t index = fNprimary-1 ; index >=0 ; index--){ //move old primaries      
          if(fPrimary[index]>-1){
-           fPrimary[fNprimary+toAdd]=fPrimary[index] ;
            toAdd-- ;
+           fPrimary[fNprimary+toAdd]=fPrimary[index] ;
          }
        }
        //copy new primaries