Changeset 1864
- Timestamp:
- 03/24/03 14:26:49 (22 years ago)
- Location:
- trunk/MagicSoft/Mars/manalysis
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/manalysis/MHillasSrcCalc.h
r1862 r1864 36 36 const char *name=NULL, const char *title=NULL); 37 37 38 void SetInput(TS Tring hilname) { fHillasName = hilname; }38 void SetInput(TString hilname) { fHillasName = hilname; } 39 39 40 40 ClassDef(MHillasSrcCalc, 1) // task to calculate the source position depandant hillas parameters -
trunk/MagicSoft/Mars/manalysis/MRanForest.cc
r1859 r1864 38 38 // namely bootstrap aggregating (which is done in GrowForest()) and random // 39 39 // split selection (which is subject to MRanTree::GrowTree()) // 40 // // 40 41 ///////////////////////////////////////////////////////////////////////////// 41 42 #include "MRanForest.h" 42 #include <iostream.h> 43 #include <fstream.h> 44 45 #include <TFile.h> // gFile 43 44 #include <TMatrix.h> 45 46 #include "MHMatrix.h" 47 #include "MRanTree.h" 46 48 47 49 #include "MLog.h" 48 50 #include "MLogManip.h" 49 51 50 51 52 ClassImp(MRanForest); 53 52 54 // -------------------------------------------------------------------------- 53 55 // … … 66 68 fTreeHad.Set(fNumTrees); 67 69 fTreeHad.Reset(); 68 69 return;70 70 } 71 71 … … 83 83 84 84 fUsePriors=kTRUE; 85 86 return;87 85 } 88 86 … … 106 104 fForest=new TObjArray(); 107 105 fForest->SetOwner(kTRUE); 108 109 return;110 106 } 111 107 … … 115 111 // ndsize + numtry are set in MRanForestGrow!! 116 112 fRanTree=rantree; 117 118 return;119 113 } 120 114 -
trunk/MagicSoft/Mars/manalysis/MRanForest.h
r1859 r1864 18 18 #endif 19 19 20 #ifndef ROOT_TObjArray21 #include <TObjArray.h>22 #endif23 24 20 #ifndef ROOT_TRandom 25 21 #include <TRandom.h> 26 22 #endif 27 23 28 #ifndef ROOT_TMatrix 29 #include <TMatrix.h> 30 #endif 31 32 #ifndef MARS_MHMatrix 33 #include "MHMatrix.h" 34 #endif 35 36 #ifndef MARS_MRanTree 37 #include "MRanTree.h" 38 #endif 24 class MHMatrix; 25 class MRanTree; 26 class TVector; 39 27 40 28 class MRanForest : public MParContainer -
trunk/MagicSoft/Mars/manalysis/MRanForestCalc.cc
r1859 r1864 36 36 #include "MRanForestCalc.h" 37 37 38 #include <fstream.h>39 40 38 #include "MHMatrix.h" // must be before MLogManip.h 41 39 … … 44 42 45 43 #include "MParList.h" 46 #include "MDataChain.h" 47 #include "MDataArray.h" 44 45 #include "MRanTree.h" 46 #include "MRanForest.h" 48 47 49 48 #include "MHadronness.h" … … 53 52 static const TString gsDefName = "MRanForestCalc"; 54 53 static const TString gsDefTitle = "Tree Classification Loop 1/2"; 54 55 55 // -------------------------------------------------------------------------- 56 56 // -
trunk/MagicSoft/Mars/manalysis/MRanForestCalc.h
r1859 r1864 6 6 #endif 7 7 8 #ifndef MARS_MRanForest9 #include "MRanForest.h"10 #endif11 12 8 class MParList; 13 9 class MHadronness; 14 10 class MDataArray; 11 class MRanTree; 12 class MRanForest; 15 13 16 14 class MRanForestCalc : public MTask -
trunk/MagicSoft/Mars/manalysis/MRanForestFill.cc
r1859 r1864 36 36 #include "MRanForestFill.h" 37 37 38 #include <fstream.h>39 40 38 #include "MLog.h" 41 39 #include "MLogManip.h" 42 40 43 41 #include "MParList.h" 44 #include "MDataChain.h" 45 #include "M DataArray.h"42 43 #include "MRanForest.h" 46 44 47 45 ClassImp(MRanForestFill); … … 49 47 static const TString gsDefName = "MRanForestFill"; 50 48 static const TString gsDefTitle = "Tree Classification Loop 1/2"; 49 51 50 // -------------------------------------------------------------------------- 52 51 // … … 98 97 Bool_t MRanForestFill::Process() 99 98 { 100 101 99 fNum++; 102 100 fRanForest->SetTree(fRanTree); -
trunk/MagicSoft/Mars/manalysis/MRanForestFill.h
r1859 r1864 6 6 #endif 7 7 8 #ifndef MARS_MRanForest 9 #include "MRanForest.h" 10 #endif 11 12 #ifndef MARS_MRanTree 13 #include "MRanTree.h" 14 #endif 15 8 class MRanTree; 9 class MRanForest; 16 10 class MParList; 17 11 class MDataArray; -
trunk/MagicSoft/Mars/manalysis/MRanForestGrow.cc
r1859 r1864 29 29 // Grows a random forest. // 30 30 // // 31 // //32 31 ///////////////////////////////////////////////////////////////////////////// 33 32 #include "MRanForestGrow.h" 34 35 #include <fstream.h>36 33 37 34 #include "MHMatrix.h" // must be before MLogManip.h … … 42 39 #include "MParList.h" 43 40 41 #include "MRanTree.h" 42 #include "MRanForest.h" 43 44 44 ClassImp(MRanForestGrow); 45 45 46 46 static const TString gsDefName = "MRanForestGrow"; 47 47 static const TString gsDefTitle = "Tree Classification Loop 1/2"; 48 48 49 // -------------------------------------------------------------------------- 49 50 // … … 59 60 fName = name ? name : gsDefName.Data(); 60 61 fTitle = title ? title : gsDefTitle.Data(); 61 62 62 } 63 63 … … 128 128 return not_last; 129 129 } 130 130 131 Bool_t MRanForestGrow::PostProcess() 131 132 { … … 135 136 return kTRUE; 136 137 } 138 137 139 void MRanForestGrow::SetNumTrees(Int_t n) 138 140 { 139 141 fNumTrees=n; 140 return;141 142 } 142 143 … … 144 145 { 145 146 fNumTry=n; 146 return;147 147 } 148 148 … … 150 150 { 151 151 fNdSize=n; 152 return;153 152 } -
trunk/MagicSoft/Mars/manalysis/MRanForestGrow.h
r1859 r1864 1 1 #ifndef MARS_MRanForestGrow 2 2 #define MARS_MRanForestGrow 3 4 #ifndef MARS_MTask5 #include "MTask.h"6 #endif7 8 #include "TRandom.h"9 #include "TMath.h"10 3 11 4 ///////////////////////////////////////////////////////////////////////////// … … 17 10 ///////////////////////////////////////////////////////////////////////////// 18 11 19 #include "MRanForest.h" 12 #ifndef MARS_MTask 13 #include "MTask.h" 14 #endif 20 15 21 16 class MHMatrix; 22 17 class MParList; 23 18 class MRanForest; 19 class MRanTree; 24 20 25 21 class MRanForestGrow : public MTask
Note:
See TracChangeset
for help on using the changeset viewer.