Line | |
---|
1 | #ifndef MARS_MRFEnergyEst
|
---|
2 | #define MARS_MRFEnergyEst
|
---|
3 |
|
---|
4 | #ifndef MARS_MTask
|
---|
5 | #include "MTask.h"
|
---|
6 | #endif
|
---|
7 |
|
---|
8 | #ifndef ROOT_TArrayD
|
---|
9 | #include <TArrayD.h>
|
---|
10 | #endif
|
---|
11 |
|
---|
12 | #ifndef ROOT_TObjArray
|
---|
13 | #include <TObjArray.h>
|
---|
14 | #endif
|
---|
15 |
|
---|
16 | class MHMatrix;
|
---|
17 | class MDataArray;
|
---|
18 | class MParameterD;
|
---|
19 |
|
---|
20 | class MRFEnergyEst : public MTask
|
---|
21 | {
|
---|
22 | private:
|
---|
23 | Int_t fNumTrees;
|
---|
24 | Int_t fNumTry;
|
---|
25 | Int_t fNdSize;
|
---|
26 |
|
---|
27 | TString fRFfileName;
|
---|
28 | MHMatrix *fMatrixTrain;
|
---|
29 | MHMatrix *fMatrixTest;
|
---|
30 | TArrayD fEnergyGrid;
|
---|
31 |
|
---|
32 | MDataArray *fData; //! Used to store the MDataChains to get the event values
|
---|
33 | TObjArray fEForests;
|
---|
34 |
|
---|
35 | MParameterD *fEnergyEst;
|
---|
36 |
|
---|
37 | Int_t PreProcess(MParList *plist);
|
---|
38 | Int_t Process();
|
---|
39 |
|
---|
40 | Int_t ReadForests(MParList *plist=NULL);
|
---|
41 |
|
---|
42 | public:
|
---|
43 | MRFEnergyEst(const char *name=NULL, const char *title=NULL);
|
---|
44 | ~MRFEnergyEst();
|
---|
45 |
|
---|
46 | void SetMatrixTrain(MHMatrix *mat) { fMatrixTrain = mat; }
|
---|
47 | void SetMatrixTest( MHMatrix *mat) { fMatrixTest = mat; }
|
---|
48 | void SetFile(TString str) { fRFfileName = str; }
|
---|
49 |
|
---|
50 | void SetLogEnergyGrid(TArrayD &egrid) { fEnergyGrid = egrid ; }
|
---|
51 |
|
---|
52 | void SetNumTrees(UShort_t n=100) { fNumTrees = n; }
|
---|
53 | void SetNdSize(UShort_t n=1) { fNdSize = n; }
|
---|
54 | void SetNumTry(UShort_t n) { fNumTry = n; }
|
---|
55 |
|
---|
56 | Int_t Train();
|
---|
57 | Int_t Test();
|
---|
58 |
|
---|
59 | ClassDef(MRFEnergyEst, 0) // Task
|
---|
60 | };
|
---|
61 |
|
---|
62 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.