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 5ac6553..7e35d4d 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);
 
   //