]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Taking into account the case of underlying event
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 9 Feb 2004 09:19:23 +0000 (09:19 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 9 Feb 2004 09:19:23 +0000 (09:19 +0000)
TPC/AliSimDigits.cxx

index a06503324990da2b315794dd6ce506a089d507d7..e182ced8ce2dff3c7e0fc99dcbc382fe190c8848 100644 (file)
@@ -201,6 +201,7 @@ void  AliSimDigits::ExpandTrackBuffer1()
     Int_t num = fTracks->At(i);
     if (num<0) row-=num;   //negative number mean number of zeroes (no tracks of gibven level no need to write to array) 
     else {
+      num %= 10000000; //PH: take into account the case of underlying events
       i++;
       Int_t id =  fTracks->At(i);
       for (j = 0; j<num; j++,row++) (*buf)[level*all+col*fNrows+row]=id;