message: PWGGA enabled mixing in hybrid method also for photon-cluster
diff: @@ -4984,6 +4984,7 @@ void AliAnalysisTaskGammaConvCalo::CalculateBackground(){
  }
  }
  }else {
  + // mixing current conversion photons with previous clusters
  for(Int_t nEventsInBG=0;nEventsInBG <fBGClusHandler[fiCut]->GetNBGEvents();nEventsInBG++){
  AliGammaConversionAODVector *previousEventV0s = fBGClusHandler[fiCut]->GetBGGoodV0s(zbin,mbin,nEventsInBG);
  if(previousEventV0s){
  @@ -5007,6 +5008,47 @@ void AliAnalysisTaskGammaConvCalo::CalculateBackground(){
  }
  }
  + AliAODConversionMother *backgroundCandidate = new AliAODConversionMother(&currentEventGoodV0,&previousGoodV0);
  + backgroundCandidate->CalculateDistanceOfClossetApproachToPrimVtx(fInputEvent->GetPrimaryVertex());
  + if((((AliConversionMesonCuts*)fMesonCutArray->At(fiCut))->MesonIsSelected(backgroundCandidate,kFALSE,((AliConvEventCuts*)fEventCutArray->At(fiCut))->GetEtaShift()))){
  + fHistoMotherBackInvMassPt[fiCut]->Fill(backgroundCandidate->M(),backgroundCandidate->Pt(),fWeightJetJetMC);
  + if(!fDoLightOutput) fHistoPhotonPairMixedEventPtconv[fiCut]->Fill(backgroundCandidate->M(),currentEventGoodV0.Pt());
  + if(fDoTHnSparse){
  + Double_t sparesFill[4] = {backgroundCandidate->M(),backgroundCandidate->Pt(),(Double_t)zbin,(Double_t)mbin};
  + fSparseMotherBackInvMassPtZM[fiCut]->Fill(sparesFill,1);
  + }
  + if(!fDoLightOutput) fHistoMotherBackInvMassECalib[fiCut]->Fill(backgroundCandidate->M(),currentEventGoodV0.E(),fWeightJetJetMC);
  + }
  + delete backgroundCandidate;
  + backgroundCandidate = 0x0;
  + }
  + }
  + }
  + }
  + // mixing current clusters with previous conversion photons
  + for(Int_t nEventsInBG=0;nEventsInBG <fBGHandler[fiCut]->GetNBGEvents();nEventsInBG++){
  + AliGammaConversionAODVector *previousEventV0s = fBGHandler[fiCut]->GetBGGoodV0s(zbin,mbin,nEventsInBG);
  + if(previousEventV0s){
  + if(fMoveParticleAccordingToVertex == kTRUE || ((AliConversionPhotonCuts*)fCutArray->At(fiCut))->GetInPlaneOutOfPlaneCut() != 0 ){
  + bgEventVertex = fBGHandler[fiCut]->GetBGEventVertex(zbin,mbin,nEventsInBG);
  + }
  + for(Int_t iCurrent=0;iCurrent<fClusterCandidates->GetEntries();iCurrent++){
  + AliAODConversionPhoton currentEventGoodV0 = *(AliAODConversionPhoton*)(fClusterCandidates->At(iCurrent));
  + for(UInt_t iPrevious=0;iPrevious<previousEventV0s->size();iPrevious++){
  +
  + AliAODConversionPhoton previousGoodV0 = (AliAODConversionPhoton)(*(previousEventV0s->at(iPrevious)));
  +
  + if(fMoveParticleAccordingToVertex == kTRUE){
  + if (bgEventVertex){
  + MoveParticleAccordingToVertex(&previousGoodV0,bgEventVertex);
  + }
  + }
  + if(((AliConversionPhotonCuts*)fCutArray->At(fiCut))->GetInPlaneOutOfPlaneCut() != 0){
  + if (bgEventVertex){
  + RotateParticleAccordingToEP(&previousGoodV0,bgEventVertex->fEP,fEventPlaneAngle);
  + }
  + }
  +
  AliAODConversionMother *backgroundCandidate = new AliAODConversionMother(&currentEventGoodV0,&previousGoodV0);
  backgroundCandidate->CalculateDistanceOfClossetApproachToPrimVtx(fInputEvent->GetPrimaryVertex());
  if((((AliConversionMesonCuts*)fMesonCutArray->At(fiCut))->MesonIsSelected(backgroundCandidate,kFALSE,((AliConvEventCuts*)fEventCutArray->At(fiCut))->GetEtaShift()))){
  