new classes for digitization derived from TTask
[u/mrichter/AliRoot.git] / PHOS / AliPHOSDigit.cxx
index 18aa5c1d36f2a5ebafa87f3fd086b8566efbc2e1..8857742736a8555f8a244c91e489841e6924a8e5 100644 (file)
@@ -129,7 +129,14 @@ Int_t AliPHOSDigit::GetPrimary(Int_t index) const
   return rv ; 
   
 }
-
+//____________________________________________________________________________
+void AliPHOSDigit::ShiftPrimary(Int_t shift){
+  //shifts primary nimber to BIG offset, to separate primary in different TreeK
+  Int_t index  ;
+  for(index = 0; index <fNprimary; index ++ ){
+    fPrimary[index] = fPrimary[index]+ shift * 10000000   ;
+  } 
+}
 //____________________________________________________________________________
 Bool_t AliPHOSDigit::operator==(AliPHOSDigit const & digit) const 
 {