message: Add Pi0Pi+- Cut to background
diff: @@ -5958,9 +5958,22 @@ void AliAnalysisTaskNeutralMesonToPiPlPiMiNeutralMeson::CalculateBackground(Int_
  }
  }
  +
  // Combine Pi+ and Pi0
  AliAODConversionMother PiPlNDMBackgroundCandidate(&EventPiPlGoodMeson, EventNDMGoodMeson);
  + // Mass cut (pi0pi+-)
  + if (((AliPrimaryPionCuts *)fPionCutArray->At(fiCut))->DoMassCut_WithNDM()) {
  + AliAODConversionMother PiPlNDMBackgroundCandidate2(&EventPiPlGoodMeson2, EventNDMGoodMeson);
  + Double_t Mass_PiPlus_PiZero_Sub = PiPlNDMBackgroundCandidate.M() - (EventNDMGoodMeson.M() - fPDGMassNDM);
  + Double_t Mass_PiPlus2_PiZero_Sub = PiPlNDMBackgroundCandidate2.M() - (EventNDMGoodMeson.M() - fPDGMassNDM);
  + if ((Mass_PiPlus_PiZero_Sub >= ((AliPrimaryPionCuts *)fPionCutArray->At(fiCut))->GetMassCut_WithNDM())||
  + (Mass_PiPlus2_PiZero_Sub >= ((AliPrimaryPionCuts *)fPionCutArray->At(fiCut))->GetMassCut_WithNDM())
  + ) {
  + continue;
  + }
  + }
  +
  // Create (final) Candidate
  AliAODConversionMother PiPlPiPlNDMBackgroundCandidate(&PiPlNDMBackgroundCandidate, &EventPiPlGoodMeson2);
  @@ -6008,6 +6021,18 @@ void AliAnalysisTaskNeutralMesonToPiPlPiMiNeutralMeson::CalculateBackground(Int_
  // Combine Pi- and Pi0
  AliAODConversionMother PiMiNDMBackgroundCandidate(&EventPiMiGoodMeson, EventNDMGoodMeson);
  + // Mass cut (pi0pi+-)
  + if (((AliPrimaryPionCuts *)fPionCutArray->At(fiCut))->DoMassCut_WithNDM()) {
  + AliAODConversionMother PiMiNDMBackgroundCandidate2(&EventPiMiGoodMeson2, EventNDMGoodMeson);
  + Double_t Mass_PiMinus_PiZero_Sub = PiMiNDMBackgroundCandidate.M() - (EventNDMGoodMeson.M() - fPDGMassNDM);
  + Double_t Mass_PiMinus2_PiZero_Sub = PiMiNDMBackgroundCandidate2.M() - (EventNDMGoodMeson.M() - fPDGMassNDM);
  + if ((Mass_PiMinus_PiZero_Sub >= ((AliPrimaryPionCuts *)fPionCutArray->At(fiCut))->GetMassCut_WithNDM())||
  + (Mass_PiMinus2_PiZero_Sub >= ((AliPrimaryPionCuts *)fPionCutArray->At(fiCut))->GetMassCut_WithNDM())
  + ) {
  + continue;
  + }
  + }
  +
  // Create (final) Candidate
  AliAODConversionMother PiMiPiMiNDMBackgroundCandidate(&PiMiNDMBackgroundCandidate, &EventPiMiGoodMeson2);
  