message: PWGGA/GammaConv: Added JJ weight to Calibration Task
diff: @@ -1008,27 +1008,37 @@ void AliAnalysisTaskConvCaloCalibration::UserExec(Option_t *){
  if (((AliCaloPhotonCuts*)fClusterCutArray->At(fiCut))->GetClusterType() == 1) isRunningEMCALrelAna = kTRUE;
  }
  - Int_t eventNotAccepted = ((AliConvEventCuts*)fEventCutArray->At(iCut))->IsEventAcceptedByCut(fV0Reader->GetEventCuts(),fInputEvent,fMCEvent,fIsHeavyIon,isRunningEMCALrelAna);
  - Bool_t triggered = kTRUE;
  + if (fIsMC > 0){
  + fWeightJetJetMC = 1;
  + Bool_t isMCJet = ((AliConvEventCuts*)fEventCutArray->At(iCut))->IsJetJetMCEventAccepted( fMCEvent, fWeightJetJetMC , fInputEvent);
  + if (fIsMC == 3){
  + Double_t weightMult = ((AliConvEventCuts*)fEventCutArray->At(iCut))->GetWeightForMultiplicity(fV0Reader->GetNumberOfPrimaryTracks());
  + fWeightJetJetMC = fWeightJetJetMC*weightMult;
  + }
  +
  + if (!isMCJet){
  + fHistoNEvents[iCut]->Fill(10,fWeightJetJetMC);
  + if (fIsMC>1) fHistoNEventsWOWeight[iCut]->Fill(10);
  + continue;
  + }
  + }
  +
  + Int_t eventNotAccepted = ((AliConvEventCuts*)fEventCutArray->At(iCut))->IsEventAcceptedByCut(fV0Reader->GetEventCuts(),fInputEvent,fMCEvent,fIsHeavyIon,isRunningEMCALrelAna);
  if(eventNotAccepted!= 0){
  - // cout << "event rejected due to wrong trigger: " <<eventNotAccepted << endl;
  fHistoNEvents[iCut]->Fill(eventNotAccepted, fWeightJetJetMC); // Check Centrality, PileUp, SDD and V0AND --> Not Accepted => eventQuality = 1
  if (fIsMC>1) fHistoNEventsWOWeight[iCut]->Fill(eventNotAccepted);
  - // if (eventNotAccepted==3 && fIsMC > 0){
  - // triggered = kFALSE;
  - // }else {
  + // cout << "event rejected due to wrong trigger: " <<eventNotAccepted << endl;
  continue;
  - // }
  }
  if(eventQuality != 0){// Event Not Accepted
  //cout << "event rejected due to: " <<eventQuality << endl;
  fHistoNEvents[iCut]->Fill(eventQuality, fWeightJetJetMC);
  + if (fIsMC>1) fHistoNEventsWOWeight[iCut]->Fill(eventQuality); // Should be 0 here
  continue;
  }
  - if (triggered==kTRUE){
  fHistoNEvents[iCut]->Fill(eventQuality, fWeightJetJetMC); // Should be 0 here
  if (fIsMC>1) fHistoNEventsWOWeight[iCut]->Fill(eventQuality); // Should be 0 here
  @@ -1041,10 +1051,7 @@ void AliAnalysisTaskConvCaloCalibration::UserExec(Option_t *){
  if(((AliConvEventCuts*)fEventCutArray->At(iCut))->IsHeavyIon() == 2) fHistoNV0Tracks[iCut]->Fill(fInputEvent->GetVZEROData()->GetMTotV0A(), fWeightJetJetMC);
  else fHistoNV0Tracks[iCut]->Fill(fInputEvent->GetVZEROData()->GetMTotV0A()+fInputEvent->GetVZEROData()->GetMTotV0C(), fWeightJetJetMC);
  }
  - }
  -
  - if (triggered==kFALSE) continue;
  // it is in the loop to have the same conversion cut string (used also for MC stuff that should be same for V0 and Cluster)
  if (fMesonRecoMode > 0 || fEnableClusterCutsForTrigger) // process calo clusters
  ProcessClusters();
  