]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Correcting warning: array subscript is above array bounds for Kinks
authorbhippoly <bhippoly@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 5 Sep 2010 21:15:35 +0000 (21:15 +0000)
committerbhippoly <bhippoly@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 5 Sep 2010 21:15:35 +0000 (21:15 +0000)
PWG2/KINK/AliResonanceKink.cxx
PWG2/KINK/AliResonanceKinkLikeSign.cxx

index 5e95b2f7d7c3ce61f08896470af3a3a81c716537..37a7202f2054bdf8a4fed97f0b8501e0440bc46c 100644 (file)
@@ -809,27 +809,27 @@ Bool_t AliResonanceKink::IsAcceptedForTrack(AliESDEvent *localesd,
   } 
 
   if(extCov[0] > fMaxCov0) {
-      if (fDebug > 1) Printf("IsAccepted: Track rejected because it has a value of cov[0] of %lf (max. requested: %lf)", cov[0], fMaxCov0);
+      if (fDebug > 1) Printf("IsAccepted: Track rejected because it has a value of cov[0] of %lf (max. requested: %lf)", extCov[0], fMaxCov0);
       return kFALSE;
   }
   
   if(extCov[2] > fMaxCov2) {
-      if (fDebug > 1) Printf("IsAccepted: Track rejected because it has a value of cov[2] of %lf (max. requested: %lf)", cov[2], fMaxCov2);
+      if (fDebug > 1) Printf("IsAccepted: Track rejected because it has a value of cov[2] of %lf (max. requested: %lf)", extCov[2], fMaxCov2);
       return kFALSE;
   }
     
   if(extCov[5] > fMaxCov5) {
-      if (fDebug > 1) Printf("IsAccepted: Track rejected because it has a value of cov[5] of %lf (max. requested: %lf)", cov[5], fMaxCov5);
+      if (fDebug > 1) Printf("IsAccepted: Track rejected because it has a value of cov[5] of %lf (max. requested: %lf)", extCov[5], fMaxCov5);
       return kFALSE;
   }  
   
   if(extCov[9] > fMaxCov9) {
-      if (fDebug > 1) Printf("IsAccepted: Track rejected because it has a value of cov[9] of %lf (max. requested: %lf)", cov[9], fMaxCov9);
+      if (fDebug > 1) Printf("IsAccepted: Track rejected because it has a value of cov[9] of %lf (max. requested: %lf)", extCov[9], fMaxCov9);
       return kFALSE;
   }  
   
   if(extCov[14] > fMaxCov14) {
-      if (fDebug > 1) Printf("IsAccepted: Track rejected because it has a value of cov[14] of %lf (max. requested: %lf)", cov[14], fMaxCov14);
+      if (fDebug > 1) Printf("IsAccepted: Track rejected because it has a value of cov[14] of %lf (max. requested: %lf)", extCov[14], fMaxCov14);
       return kFALSE;
   } 
  
index 0f5cd4ac9f0a7c630931da56a9d26b6158191ef0..0223c800bb12f4488b4bc9cabcf297834aa4d8ec 100644 (file)
@@ -331,27 +331,27 @@ Bool_t AliResonanceKinkLikeSign::IsAcceptedForTrack(AliESDEvent *localesd,
   } 
 
   if(extCov[0] > fMaxCov0) {
-      if (fDebug > 1) Printf("IsAccepted: Track rejected because it has a value of cov[0] of %lf (max. requested: %lf)", cov[0], fMaxCov0);
+      if (fDebug > 1) Printf("IsAccepted: Track rejected because it has a value of cov[0] of %lf (max. requested: %lf)", extCov[0], fMaxCov0);
       return kFALSE;
   }
   
   if(extCov[2] > fMaxCov2) {
-      if (fDebug > 1) Printf("IsAccepted: Track rejected because it has a value of cov[2] of %lf (max. requested: %lf)", cov[2], fMaxCov2);
+      if (fDebug > 1) Printf("IsAccepted: Track rejected because it has a value of cov[2] of %lf (max. requested: %lf)", extCov[2], fMaxCov2);
       return kFALSE;
   }
     
   if(extCov[5] > fMaxCov5) {
-      if (fDebug > 1) Printf("IsAccepted: Track rejected because it has a value of cov[5] of %lf (max. requested: %lf)", cov[5], fMaxCov5);
+      if (fDebug > 1) Printf("IsAccepted: Track rejected because it has a value of cov[5] of %lf (max. requested: %lf)", extCov[5], fMaxCov5);
       return kFALSE;
   }  
   
   if(extCov[9] > fMaxCov9) {
-      if (fDebug > 1) Printf("IsAccepted: Track rejected because it has a value of cov[9] of %lf (max. requested: %lf)", cov[9], fMaxCov9);
+      if (fDebug > 1) Printf("IsAccepted: Track rejected because it has a value of cov[9] of %lf (max. requested: %lf)", extCov[9], fMaxCov9);
       return kFALSE;
   }  
   
   if(extCov[14] > fMaxCov14) {
-      if (fDebug > 1) Printf("IsAccepted: Track rejected because it has a value of cov[14] of %lf (max. requested: %lf)", cov[14], fMaxCov14);
+      if (fDebug > 1) Printf("IsAccepted: Track rejected because it has a value of cov[14] of %lf (max. requested: %lf)", extCov[14], fMaxCov14);
       return kFALSE;
   }