]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
If the track is not matched to TOF, set the labels to -1 in the getter
authorshahoian <ruben.shahoyan@cern.ch>
Mon, 29 Sep 2014 15:52:56 +0000 (17:52 +0200)
committershahoian <ruben.shahoyan@cern.ch>
Mon, 29 Sep 2014 15:53:33 +0000 (17:53 +0200)
STEER/ESD/AliESDtrack.cxx

index 0f558ea8fb12f9f9d2289da8da4c1936cebc6ffb..2cc2ba3e9d94597de4cbf3b97e2f63f87541f4d8 100644 (file)
@@ -2391,8 +2391,8 @@ void AliESDtrack::GetTOFLabel(Int_t *p) const {
     for (Int_t i=0; i<3; i++) p[i]=tofcl->GetLabel(i);
   }
   else{
-    if(fTOFLabel)
-      for (Int_t i=0; i<3; i++) p[i]=fTOFLabel[i];
+    if(fTOFLabel) for (Int_t i=0; i<3; i++) p[i]=fTOFLabel[i];
+    else for (int i=3;i--;) p[i] = -1;
   }
 }