Changeset 7398 for trunk/MagicSoft


Ignore:
Timestamp:
11/14/05 10:39:49 (19 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mranforest
Files:
3 edited

Legend:

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

    r7396 r7398  
    104104    const Int_t nobs = 3; // Number of obsolete columns
    105105
    106     MDataArray &dcol = *matrixtrain.GetColumns();
     106    const MDataArray &dcol = *matrixtrain.GetColumns();
    107107
    108108    MDataArray usedrules;
     
    292292    if (fEForests.GetEntries()==1)
    293293    {
    294         const MRanForest *rf = (MRanForest*)fEForests[0];
     294        MRanForest *rf = (MRanForest*)fEForests[0];
    295295        fEnergyEst->SetVal(rf->CalcHadroness(event));
    296296        fEnergyEst->SetReadyToSave();
  • trunk/MagicSoft/Mars/mranforest/MRanForest.cc

    r7396 r7398  
    265265    MRanTree *tree;
    266266    while ((tree=(MRanTree*)Next()))
    267     {
    268         hadroness+=(fTreeHad[ntree]=tree->TreeHad(event));
    269         ntree++;
    270     }
     267        hadroness += (fTreeHad[ntree++]=tree->TreeHad(event));
     268
    271269    return hadroness/ntree;
    272270}
  • trunk/MagicSoft/Mars/mranforest/MRanForestGrow.h

    r7396 r7398  
    2727    Int_t PostProcess();
    2828
    29     UInt_t  GetEntries()            { return fNumTrees; }
     29    UInt_t  GetEntries()            { return 100; }//fNumTrees; }
    3030    TString GetFileName() const     { return "MRanForestGrow"; }
    3131    TString GetFullFileName() const { return "MRanForestGrow"; }
Note: See TracChangeset for help on using the changeset viewer.