]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
fixes the out of bounds messages on accessing empty friend events
authormikolaj <mikolaj@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 16 Jul 2012 20:13:30 +0000 (20:13 +0000)
committermikolaj <mikolaj@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 16 Jul 2012 20:13:30 +0000 (20:13 +0000)
by looping over the number of friend tracks instead if esd tracks

TPC/AliTPCcalibCalib.cxx

index 5ac65539bb6caf7ee8cc9857bc426ee7971d3e2f..7e35d4ddff18fd96c392ffc0e35ac5d6b1604420 100644 (file)
@@ -142,7 +142,7 @@ void     AliTPCcalibCalib::Process(AliESDEvent *event){
   }
   if (ESDfriend->TestSkipBit()) return;
   if (GetDebugLevel()>20) printf("Hallo world: Im here\n");
-  Int_t ntracks=event->GetNumberOfTracks();   
+  Int_t ntracks=ESDfriend->GetNumberOfTracks();   
   //AliTPCcalibDB::Instance()->SetExBField(fMagF);
 
   //