]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Bug fix by Markus
authorcblume <cblume@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 10 Apr 2008 12:30:10 +0000 (12:30 +0000)
committercblume <cblume@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 10 Apr 2008 12:30:10 +0000 (12:30 +0000)
TRD/AliTRDtrackerV1.cxx

index 2ad36db4ab14c2ede3dba746a32f75ea8df18796..55f732664721d339d962722a908632693100d251 100644 (file)
@@ -1643,19 +1643,19 @@ Int_t AliTRDtrackerV1::Clusters2TracksStack(AliTRDtrackingChamber **stack, TClon
        }
                        
        AliTRDtrackV1 *track = MakeTrack(&sseed[trackIndex*kNPlanes], trackParams);
-       // computes PID for track
-       track->CookPID();
-       // update calibration references using this track
-       if(calibra->GetHisto2d()) calibra->UpdateHistogramsV1(track);
-
        if(!track){
          //AliWarning("Fail to build a TRD Track.");
          continue;
        }
        //AliInfo("End of MakeTrack()");
+       // computes PID for track
+       track->CookPID();
+       // update calibration references using this track
+       if(calibra->GetHisto2d()) calibra->UpdateHistogramsV1(track);
        AliESDtrack esdTrack;
        esdTrack.UpdateTrackParams(track, AliESDtrack::kTRDout);
        esdTrack.SetLabel(track->GetLabel());
+       track->UpdateESDtrack(&esdTrack);
        // write ESD-friends if neccessary
        if (AliTRDReconstructor::StreamLevel() > 0){
          //printf("Creating Calibrations Object\n");