message: Check correction as function of ZVtx
diff: @@ -26,7 +26,7 @@ AliAnalysisTaskHFEpACorrelation *AddTaskHFEpACorrelation(
  Bool_t UseGlobalTracksForHadrons = kTRUE,
  Int_t CentralityEstimator = 0,
  TString HadronEfficiencyFile = "alien:///alice/cern.ch/user/h/hzanoli/Efficiency/Hadron_Tracking.root",
  - TString BackgroundWFile = "alien:///alice/cern.ch/user/h/hzanoli/BackgroundW/BackgroundW.root",
  + TString ElectronEfficiencyFile = "",
  TString BackgroundWFileToData = "alien:///alice/cern.ch/user/h/hzanoli/BackgroundW/BackgroundWToData.root",
  TString Sufix = ""
  )
  @@ -96,29 +96,22 @@ AliAnalysisTaskHFEpACorrelation *AddTaskHFEpACorrelation(
  printf("=!=!=!=!=!=!=!=! No Hadron Correction =!=!=!=!=!=!=!=!\n");
  printf("=!=!=!=!=!=!=!=! Correlation will be useless =!=!=!=!=!=!=!=!\n");
  }
  - }
  - if (isMC)
  - {
  - TFile *fileBkgW= TFile::Open(BackgroundWFile.Data());
  - if (fileBkgW)
  + TFile *ElectronEffFile_f = TFile::Open(ElectronEfficiencyFile.Data());
  + if (ElectronEffFile_f)
  {
  - TH1F *Pi0 = (TH1F*) fileBkgW->Get("Pi0W");
  - TH1F *Eta = (TH1F*) fileBkgW->Get("EtaW");
  - if (Pi0)
  - task->SetBackgroundPi0Weight(Pi0);
  - else
  - printf("MC analysis with no pi0 weight hijing\n");
  + TH2F* test = (TH2F*) ElectronEffFile_f->Get("EffE");
  + if (test)
  + task->SetEfficiencyElectron(test);
  + }
  +
  - if (Eta)
  - task->SetBackgroundEtaWeight(Eta);
  - else
  - printf("MC analysis with no Eta weight hijing \n");
  }
  - else
  - printf("Background weight to Hijing not available\n");
  +
  + if (isMC)
  + {
  TFile *fileBkgWToData= TFile::Open(BackgroundWFileToData.Data());
  