source: trunk/MagicSoft/Mars/mranforest/MRanForestGrow.h@ 7392

Last change on this file since 7392 was 7130, checked in by tbretz, 19 years ago
*** empty log message ***
File size: 1.0 KB
Line 
1#ifndef MARS_MRanForestGrow
2#define MARS_MRanForestGrow
3
4#ifndef MARS_MRead
5#include "MRead.h"
6#endif
7
8class MHMatrix;
9class MParList;
10class MRanForest;
11class MRanTree;
12
13class MRanForestGrow : public MRead
14{
15private:
16 MRanTree *fRanTree;
17 MRanForest *fRanForest;
18 MHMatrix *fMGammas; //! Gammas describing matrix
19 MHMatrix *fMHadrons; //! Hadrons (non gammas) describing matrix
20
21 Int_t fNumTrees;
22 Int_t fNumTry;
23 Int_t fNdSize;
24
25 Int_t PreProcess(MParList *pList);
26 Int_t Process();
27 Int_t PostProcess();
28
29 UInt_t GetEntries() { return fNumTrees; }
30 TString GetFileName() const { return "MRanForestGrow"; }
31 TString GetFullFileName() const { return "MRanForestGrow"; }
32
33public:
34 MRanForestGrow(const char *name=NULL, const char *title=NULL);
35
36 void SetNumTrees(Int_t n=-1) { fNumTrees=n>0?n:100; }
37 void SetNumTry(Int_t n=-1) { fNumTry =n>0?n: 3; }
38 void SetNdSize(Int_t n=-1) { fNdSize =n>0?n: 1; }
39
40 ClassDef(MRanForestGrow, 0) // Task to grow a random forest
41};
42
43#endif
44
Note: See TracBrowser for help on using the repository browser.