Correction of Chi2 definition
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 7 Nov 2011 07:31:38 +0000 (07:31 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 7 Nov 2011 07:31:38 +0000 (07:31 +0000)
F. Prino

ANALYSIS/AliAnalysisTaskESDfilter.cxx

index d8b6e62..a5f571b 100644 (file)
@@ -2044,7 +2044,7 @@ Double_t  AliAnalysisTaskESDfilter::Chi2perNDF(AliESDtrack* track)
     Int_t  nClustersTPC = track->GetTPCNcls();\r
 \r
     if ( nClustersTPC > 5) {\r
-       return (track->GetTPCchi2()/Float_t(nClustersTPC - 5));\r
+       return (track->GetTPCchi2()/Float_t(2. * nClustersTPC - 5));\r
     } else {\r
        return (-1.);\r
     }\r