Changeset 2475 for trunk/MagicSoft/Mars/macros/CT1Analysis.C
- Timestamp:
- 11/05/03 15:11:25 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/macros/CT1Analysis.C
r2437 r2475 241 241 242 242 Bool_t JobB_RF_UP = kFALSE; 243 Bool_t CTrainRF = kFALSE; // create matrices of training events 243 244 Bool_t RTrainRF = kFALSE; // read in matrices of training events 244 Bool_t CTrainRF = kFALSE; // create matrices of training events 245 Bool_t RTree = kFALSE; // read in trees 245 Bool_t RTree = kFALSE; // read in trees (otherwise grow them) 246 246 Bool_t WRF = kFALSE; // update input root file ? 247 247 … … 255 255 256 256 Bool_t JobB_SC_UP = kFALSE; 257 Bool_t RMatrix = kFALSE; // read training and test matrices from file 257 Bool_t CMatrix = kFALSE; // create training and test matrices 258 Bool_t RMatrix = kFALSE; // read training and test matrices from file 258 259 Bool_t WOptimize = kFALSE; // do optimization using the training sample 259 260 // and write supercuts parameter values … … 1293 1294 rfwrite2.AddContainer("MRanTree", "TREE"); 1294 1295 1296 MFillH fillh2("MHRanForestGini"); 1297 1295 1298 // list of tasks for the loop over the trees 1296 1299 1297 1300 tlist2.AddToList(&rfgrow2); 1298 1301 tlist2.AddToList(&rfwrite2); 1302 tlist2.AddToList(&fillh2); 1299 1303 1300 1304 //------------------- … … 1309 1313 1310 1314 tlist2.PrintStatistics(0, kTRUE); 1315 1316 plist2.FindObject("MHRanForestGini")->DrawClone(); 1317 1311 1318 1312 1319 // get adresses of objects which are used in the next eventloop … … 1557 1564 1558 1565 gLog << "" << endl; 1559 gLog << "Macro CT1Analysis : JobB_SC_UP, RMatrix, WOptimize, RTest, WSC = "1566 gLog << "Macro CT1Analysis : JobB_SC_UP, CMatrix, RMatrix, WOptimize, RTest, WSC = " 1560 1567 << (JobB_SC_UP ? "kTRUE" : "kFALSE") << ", " 1568 << (CMatrix ? "kTRUE" : "kFALSE") << ", " 1561 1569 << (RMatrix ? "kTRUE" : "kFALSE") << ", " 1562 1570 << (WOptimize ? "kTRUE" : "kFALSE") << ", " … … 1660 1668 //-------------------------- 1661 1669 // create matrices and write them onto files 1662 if ( !RMatrix)1670 if (CMatrix) 1663 1671 { 1664 1672 MH3 &mh3 = *(new MH3("MHillas.fSize")); … … 2111 2119 // - read ON1 and MC1 data files 2112 2120 // which should have been updated to contain the hadronnesses 2113 // for the method of NEAREST NEIGHBORS and for the SUOERCUTS2121 // for the method of Random Forest and for the SUPERCUTS 2114 2122 // - produce Neyman-Pearson plots 2115 2123
Note:
See TracChangeset
for help on using the changeset viewer.