Fix for bug #50174: Index out of bound in TPC digitization for ppbench. There was...
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 2 Jul 2009 09:59:44 +0000 (09:59 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 2 Jul 2009 09:59:44 +0000 (09:59 +0000)
TPC/AliTPCBuffer.cxx

index 2c459b6..3afa546 100644 (file)
@@ -149,7 +149,7 @@ void AliTPCBuffer::WriteRowBinary(Int_t eth,AliSimDigits *digrow,Int_t minPad,In
   data.Sec=sec;
   data.SubSec=SubSec;
   data.Row=row;
-  digrow->First();
+  if (!digrow->First()) return;
   Int_t padID=-1;
   Int_t ddlNumber=0;
   ofstream ftxt;