adding TPCFitMap to the AODtrack
[u/mrichter/AliRoot.git] / ANALYSIS / AliAnalysisTaskESDfilter.cxx
index aff0131..2f9bd34 100644 (file)
@@ -484,6 +484,7 @@ void AliAnalysisTaskESDfilter::ConvertCascades(const AliESDEvent& esd)
                                                                            vtx->UsesTrack(esdCascadeBach->GetID()),\r
                                                                            AliAODTrack::kSecondary,\r
                                                                            selectInfo);\r
+           aodTrack->SetTPCFitMap(esdCascadeBach->GetTPCFitMap());\r
            aodTrack->SetTPCClusterMap(esdCascadeBach->GetTPCClusterMap());\r
            aodTrack->SetTPCSharedMap (esdCascadeBach->GetTPCSharedMap());\r
            aodTrack->SetChi2perNDF(Chi2perNDF(esdCascadeBach));\r
@@ -568,6 +569,7 @@ void AliAnalysisTaskESDfilter::ConvertCascades(const AliESDEvent& esd)
                     vtx->UsesTrack(esdCascadePos->GetID()),\r
                     AliAODTrack::kSecondary,\r
                     selectInfo);\r
+        aodTrack->SetTPCFitMap(esdCascadePos->GetTPCFitMap());\r
         aodTrack->SetTPCClusterMap(esdCascadePos->GetTPCClusterMap());\r
         aodTrack->SetTPCSharedMap (esdCascadePos->GetTPCSharedMap());\r
         aodTrack->SetChi2perNDF(Chi2perNDF(esdCascadePos));\r
@@ -614,6 +616,7 @@ void AliAnalysisTaskESDfilter::ConvertCascades(const AliESDEvent& esd)
                                                       vtx->UsesTrack(esdCascadeNeg->GetID()),\r
                                                       AliAODTrack::kSecondary,\r
                                                       selectInfo);\r
+        aodTrack->SetTPCFitMap(esdCascadeNeg->GetTPCFitMap());\r
         aodTrack->SetTPCClusterMap(esdCascadeNeg->GetTPCClusterMap());\r
         aodTrack->SetTPCSharedMap (esdCascadeNeg->GetTPCSharedMap());\r
         aodTrack->SetChi2perNDF(Chi2perNDF(esdCascadeNeg));\r
@@ -856,6 +859,7 @@ void AliAnalysisTaskESDfilter::ConvertV0s(const AliESDEvent& esd)
                                                     vtx->UsesTrack(esdV0Pos->GetID()),\r
                                                     AliAODTrack::kSecondary,\r
                                                     selectInfo);\r
+           aodTrack->SetTPCFitMap(esdV0Pos->GetTPCFitMap());\r
            aodTrack->SetTPCClusterMap(esdV0Pos->GetTPCClusterMap());\r
            aodTrack->SetTPCSharedMap (esdV0Pos->GetTPCSharedMap());\r
            aodTrack->SetChi2perNDF(Chi2perNDF(esdV0Pos));\r
@@ -900,6 +904,7 @@ void AliAnalysisTaskESDfilter::ConvertV0s(const AliESDEvent& esd)
                                                     vtx->UsesTrack(esdV0Neg->GetID()),\r
                                                     AliAODTrack::kSecondary,\r
                                                     selectInfo);\r
+           aodTrack->SetTPCFitMap(esdV0Neg->GetTPCFitMap());\r
            aodTrack->SetTPCClusterMap(esdV0Neg->GetTPCClusterMap());\r
            aodTrack->SetTPCSharedMap (esdV0Neg->GetTPCSharedMap());\r
            aodTrack->SetChi2perNDF(Chi2perNDF(esdV0Neg));\r
@@ -1100,6 +1105,7 @@ void AliAnalysisTaskESDfilter::ConvertTPCOnlyTracks(const AliESDEvent& esd)
                                                             AliAODTrack::kPrimary, \r
                                                             selectInfo);\r
     aodTrack->SetIsHybridTPCConstrainedGlobal(isHybridITSTPC);    \r
+    aodTrack->SetTPCFitMap(track->GetTPCFitMap());\r
     aodTrack->SetTPCClusterMap(track->GetTPCClusterMap());\r
     aodTrack->SetTPCSharedMap (track->GetTPCSharedMap());\r
     aodTrack->SetIsTPCConstrained(kTRUE);    \r
@@ -1240,6 +1246,7 @@ void AliAnalysisTaskESDfilter::ConvertGlobalConstrainedTracks(const AliESDEvent&
                                                             selectInfo);\r
     aodTrack->SetIsHybridGlobalConstrainedGlobal(isHybridGC);    \r
     aodTrack->SetIsGlobalConstrained(kTRUE);    \r
+    aodTrack->SetTPCFitMap(esdTrack->GetTPCFitMap());\r
     aodTrack->SetTPCClusterMap(esdTrack->GetTPCClusterMap());\r
     aodTrack->SetTPCSharedMap (esdTrack->GetTPCSharedMap());\r
     aodTrack->SetChi2perNDF(Chi2perNDF(esdTrack));\r
@@ -1316,6 +1323,7 @@ void AliAnalysisTaskESDfilter::ConvertTracks(const AliESDEvent& esd)
                                                             AliAODTrack::kPrimary, \r
                                                             selectInfo)\r
                          );\r
+    aodTrack->SetTPCFitMap(esdTrack->GetTPCFitMap());\r
     aodTrack->SetTPCClusterMap(esdTrack->GetTPCClusterMap());\r
     aodTrack->SetTPCSharedMap (esdTrack->GetTPCSharedMap());\r
     aodTrack->SetChi2perNDF(Chi2perNDF(esdTrack));\r
@@ -1575,6 +1583,7 @@ void AliAnalysisTaskESDfilter::ConvertKinks(const AliESDEvent& esd)
                                                vtx->UsesTrack(esdTrack->GetID()),\r
                                                AliAODTrack::kPrimary,\r
                                                selectInfo);\r
+            mother->SetTPCFitMap(esdTrackM->GetTPCFitMap());\r
             mother->SetTPCClusterMap(esdTrackM->GetTPCClusterMap());\r
             mother->SetTPCSharedMap (esdTrackM->GetTPCSharedMap());\r
             mother->SetChi2perNDF(Chi2perNDF(esdTrackM));\r
@@ -1639,6 +1648,7 @@ void AliAnalysisTaskESDfilter::ConvertKinks(const AliESDEvent& esd)
                                                vtx->UsesTrack(esdTrack->GetID()),\r
                                                AliAODTrack::kSecondary,\r
                                                selectInfo);\r
+            daughter->SetTPCFitMap(esdTrackD->GetTPCFitMap());\r
             daughter->SetTPCClusterMap(esdTrackD->GetTPCClusterMap());\r
             daughter->SetTPCSharedMap (esdTrackD->GetTPCSharedMap());\r
            daughter->SetTPCPointsF(esdTrackD->GetTPCNclsF());\r