Ignore:
Timestamp:
05/05/06 10:53:03 (19 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mjtrain/MJTrainRanForest.cc

    r7421 r7697  
    3535#include "MLogManip.h"
    3636
     37#include "MF.h"
     38#include "MParameterCalc.h"
     39
    3740#include "MStatusDisplay.h"
    38 
    39 #include "MF.h"
    4041
    4142ClassImp(MJTrainRanForest);
     
    4546//------------------------------------------------------------------------
    4647//
    47 // Add a cut which is used to fill the matrix, eg "MMcEvt.fOartId<1.5"
    48 // (The rule is applied, nit inverted: The matrix is filled with
     48// Add a cut which is used to fill the matrix, eg "MMcEvt.fPartId<1.5"
     49// (The rule is applied, not inverted: The matrix is filled with
    4950// the events fullfilling the condition)
    5051//
     
    5253{
    5354    MFilter *f = new MF(rule);
    54     f->SetBit(kCanDelete);
    55     AddCut(l, f);
     55    f->SetBit(kCanDelete); //FIXME!!!! Why does not any other list delete it???
     56    Add(l, f);
    5657}
    5758
    5859//------------------------------------------------------------------------
    5960//
    60 // Add a cut which is used to fill the matrix. If kCanDelete is set
     61// Add an additional parameter (MParameterCalc), eg "0.5", "MWeight"
     62// The default container name is "MWeight"
     63//
     64void MJTrainRanForest::AddPar(TList &l, const char *rule, const char *pname)
     65{
     66    TString tname(pname);
     67    tname += "Calc";
     68
     69    MParameterCalc *par = new MParameterCalc(rule, tname);
     70    par->SetNameParameter(pname);
     71//    par->SetBit(kCanDelete);  //FIXME!!!! MTaskList is deleting it
     72    Add(l, par);
     73}
     74
     75//------------------------------------------------------------------------
     76//
     77// Add a task/cut which is used to fill the matrix. If kCanDelete is set
    6178// MJOptimize takes the ownership.
    6279//
    63 void MJTrainRanForest::AddCut(TList &l, MFilter *f)
     80void MJTrainRanForest::Add(TList &l, MTask *f)
    6481{
    6582    l.Add(f);
Note: See TracChangeset for help on using the changeset viewer.