]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
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 80d207513b5d67e638505799553c1c297ff3940c..77e35c29bbe6a875408f1c2f52ea815ad0cefc0c 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