message: AliFemtoCorrFctn - Add method `AddOutputObjectsTo`
diff: #include "AliFemtoPair.h"
  #include "AliFemtoPairCut.h"
  +#include <TCollection.h>
  +
  /// \class AliFemtoCorrFctn
  /// \brief The pure-virtual base class for correlation functions
  @@ -51,8 +53,21 @@ public:
  virtual void EventEnd(const AliFemtoEvent* aEvent);
  virtual void Finish() = 0;
  + /// Create a TList of the histograms and other TObjects
  + /// within this correlation function
  + ///
  + /// The list is owned by the caller, but the items within
  + /// are still owned by this object, and should NOT be deleted.
  + ///
  virtual TList* GetOutputList() = 0;
  + /// Append output items to given container
  + ///
  + /// Ownership of these items stays with this object and should
  + /// not be deleted by the caller.
  + ///
  + virtual void AddOutputObjectsTo(TCollection &);
  +
  virtual AliFemtoCorrFctn* Clone() const = 0;
  AliFemtoAnalysis* HbtAnalysis(){return fyAnalysis;};
  @@ -90,7 +105,12 @@ inline void AliFemtoCorrFctn::EventEnd(const AliFemtoEvent* /* event */)
  { // no-op
  }
  -
  +inline void AliFemtoCorrFctn::AddOutputObjectsTo(TCollection &dest)
  +{
  + TList *output_list = GetOutputList();
  + dest.AddAll(output_list);
  + delete output_list;
  +}
  #endif // ALIFEMTOCORRFCTN_H
  