Changeset 7697 for trunk/MagicSoft/Mars/mjtrain/MJTrainRanForest.cc
- Timestamp:
- 05/05/06 10:53:03 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mjtrain/MJTrainRanForest.cc
r7421 r7697 35 35 #include "MLogManip.h" 36 36 37 #include "MF.h" 38 #include "MParameterCalc.h" 39 37 40 #include "MStatusDisplay.h" 38 39 #include "MF.h"40 41 41 42 ClassImp(MJTrainRanForest); … … 45 46 //------------------------------------------------------------------------ 46 47 // 47 // Add a cut which is used to fill the matrix, eg "MMcEvt.f OartId<1.5"48 // (The rule is applied, n it inverted: The matrix is filled with48 // 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 49 50 // the events fullfilling the condition) 50 51 // … … 52 53 { 53 54 MFilter *f = new MF(rule); 54 f->SetBit(kCanDelete); 55 Add Cut(l, f);55 f->SetBit(kCanDelete); //FIXME!!!! Why does not any other list delete it??? 56 Add(l, f); 56 57 } 57 58 58 59 //------------------------------------------------------------------------ 59 60 // 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 // 64 void 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 61 78 // MJOptimize takes the ownership. 62 79 // 63 void MJTrainRanForest::Add Cut(TList &l, MFilter*f)80 void MJTrainRanForest::Add(TList &l, MTask *f) 64 81 { 65 82 l.Add(f);
Note:
See TracChangeset
for help on using the changeset viewer.