]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PHOS/AliPHOSDigit.cxx
A new CreateFastRecPoints has been made and the old one made compatible.
[u/mrichter/AliRoot.git] / PHOS / AliPHOSDigit.cxx
index 9ffb54cfe2fe4ac592e192f7abac4c53904b84a5..dd21e8089840efa78d72a0406c2a059fe925f652 100644 (file)
@@ -122,7 +122,7 @@ Int_t AliPHOSDigit::GetPrimary(Int_t index) const
 {
   // retrieves the primary particle number given its index in the list 
   Int_t rv = -1 ;
-  if ( index <= fNprimary ){
+  if ( index <= fNprimary && index > 0){
     rv = fPrimary[index-1] ;
   } 
 
@@ -140,7 +140,7 @@ void AliPHOSDigit::ShiftPrimary(Int_t shift)
   //shifts primary number to BIG offset, to separate primary in different TreeK
   Int_t index  ;
   for(index = 0; index <fNprimary; index ++ ){
-    fPrimary[index] = fPrimary[index]+ shift * 10000000   ;
+    fPrimary[index] = fPrimary[index]+ shift ;
   } 
 }
 //____________________________________________________________________________