Correct material budget for tracks stopped at TRD (S.Arcelli)
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 12 Oct 2004 11:43:36 +0000 (11:43 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 12 Oct 2004 11:43:36 +0000 (11:43 +0000)
TOF/AliTOFtracker.cxx

index 18b1d3e..df1161c 100644 (file)
@@ -184,10 +184,11 @@ void AliTOFtracker::CollectESD() {
 
     // TRD good tracks, already propagated at 371 cm
 
-    if (
-       ((t->GetStatus()&AliESDtrack::kTRDout)!=0) && 
-       ((t->GetStatus()&AliESDtrack::kTRDStop)==0)){
-      AliTOFtrack *track = new AliTOFtrack(*t); 
+    AliTOFtrack *track = new AliTOFtrack(*t); // New
+    Double_t x = track->GetX(); //New
+
+    if (((t->GetStatus()&AliESDtrack::kTRDout)!=0 ) && 
+        ( x >= AliTOFGeometry::RinTOF()) ){
       track->SetSeedIndex(i);
       t->UpdateTrackParams(track,AliESDtrack::kTOFout);    
       new(aTOFTrack[fNseedsTOF]) AliTOFtrack(*track);
@@ -198,7 +199,6 @@ void AliTOFtracker::CollectESD() {
     // Propagate the rest of TPCbp  
 
     else {
-      AliTOFtrack *track = new AliTOFtrack(*t);
       if(track->PropagateToInnerTOF(fHoles)){ // temporary solution
        //      if(track->PropagateToInnerTOF(fGeom->GetHoles())){
        track->SetSeedIndex(i);