From: akisiel Date: Fri, 6 Mar 2009 16:58:00 +0000 (+0000) Subject: Correctly add histograms from Ylm functions X-Git-Url: http://git.uio.no/git/?p=u%2Fmrichter%2FAliRoot.git;a=commitdiff_plain;h=1fb889b20d0ee14ff33805fb35a67e5e95ef4813 Correctly add histograms from Ylm functions --- diff --git a/PWG2/FEMTOSCOPY/AliFemtoUser/AliFemtoCorrFctnDirectYlm.cxx b/PWG2/FEMTOSCOPY/AliFemtoUser/AliFemtoCorrFctnDirectYlm.cxx index db0cbb7de85..25996fe011a 100644 --- a/PWG2/FEMTOSCOPY/AliFemtoUser/AliFemtoCorrFctnDirectYlm.cxx +++ b/PWG2/FEMTOSCOPY/AliFemtoUser/AliFemtoCorrFctnDirectYlm.cxx @@ -648,6 +648,9 @@ void AliFemtoCorrFctnDirectYlm::Finish() void AliFemtoCorrFctnDirectYlm::Write() { // Write out output histograms + if ((!fcovnum) || (!fcovden)) + PackCovariances(); + for (int ilm=0; ilmWrite(); fdensreal[ilm]->Write(); diff --git a/PWG2/FEMTOSCOPY/AliFemtoUser/AliFemtoModelCorrFctnDirectYlm.cxx b/PWG2/FEMTOSCOPY/AliFemtoUser/AliFemtoModelCorrFctnDirectYlm.cxx index 147f6d215f4..e9e61d21094 100644 --- a/PWG2/FEMTOSCOPY/AliFemtoUser/AliFemtoModelCorrFctnDirectYlm.cxx +++ b/PWG2/FEMTOSCOPY/AliFemtoUser/AliFemtoModelCorrFctnDirectYlm.cxx @@ -118,8 +118,21 @@ TList* AliFemtoModelCorrFctnDirectYlm::GetOutputList() TList *tOutputList = AliFemtoModelCorrFctn::GetOutputList(); tOutputList->Clear(); - tOutputList->Add(fCYlmTrue->GetOutputList()); - tOutputList->Add(fCYlmFake->GetOutputList()); + TList *tListCfTrue = fCYlmTrue->GetOutputList(); + + TIter nextListCfTrue(tListCfTrue); + while (TObject *obj = nextListCfTrue()) { + tOutputList->Add(obj); + } + + TList *tListCfFake = fCYlmFake->GetOutputList(); + + TIter nextListCfFake(tListCfFake); + while (TObject *obj = nextListCfFake()) { + tOutputList->Add(obj); + } +// tOutputList->Add(fCYlmTrue->GetOutputList()); +// tOutputList->Add(fCYlmFake->GetOutputList()); return tOutputList; }