Eta Dalitz contamination also included
authoramarin <amarin@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 28 Jan 2011 08:38:46 +0000 (08:38 +0000)
committeramarin <amarin@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 28 Jan 2011 08:38:46 +0000 (08:38 +0000)
PWG4/GammaConv/AliAnalysisTaskGammaConversion.cxx

index 59f4f04..6275343 100644 (file)
@@ -2369,6 +2369,9 @@ void AliAnalysisTaskGammaConversion::ProcessGammasForNeutralMesonAnalysis(){
                  if(fV0Reader->GetMotherMCParticle()->GetPdgCode() ==111){
                      gamma1MotherLabel=-111;
                   }
+                 if(fV0Reader->GetMotherMCParticle()->GetPdgCode() ==221){
+                     gamma1MotherLabel=-221;
+                  }
                }
              }
              Int_t indexKF2 = fKFReconstructedGammasV0Index.at(secondGammaIndex);
@@ -2391,6 +2394,10 @@ void AliAnalysisTaskGammaConversion::ProcessGammasForNeutralMesonAnalysis(){
                    if(fV0Reader->GetMotherMCParticle()->GetPdgCode() ==111){
                       gamma2MotherLabel=-111;
                     }
+                   if(fV0Reader->GetMotherMCParticle()->GetPdgCode() ==221){
+                      gamma2MotherLabel=-221;
+                    }
+                   
                  }
                }
                if(gamma1MotherLabel>=0 && gamma1MotherLabel==gamma2MotherLabel){
@@ -2421,7 +2428,7 @@ void AliAnalysisTaskGammaConversion::ProcessGammasForNeutralMesonAnalysis(){
                      }else{
                        fHistograms->FillHistogram("ESD_TrueBckCont_InvMass_vs_Pt",massTwoGammaCandidate,momentumVectorTwoGammaCandidate.Pt());
                      }
-                     if(gamma1MotherLabel==-111 || gamma2MotherLabel==-111){
+                     if(gamma1MotherLabel==-111 || gamma2MotherLabel==-111 || gamma1MotherLabel==-221 || gamma2MotherLabel==-221){
                        fHistograms->FillHistogram("ESD_TruePi0DalitzCont_InvMass_vs_Pt",massTwoGammaCandidate,momentumVectorTwoGammaCandidate.Pt());
                      }
                    }
@@ -2445,7 +2452,7 @@ void AliAnalysisTaskGammaConversion::ProcessGammasForNeutralMesonAnalysis(){
                      }else{
                        fHistograms->FillHistogram("ESD_TrueBckCont_InvMass_vs_Pt",massTwoGammaCandidate,momentumVectorTwoGammaCandidate.Pt());
                      }
-                     if(gamma1MotherLabel==-111 || gamma2MotherLabel==-111){
+                     if(gamma1MotherLabel==-111 || gamma2MotherLabel==-111 || gamma1MotherLabel==-221 || gamma2MotherLabel==-221){
                        fHistograms->FillHistogram("ESD_TruePi0DalitzCont_InvMass_vs_Pt",massTwoGammaCandidate,momentumVectorTwoGammaCandidate.Pt());
                      }
                    }
@@ -2470,7 +2477,7 @@ void AliAnalysisTaskGammaConversion::ProcessGammasForNeutralMesonAnalysis(){
                      }else{
                        fHistograms->FillHistogram("ESD_TrueBckCont_InvMass_vs_Pt",massTwoGammaCandidate,momentumVectorTwoGammaCandidate.Pt());
                      }
-                     if(gamma1MotherLabel==-111 || gamma2MotherLabel==-111){
+                     if(gamma1MotherLabel==-111 || gamma2MotherLabel==-111 || gamma1MotherLabel==-221 || gamma2MotherLabel==-221 ){
                        fHistograms->FillHistogram("ESD_TruePi0DalitzCont_InvMass_vs_Pt",massTwoGammaCandidate,momentumVectorTwoGammaCandidate.Pt());
                      }
                    }