message: Initialise evCuts when no mesons are enabled
diff: @@ -760,6 +760,19 @@ void AliAnalysisTaskSEHFTreeCreator::UserExec(Option_t */*option*/)
  else if(fWriteVariableTreeBplus) evCuts = (AliRDHFCuts*)fFiltCutsBplustoD0pi->Clone();
  else if(fWriteVariableTreeLctopKpi) evCuts = (AliRDHFCuts*)fFiltCutsLctopKpi->Clone();
  + if(!evCuts){
  + //Setting one of the filtering cuts as event selection cuts if evCuts is still empty (which is the case if all meson TTrees are disabled). In this way, the task doesn't crash and fTreeEvChar is still filled.
  + if(fFiltCutsD0toKpi) evCuts = (AliRDHFCuts*)fFiltCutsD0toKpi->Clone();
  + else if(fFiltCutsDplustoKpipi) evCuts = (AliRDHFCuts*)fFiltCutsDplustoKpipi->Clone();
  + else if(fFiltCutsDstartoKpipi) evCuts = (AliRDHFCuts*)fFiltCutsDstartoKpipi->Clone();
  + else if(fFiltCutsBplustoD0pi) evCuts = (AliRDHFCuts*)fFiltCutsBplustoD0pi->Clone();
  + else if(fFiltCutsLctopKpi) evCuts = (AliRDHFCuts*)fFiltCutsLctopKpi->Clone();
  + else{
  + printf("AliAnalysisTaskSEHFTreeCreator::UserExec: No event selection cuts found!\n");
  + return;
  + }
  + }
  +
  if(evCuts->IsEventRejectedDueToTrigger())fNentries->Fill(5);
  if(evCuts->IsEventRejectedDueToNotRecoVertex())fNentries->Fill(6);
  if(evCuts->IsEventRejectedDueToVertexContributors())fNentries->Fill(7);
  