message: unique names for profiles to prevent mixup between wagons
diff: @@ -1193,6 +1193,7 @@ void AliAnalysisTaskHaHFECorrel::UserExec(Option_t*)
  fRunNumber = fVevent->GetRunNumber();
  Int_t SPDConfigBin=-1;
  // implement FindFixBin (Root6) for backward compatibility to Root5 (instead of FindBin were bin is added)
  + cout << "fSPDConfigHist " << &fSPDConfigHist << endl;
  TObjString *obj = (TObjString*) fSPDConfigHist.GetXaxis()->GetLabels()->FindObject(Form("%i", fRunNumber));
  if (obj) SPDConfigBin= (Int_t)obj->GetUniqueID();
  else return; // exit event if unknow SPD configuration
  @@ -1205,18 +1206,22 @@ void AliAnalysisTaskHaHFECorrel::UserExec(Option_t*)
  TObjString *obj = (TObjString*) fSPDConfigProfiles.GetXaxis()->GetLabels()->FindObject(Form("%i", fSPDConfig));
  if (obj) SPDConfigProfBin= (Int_t)obj->GetUniqueID();
  else SPDConfigProfBin=1;// select first bin if configuration does not exist
  + cout << "fSPDCOnfigProfiles " << &fSPDConfigProfiles << endl;
  cout << SPDConfigProfBin << endl;
  fSPDConfigProfiles.GetXaxis()->SetRange(SPDConfigProfBin, SPDConfigProfBin);
  TH2F* Configuration = 0;
  Configuration = (TH2F*)fSPDConfigProfiles.Project3D("zy");
  + Configuration->SetName(Form("ConfigHist2D_%s", GetName()));
  fSPDConfigProfiles.GetXaxis()->SetRange(0, 0);
  + cout << "Configuration " << Configuration << endl;
  + cout<< "GetTaskName" << GetName() << endl;
  if (fSPDnTrAvg!=0) {
  - cout << fSPDnTrAvg << endl;
  + cout << "Delete " << fSPDnTrAvg << endl;
  delete fSPDnTrAvg;
  fSPDnTrAvg=0;
  }
  if (Configuration!=0) {
  - fSPDnTrAvg = (TProfile*) Configuration->ProfileX(Form("Prof_%i", fSPDConfig), 2, 1000); // neglecting 0 bin
  + fSPDnTrAvg = (TProfile*) Configuration->ProfileX(Form("Prof_%i_%s", fSPDConfig, GetName()), 2, 1000); // neglecting 0 bin
  delete Configuration;
  }
  else{
  @@ -1224,7 +1229,7 @@ void AliAnalysisTaskHaHFECorrel::UserExec(Option_t*)
  return;
  }
  Configuration=0;
  - cout << fRunNumber << "\t" << fSPDConfig << endl;
  + cout << fRunNumber << "\t" << fSPDConfig << "\t" << fSPDnTrAvg << endl;
  // for (Int_t i=1; i<fSPDnTrAvg->GetXaxis()->GetNbins(); i++) cout << fSPDnTrAvg->GetBinContent(i) << endl;
  }
  Double_t nTrAccCorrMin, nTrAccCorrMax, nTrAccCorrMean;
  @@ -1294,6 +1299,8 @@ void AliAnalysisTaskHaHFECorrel::UserExec(Option_t*)
  }
  + cout << "fNoEvents " << fNoEvents << endl;
  +
  fNoEvents->Fill(0);
  if (fIsMC && fOneTimeCheck) fDiffractiveType->Fill(0., 1.*fMCheader->GetEventType(), nTrMCAcc);
  