]> git.uio.no Git - u/mrichter/AliRoot.git/commit
Fixed some compilation problems.
authorcholm <cholm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 9 Jul 2012 10:32:27 +0000 (10:32 +0000)
committercholm <cholm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 9 Jul 2012 10:32:27 +0000 (10:32 +0000)
commita76fb27ddbfe153f221f696d7664fbf6b4195c28
treef53efcbf85fefbf60d21046c6f4d9638cd99b108
parentcf3d1bb33a8cff14b9bb96a641862cffab7a3270
Fixed some compilation problems.
Switch to using TParameter<T> (from TNamed) for storing parameters of the
analysis, as these can be merged.   Previoulsy, we used TNamed objects,
but since these cannot be merged, the stupid file merger writes copies
of every single object to the merged file and thereby slowing down
everything.  It would be good if the merger could be fixed - perhaps by
allowing a plug-in for merging a specific class of objects - e.g.,

  class TObjectMerger
  {
  public:
    virtual TObject* Merge(TObject* existing, TList* list);
    virtual TObject* Merge(TObject* existing, TObject* next);
  };
  TObject*
  TObjectMerger::Merge(TObject* existing, TList* list)
  {
    TMergeInfo info(existing);
    TClass* cl = existing->Class();
    ROOT::MergeFunc_t f = cl->GetMerge();
    if (f)
      f(existing, list, &info);
    return existing;
  }

  TNamedMerger : public TObjectMerger
  {
    TObject* Merge(TObject* e, TList* l)
    {
      TString tit(e->GetTitle());
      TIter next(l);
      TObject* o = 0;
      while ((o = next())) {
       tit.Append(" ");
       tit.Append(o->GetTitle());
      }
      return e;
    }
  }

Some fixes to the train setup to show default values of the options.
PWGLF/FORWARD/analysis2/AliBasedNdetaTask.cxx
PWGLF/FORWARD/analysis2/AliBasedNdetaTask.h
PWGLF/FORWARD/analysis2/AliFMDDensityCalculator.cxx
PWGLF/FORWARD/analysis2/AliFMDEventInspector.cxx
PWGLF/FORWARD/analysis2/AliFMDSharingFilter.cxx
PWGLF/FORWARD/analysis2/AliForwardMCMultiplicityTask.cxx
PWGLF/FORWARD/analysis2/AliForwardQATask.cxx
PWGLF/FORWARD/analysis2/trains/TrainSetup.C