message: PWGGA/GammaConv: GammaIsoTree implemented photon selection changes for ESD
diff: @@ -2081,8 +2081,16 @@ Bool_t AliCaloPhotonCuts::ClusterIsSelectedMC(TParticle *particle,AliMCEvent *mc
  if ( particle->Phi() < fMinPhiCut || particle->Phi() > fMaxPhiCut ) return kFALSE;
  if ( fClusterType == 3 && particle->Eta() < fMaxEtaInnerEdge && particle->Eta() > fMinEtaInnerEdge ) return kFALSE;
  }
  - if(particle->GetMother(0) >-1 && mcEvent->Particle(particle->GetMother(0))->GetPdgCode() == 22){
  - return kFALSE;// no photon as mothers!
  + // if(particle->GetMother(0) >-1 && mcEvent->Particle(particle->GetMother(0))->GetPdgCode() == 22){
  + // return kFALSE;// no photon as mothers!
  + // }
  + // reject photons with daughter photons instead, to end up only with final photon, not initial
  + for (Int_t i = 0; i < particle->GetNDaughters(); i++)
  + {
  + Int_t dlabel = particle->GetDaughter(i);
  + if((static_cast<AliMCParticle*>(mcEvent->GetTrack(dlabel)))->PdgCode() == 22){
  + return kFALSE; // no photon with photon daughters
  + }
  }
  return kTRUE;
  }
  