Changeset 7685


Ignore:
Timestamp:
05/03/06 11:54:00 (19 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mbase/MTaskList.cc

    r7682 r7685  
    318318// for one of the tasks
    319319//
    320 Bool_t MTaskList::AddToList(const TList &list)
     320Bool_t MTaskList::AddToList(const TList &list, const char *tType)
    321321{
    322322    TIter Next(&list);
     
    330330        }
    331331
    332         if (!AddToList(obj))
     332        if (!AddToList(static_cast<MTask*>(obj), tType))
    333333            return kFALSE;
    334334    }
  • trunk/MagicSoft/Mars/mbase/MTaskList.h

    r7682 r7685  
    4747    Bool_t AddToListAfter(MTask *task, const MTask *where, const char *tType="All");
    4848    Bool_t AddToList(MTask *task, const char *tType="All");
    49     Bool_t AddToList(const TList &list);
     49    Bool_t AddToList(const TList &list, const char *tType="All");
    5050
    5151    void SetSerialNumber(Byte_t num);
  • trunk/MagicSoft/Mars/mranforest/MRanForest.cc

    r7684 r7685  
    331331    fDataRang.Reset(0);
    332332
    333     if(fWeight.GetSize()!=numdata)
     333    Bool_t useweights = fWeight.GetSize()==numdata;
     334    if (!useweights)
    334335    {
    335336        fWeight.Set(numdata);
     
    390391    *fLog << inf << endl;
    391392    *fLog << "Following input for the tree growing are used:"<<endl;
     393    *fLog << " Forest type     : "<<(fClassify?"classification":"regression")<<endl;
    392394    *fLog << " Number of Trees : "<<fNumTrees<<endl;
    393395    *fLog << " Number of Trials: "<<(fNumTry==0?tryest:fNumTry)<<(fNumTry==0?" (auto)":"")<<endl;
    394396    *fLog << " Final Node size : "<<fNdSize<<endl;
    395397    *fLog << " Using Grid      : "<<(fGrid.GetSize()>0?"Yes":"No")<<endl;
    396     *fLog << " Using Weights   : "<<(fWeight.GetSize()>0?"Yes":"No")<<endl;
     398    *fLog << " Using Weights   : "<<(useweights?"Yes":"No")<<endl;
    397399    *fLog << " Number of Events: "<<numdata<<endl;
    398400    *fLog << " Number of Params: "<<dim<<endl;
Note: See TracChangeset for help on using the changeset viewer.