message: PWGDQ/reducedTree: slight modification for writing histograms from tree to analysis file
diff: @@ -284,6 +284,7 @@ void runAnalysisTrain(const Char_t* infile, const Char_t* runmode = "local", con
  TFile* tmpOut = (TFile*)mgr->OpenFile((AliAnalysisDataContainer*)outputs->At(i), "UPDATE", kTRUE);
  if (!tmpOut) continue;
  if (((TString)tmpOut->GetName()).Contains("dstTree")) continue;
  + if (!histArr->GetEntries()) continue;
  cout << "Writing histograms to " << tmpOut->GetName() << endl;
  for (Int_t j=0; j<histArr->GetEntries(); j++) histArr->At(j)->Write();
  tmpOut->Close();
  