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

Last change on this file since 7162 was 7142, checked in by tbretz, 20 years ago
*** empty log message ***
File size: 1.5 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_TObjArray
9#include <TObjArray.h>
10#endif
11
12class TArrayD;
13
14class MHMatrix;
15class MDataArray;
16class MParameterD;
17
18class MRFEnergyEst : public MTask
19{
20private:
21 Int_t fNumTrees; // Training parameters
22 Int_t fNumTry; // Training parameters
23 Int_t fNdSize; // Training parameters
24
25 Bool_t fDebug; // Debugging of eventloop while training on/off
26
27 TString fFileName;
28 TObjArray fEForests;
29
30 MDataArray *fData; //! Used to store the MDataChains to get the event values
31 MParameterD *fEnergyEst; //! Used to storeestimated energy
32
33 MHMatrix *fTestMatrix;
34
35 Int_t PreProcess(MParList *plist);
36 Int_t Process();
37
38 Int_t ReadForests(MParList &plist);
39
40 Int_t ReadEnv(const TEnv &env, TString prefix, Bool_t print);
41
42public:
43 MRFEnergyEst(const char *name=NULL, const char *title=NULL);
44
45 void SetFileName(TString str) { fFileName = str; }
46
47 void SetNumTrees(Int_t n=-1) { fNumTrees = n; }
48 void SetNdSize(Int_t n=-1) { fNdSize = n; }
49 void SetNumTry(Int_t n=-1) { fNumTry = n; }
50
51 void SetTestMatrix(MHMatrix *m=0) { fTestMatrix=m; }
52 void InitMapping(MHMatrix *m=0) { fTestMatrix=m; }
53
54 void SetDebug(Bool_t b=kTRUE) { fDebug = b; }
55
56 Int_t Train(const MHMatrix &n, const TArrayD &grid);
57
58 ClassDef(MRFEnergyEst, 0) // Task
59};
60
61#endif
Note: See TracBrowser for help on using the repository browser.