Changeset 7398 for trunk/MagicSoft
- Timestamp:
- 11/14/05 10:39:49 (19 years ago)
- Location:
- trunk/MagicSoft/Mars/mranforest
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mranforest/MRFEnergyEst.cc
r7396 r7398 104 104 const Int_t nobs = 3; // Number of obsolete columns 105 105 106 MDataArray &dcol = *matrixtrain.GetColumns();106 const MDataArray &dcol = *matrixtrain.GetColumns(); 107 107 108 108 MDataArray usedrules; … … 292 292 if (fEForests.GetEntries()==1) 293 293 { 294 constMRanForest *rf = (MRanForest*)fEForests[0];294 MRanForest *rf = (MRanForest*)fEForests[0]; 295 295 fEnergyEst->SetVal(rf->CalcHadroness(event)); 296 296 fEnergyEst->SetReadyToSave(); -
trunk/MagicSoft/Mars/mranforest/MRanForest.cc
r7396 r7398 265 265 MRanTree *tree; 266 266 while ((tree=(MRanTree*)Next())) 267 { 268 hadroness+=(fTreeHad[ntree]=tree->TreeHad(event)); 269 ntree++; 270 } 267 hadroness += (fTreeHad[ntree++]=tree->TreeHad(event)); 268 271 269 return hadroness/ntree; 272 270 } -
trunk/MagicSoft/Mars/mranforest/MRanForestGrow.h
r7396 r7398 27 27 Int_t PostProcess(); 28 28 29 UInt_t GetEntries() { return fNumTrees; }29 UInt_t GetEntries() { return 100; }//fNumTrees; } 30 30 TString GetFileName() const { return "MRanForestGrow"; } 31 31 TString GetFullFileName() const { return "MRanForestGrow"; }
Note:
See TracChangeset
for help on using the changeset viewer.