message: Fix tagging of mismatched AOD-dAOD based on number of events in AOD files
diff: @@ -1089,14 +1089,15 @@ Int_t AliRDHFCuts::CheckMatchingAODdeltaAODevents(){
  AliAODHandler* aodHandler = (AliAODHandler*)((AliAnalysisManager::GetAnalysisManager())->GetInputEventHandler());
  TTree *treeAOD = aodHandler->GetTree();
  TTree *treeDeltaAOD = treeAOD->GetFriend("aodTree");
  + TFile *mfile = treeAOD->GetCurrentFile();
  + TFile *dfile = treeDeltaAOD->GetCurrentFile();
  + treeAOD = (TTree*)mfile->Get("aodTree");
  + treeDeltaAOD = (TTree*)dfile->Get("aodTree");
  if(!treeDeltaAOD || !treeAOD) return -1;
  - if(treeDeltaAOD && treeAOD){
  if(treeAOD->GetEntries()!=treeDeltaAOD->GetEntries()){
  printf("AliRDHFCuts::CheckMatchingAODdeltaAODevents: Difference in number of entries in main and friend tree, skipping event\n");
  return -1;
  }
  - TFile *mfile = treeAOD->GetCurrentFile();
  - TFile *dfile = treeDeltaAOD->GetCurrentFile();
  TList* lm=mfile->GetListOfKeys();
  TList* ld=dfile->GetListOfKeys();
  Int_t nentm=lm->GetEntries();
  @@ -1118,7 +1119,6 @@ Int_t AliRDHFCuts::CheckMatchingAODdeltaAODevents(){
  }
  }
  }
  - }
  if (okTProcessNames) return 1;
  else return 0;
  