Don't copy MC label for non-MC dataset (missed track category in previous commit)
authorsaiola <salvatore.aiola@cern.ch>
Thu, 10 Jul 2014 03:01:32 +0000 (23:01 -0400)
committersaiola <salvatore.aiola@cern.ch>
Thu, 10 Jul 2014 03:01:32 +0000 (23:01 -0400)
PWG/EMCAL/AliEmcalEsdTrackFilterTask.cxx

index 73f5e67..47f6d66 100644 (file)
@@ -204,6 +204,7 @@ void AliEmcalEsdTrackFilterTask::UserExec(Option_t *)
          AliEMCALRecoUtils::ExtrapolateTrackToEMCalSurface(newTrack,fDist);
         newTrack->SetBit(BIT(22),0); 
         newTrack->SetBit(BIT(23),0);
+       if (!fIsMC) newTrack->SetLabel(0);
         ++ntrnew;
       } else if (fHybridTrackCuts->AcceptTrack(etrack)) {
        if (!etrack->GetConstrainedParam())
@@ -217,7 +218,6 @@ void AliEmcalEsdTrackFilterTask::UserExec(Option_t *)
          if (fTrackEfficiency < r)
            continue;
        }
-
        AliESDtrack *newTrack = new ((*fTracks)[ntrnew]) AliESDtrack(*etrack);
        if (fDoPropagation)     
          AliEMCALRecoUtils::ExtrapolateTrackToEMCalSurface(newTrack,fDist);