Line | |
---|
1 | #ifndef MARS_MRanForestGrow
|
---|
2 | #define MARS_MRanForestGrow
|
---|
3 |
|
---|
4 | #ifndef MARS_MRead
|
---|
5 | #include "MRead.h"
|
---|
6 | #endif
|
---|
7 |
|
---|
8 | class MHMatrix;
|
---|
9 | class MParList;
|
---|
10 | class MRanForest;
|
---|
11 | class MRanTree;
|
---|
12 |
|
---|
13 | class MRanForestGrow : public MRead
|
---|
14 | {
|
---|
15 | private:
|
---|
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 |
|
---|
33 | public:
|
---|
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.