set track matching flag
authorloizides <loizides@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 22 Jan 2012 21:32:05 +0000 (21:32 +0000)
committerloizides <loizides@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 22 Jan 2012 21:32:05 +0000 (21:32 +0000)
PWG4/UserTasks/EmcalTasks/AliEmcalTrackPropagatorTask.cxx

index b67a929..fadea44 100644 (file)
@@ -91,7 +91,7 @@ void AliEmcalTrackPropagatorTask::UserExec(Option_t *)
     AliESDtrack *eTrack = static_cast<AliESDtrack*>(fTracks->At(i));
     if (!eTrack)
       continue;
-    eTrack->SetEMCALcluster(AliVTrack::kEMCALNoMatch);
+    eTrack->ResetStatus(AliVTrack::kEMCALmatch);
     if(eTrack->Pt()<fMinPtCut) 
       continue;
     Double_t phi = eTrack->Phi()*TMath::RadToDeg();
@@ -112,9 +112,9 @@ void AliEmcalTrackPropagatorTask::UserExec(Option_t *)
                                                             phiout);
     if (!ret)
       continue;
-    eTrack->SetEMCALcluster(-123); //indicate that we have eta/phi on calo surface
-    eTrack->SetTRDQuality(etaout); //store eta
-    eTrack->SetTRDBudget(phiout);  //store phi
+    if (TMath::Abs(etaout)>0.75 || (phiout<70*TMath::DegToRad()) || (phiout>190*TMath::DegToRad()))
+      continue;
     eTrack->SetOuterParam(&emcalParam,AliExternalTrackParam::kMultSec);
+    eTrack->SetStatus(AliVTrack::kEMCALmatch);
   }
 }