Changeset 7425
- Timestamp:
- 11/22/05 17:40:37 (19 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r7424 r7425 65 65 - updated output 66 66 - made it work properly 67 68 * mjobs/MJCut.cc: 69 - added ClacDisp task to output 70 71 * mjobs/MJPedestal.cc: 72 - removed an obsolete include 67 73 68 74 -
trunk/MagicSoft/Mars/mjobs/MJCut.cc
r7413 r7425 650 650 if (taskenv2.GetTask()) 651 651 cont.Add(taskenv2.GetTask()); 652 if (taskenv3.GetTask()) 653 cont.Add(taskenv3.GetTask()); 652 654 653 655 if (!WriteTasks(set.GetNumAnalysis(), cont)) -
trunk/MagicSoft/Mars/mjobs/MJPedestal.cc
r7220 r7425 62 62 63 63 #include "MStatusDisplay.h" 64 #include "MFEventSelector.h"65 64 66 65 // Other basic classes -
trunk/MagicSoft/Mars/mranforest/MHRanForestGini.cc
r7419 r7425 134 134 // --- Produce some text information --- 135 135 fRules.AddText(""); 136 fRules.AddText(Form("%d trees trained with %d events", fRanForest->GetNumTrees(), 136 fRules.AddText(Form("%s w/ %d trees of node size %d trained by %d events", 137 fRanForest->IsClassify()?"Classification":"Regression", 138 fRanForest->GetNumTrees(), 139 fRanForest->GetNdSize(), 137 140 fRanForest->GetNumData())); 138 fRules.AddText("---"); 141 fRules.AddText("---");//Form("---> %s", fRanForest->GetTargetRule().Data())); 142 139 143 const MDataArray &arr = *fRanForest->GetRules(); 144 140 145 int i; 141 146 for (i=0; i<arr.GetNumEntries(); i++) 142 { 143 TString s; 144 s += i+1; 145 s += ") "; 146 s += arr.GetRule(i); 147 fRules.AddText(s); 148 } 147 fRules.AddText(Form("%d) %s", i+1, arr.GetRule(i).Data())); 148 149 149 for (; i<20; i++) 150 150 fRules.AddText(""); -
trunk/MagicSoft/Mars/mranforest/MRanForest.cc
r7424 r7425 201 201 } 202 202 203 MRanTree *MRanForest::GetTree(Int_t i) const 204 { 205 return static_cast<MRanTree*>(fForest->UncheckedAt(i)); 206 } 207 203 208 Int_t MRanForest::GetNumDim() const 204 209 { … … 372 377 return kFALSE; 373 378 } 374 fRanTree->SetName(target_rule);379 //fRanTree->SetName(target_rule); // Is not stored anyhow 375 380 376 381 const Int_t tryest = TMath::Nint(TMath::Sqrt(dim)); -
trunk/MagicSoft/Mars/mranforest/MRanForest.h
r7424 r7425 97 97 TObjArray *GetForest() const { return fForest; } 98 98 MRanTree *GetCurTree() const { return fRanTree; } 99 MRanTree *GetTree(Int_t i) const { return static_cast<MRanTree*>(fForest->UncheckedAt(i)); }99 MRanTree *GetTree(Int_t i) const; 100 100 MDataArray *GetRules() const { return fRules; } 101 101 … … 104 104 Int_t GetNumData() const; 105 105 Int_t GetNumDim() const; 106 Int_t GetNdSize() const { return fNdSize; } 106 107 Int_t GetNclass() const; 107 108 Double_t GetTreeHad(Int_t i) const { return fTreeHad.At(i); } 108 109 Double_t GetUserVal() const { return fUserVal; } 109 110 Bool_t IsClassify() const { return fClassify; } 111 110 112 // use forest to calculate hadronness of event 111 113 Double_t CalcHadroness(const TVector &event); -
trunk/MagicSoft/Mars/mranforest/MRanForestCalc.cc
r7424 r7425 311 311 if (fEForests.GetEntriesFast()==1) 312 312 { 313 MRanForest *rf = static_cast<MRanForest*> fEForests.UncheckedAt(0);313 MRanForest *rf = static_cast<MRanForest*>(fEForests.UncheckedAt(0)); 314 314 fRFOut->SetVal(rf->CalcHadroness(event)); 315 315 fRFOut->SetReadyToSave(); -
trunk/MagicSoft/Mars/mranforest/MRanForestCalc.h
r7423 r7425 71 71 72 72 // TObject 73 void Print(Option_t *o="") const; 73 void Print(Option_t *o="") const; //*MENU* 74 74 75 75 // Setter for estimation
Note:
See TracChangeset
for help on using the changeset viewer.