Changeset 6492 for trunk/MagicSoft/Mars


Ignore:
Timestamp:
02/15/05 17:27:17 (20 years ago)
Author:
hengsteb
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mranforest/MRFEnergyEst.cc

    r6479 r6492  
    9696    const Int_t nrows = (fMatrixTrain->GetM()).GetNrows();
    9797
     98    cout<<"ncols="<<ncols<<" nrows="<<nrows<<endl<<flush;
     99
    98100    if(ncols<=0 || nrows <=0)
    99101    {
     
    138140
    139141    // training of RF for each energy bin
     142    Int_t numbins=0;
    140143    for(Int_t ie=0;ie<nbins;ie++)
    141144    {
     
    159162            }
    160163        }
     164        if(irow1*irow0==0)continue;
     165
     166        *fLog << inf << dbginf << "Training RF for energy bin "<<ie<< endl;
    161167
    162168        // last column must be removed (true energy col.)
     
    209215        MRanForest *forest=(MRanForest*)plist.FindObject("MRanForest");
    210216        forest->SetTitle(Form("%f",0.5*(fEnergyGrid[ie]+fEnergyGrid[ie+1])));
    211         forest->Write(Form("%d",ie));
     217        forest->Write(Form("%d",numbins));
     218        numbins++;
    212219    }
    213220
Note: See TracChangeset for help on using the changeset viewer.