Using correct flags (Yu.Belikov)
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 14 Jan 2004 09:21:37 +0000 (09:21 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 14 Jan 2004 09:21:37 +0000 (09:21 +0000)
ITS/AliITSComparisonV2.C
TPC/AliTPCtracker.cxx

index 3a295655eab519afa6548e8a4d5b43e9242fc6c4..39f0c1b7e5219b376aa8ad72f62a4de8d814fb37 100644 (file)
@@ -124,13 +124,13 @@ Int_t AliITSComparisonV2() {
        UInt_t flags=AliESDtrack::kTPCin|AliESDtrack::kITSin;
 
         if ((status&AliESDtrack::kITSrefit)==0)
-         if ((status&flags)!=status) continue;
+         if ((status&flags)!=flags) continue;
 
         AliITStrackV2 *iotrack=0;
         iotrack=new AliITStrackV2(*t);
         //if (t->GetConstrainedChi2()>=20) continue;   //  constrained 
         //else iotrack=new AliITStrackV2(*t,kTRUE);    //     track
-        if ((status&flags)==status) {
+        if ((status&flags)==flags) {
            iotrack->PropagateTo(3.,0.0028,65.19);
            iotrack->PropagateToVertex();
         }
index beba0adfa2575bf89f867278cd6f40a7df89baf8..9726fa84c36fd5e0c1ca9276798fdf56209f829e 100644 (file)
@@ -730,12 +730,17 @@ Int_t AliTPCtracker::RefitInward(AliESD* event) {
     AliESDtrack* track = event->GetTrack(i);
     ULong_t status = track->GetStatus();
 
+    if ( (status & AliESDtrack::kTPCrefit) != 0 ) continue;    
     if ( (status & AliESDtrack::kTPCout ) == 0 ) continue;
-    if ( (status & AliESDtrack::kTPCrefit) != 0 ) continue;
-    
+
+    if ( (status & AliESDtrack::kTRDout ) != 0 ) 
+      if ( (status & AliESDtrack::kTRDrefit ) == 0 ) continue;
+
     AliTPCtrack* tpcTrack = new AliTPCtrack(*track);
     AliTPCseed* seed = new AliTPCseed(*tpcTrack, tpcTrack->GetAlpha());
 
+    if ( (status & AliESDtrack::kTRDrefit) == 0 ) seed->ResetCovariance();
+
     fSectors = fOuterSec;
 
     Int_t res = FollowRefitInward(seed, tpcTrack);