Update of residual histograms
authorcblume <cblume@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 14 Mar 2008 13:28:25 +0000 (13:28 +0000)
committercblume <cblume@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 14 Mar 2008 13:28:25 +0000 (13:28 +0000)
TRD/AliTRDtrackV1.cxx

index e35452c..5d10a94 100644 (file)
@@ -16,6 +16,7 @@
 /* $Id$ */
 
 #include "AliESDtrack.h"
+#include "AliTracker.h"
 
 #include "AliTRDtrackV1.h"
 #include "AliTRDcluster.h"
@@ -352,6 +353,11 @@ Bool_t  AliTRDtrackV1::Update(AliTRDseedV1 *trklt, Double_t chisq)
   if(!AliExternalTrackParam::Update(p, cov)) return kFALSE;
        //Print();
 
+       AliTRDcluster *c = 0x0;
+       Int_t ic = 0; while(!(c = trklt->GetClusters(ic))) ic++;
+       AliTracker::FillResiduals(this, p, cov, c->GetVolumeId());
+
+
   // Register info to track
 //   Int_t n      = GetNumberOfClusters();
 //   fIndex[n]    = index;