message: Add PID MC post calibration
diff: @@ -14,6 +14,7 @@ AliAnalysisTaskElectronEfficiencyV2* AddTask_rbailhac_ElectronEfficiencyV2_PbPb(
  const std::string resolutionFilename ="",
  const std::string cocktailFilename ="",
  const std::string centralityFilename ="",
  + TString calibFileName = "",
  const TString outname = "LMEE.root")
  {
  @@ -204,6 +205,44 @@ AliAnalysisTaskElectronEfficiencyV2* AddTask_rbailhac_ElectronEfficiencyV2_PbPb(
  gROOT->ProcessLine(Form("AddPairMCSignal(%s)" ,task->GetName()));//not task itself, task name
  + // #########################################################
  + // #########################################################
  + // PID postcalibration
  + TH3D *hs_mean_ITS_El = 0x0;
  + TH3D *hs_width_ITS_El = 0x0;
  + TH3D *hs_mean_TOF_El = 0x0;
  + TH3D *hs_width_TOF_El = 0x0;
  +
  + // PID post-calibration
  + TFile *rootfile = 0x0;
  + if(calibFileName.Contains("MC")){
  + printf("reading : %s for PID calibration\n",calibFileName.Data());
  + rootfile = TFile::Open(calibFileName,"READ");
  + hs_mean_ITS_El = (TH3D*)rootfile->Get("h3mean_ITS");
  + hs_width_ITS_El = (TH3D*)rootfile->Get("h3width_ITS");
  + hs_mean_TOF_El = (TH3D*)rootfile->Get("h3mean_TOF");
  + hs_width_TOF_El = (TH3D*)rootfile->Get("h3width_TOF");
  +
  + if(hs_mean_ITS_El) {
  + cout<<"Adding mean ITS PID correction" <<endl;
  + task->SetCentroidCorrFunction(AliAnalysisTaskElectronEfficiencyV2::kITS, hs_mean_ITS_El, AliDielectronVarManager::kNSDDSSDclsEvent, AliDielectronVarManager::kPIn, AliDielectronVarManager::kEta);
  + }
  + if(hs_mean_TOF_El) {
  + cout<<"Adding mean TOF PID correction" <<endl;
  + task->SetCentroidCorrFunction(AliAnalysisTaskElectronEfficiencyV2::kTOF, hs_mean_TOF_El, AliDielectronVarManager::kNSDDSSDclsEvent, AliDielectronVarManager::kPIn, AliDielectronVarManager::kEta);
  + }
  + if(hs_width_ITS_El) {
  + cout<<"Adding width ITS PID correction" <<endl;
  + task->SetWidthCorrFunction(AliAnalysisTaskElectronEfficiencyV2::kITS, hs_width_ITS_El, AliDielectronVarManager::kNSDDSSDclsEvent, AliDielectronVarManager::kPIn, AliDielectronVarManager::kEta);
  + }
  + if(hs_width_TOF_El) {
  + cout<<"Adding width TOF PID correction" <<endl;
  + task->SetWidthCorrFunction(AliAnalysisTaskElectronEfficiencyV2::kTOF, hs_width_TOF_El, AliDielectronVarManager::kNSDDSSDclsEvent, AliDielectronVarManager::kPIn, AliDielectronVarManager::kEta);
  + }
  +
  + }
  +
  +
  // #########################################################
  // #########################################################
  // Adding cutsettings
  