source: trunk/MagicSoft/Mars/mranforest/MRFEnergyEst.h@ 6557

Last change on this file since 6557 was 6530, checked in by tbretz, 20 years ago
*** empty log message ***
File size: 1.3 KB
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
16class MHMatrix;
17class MDataArray;
18class MEnergyEst;
19
20class MRFEnergyEst : public MTask
21{
22private:
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 MEnergyEst *fEnergyEst;
36
37 Int_t PreProcess(MParList *plist);
38 Int_t Process();
39 Int_t PostProcess();
40
41 Int_t ReadForests(MParList *plist=NULL);
42
43public:
44 MRFEnergyEst(const char *name=NULL, const char *title=NULL);
45 ~MRFEnergyEst();
46
47 void SetMatrixTrain(MHMatrix *mat) { fMatrixTrain = mat; }
48 void SetMatrixTest( MHMatrix *mat) { fMatrixTest = mat; }
49 void SetFile(TString str) { fRFfileName = str; }
50
51 void SetLogEnergyGrid(TArrayD &egrid) { fEnergyGrid = egrid ; }
52
53 void SetNumTrees(UShort_t n=100) { fNumTrees = n; }
54 void SetNdSize(UShort_t n=1) { fNdSize = n; }
55 void SetNumTry(UShort_t n) { fNumTry = n; }
56
57 Int_t Train();
58 Int_t Test();
59
60 ClassDef(MRFEnergyEst, 0) // Task
61};
62
63#endif
Note: See TracBrowser for help on using the repository browser.