Ignore:
Timestamp:
11/05/03 15:11:25 (21 years ago)
Author:
wittek
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/macros/CT1Analysis.C

    r2437 r2475  
    241241
    242242    Bool_t JobB_RF_UP  = kFALSE; 
     243    Bool_t CTrainRF    = kFALSE;  // create matrices of training events
    243244    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)
    246246    Bool_t WRF         = kFALSE;  // update input root file ?
    247247
     
    255255
    256256    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
    258259    Bool_t WOptimize   = kFALSE;  // do optimization using the training sample
    259260                                  // and write supercuts parameter values
     
    12931294    rfwrite2.AddContainer("MRanTree", "TREE");
    12941295
     1296    MFillH fillh2("MHRanForestGini");
     1297
    12951298    // list of tasks for the loop over the trees
    12961299   
    12971300    tlist2.AddToList(&rfgrow2);
    12981301    tlist2.AddToList(&rfwrite2);
     1302    tlist2.AddToList(&fillh2);
    12991303
    13001304    //-------------------
     
    13091313
    13101314    tlist2.PrintStatistics(0, kTRUE);
     1315
     1316    plist2.FindObject("MHRanForestGini")->DrawClone();
     1317
    13111318
    13121319    // get adresses of objects which are used in the next eventloop
     
    15571564
    15581565    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 = "
    15601567         << (JobB_SC_UP ? "kTRUE" : "kFALSE")  << ",  "
     1568         << (CMatrix    ? "kTRUE" : "kFALSE")  << ",  "
    15611569         << (RMatrix    ? "kTRUE" : "kFALSE")  << ",  "
    15621570         << (WOptimize  ? "kTRUE" : "kFALSE")  << ",  "
     
    16601668    //--------------------------
    16611669    // create matrices and write them onto files
    1662     if (!RMatrix)
     1670    if (CMatrix)
    16631671    {
    16641672      MH3 &mh3 = *(new MH3("MHillas.fSize"));
     
    21112119    //  - read ON1 and MC1 data files 
    21122120    //    which should have been updated to contain the hadronnesses
    2113     //    for the method of NEAREST NEIGHBORS and for the SUOERCUTS
     2121    //    for the method of Random Forest and for the SUPERCUTS
    21142122    //  - produce Neyman-Pearson plots
    21152123 
Note: See TracChangeset for help on using the changeset viewer.