source: trunk/MagicSoft/Mars/mjtrain/MJTrainEnergy.h@ 8704

Last change on this file since 8704 was 8704, checked in by tbretz, 17 years ago
*** empty log message ***
File size: 738 bytes
Line 
1#ifndef MARS_MJTrainEnergy
2#define MARS_MJTrainEnergy
3
4#ifndef MARS_MJTrainRanForest
5#include "MJTrainRanForest.h"
6#endif
7
8class MDataSet;
9
10class MJTrainEnergy : public MJTrainRanForest
11{
12private:
13 TString fTrainParameter;
14 TString fResultFunction;
15
16public:
17 MJTrainEnergy() { SetTrainLin(); }
18
19 void SetTrainLog() { SetTrainFunc("log10(MMcEvt.fEnergy)", "pow(10, x)"); }
20 void SetTrainLin() { SetTrainFunc("MMcEvt.fEnergy", "x"); }
21
22 void SetTrainFunc(const char *par, const char *res)
23 {
24 fTrainParameter = par;
25 fResultFunction = res;
26 }
27
28 Bool_t Train(const char *out, const MDataSet &set, Int_t num);
29
30 ClassDef(MJTrainEnergy, 0)//Class to train Random Forest energy estimator
31};
32
33
34#endif
Note: See TracBrowser for help on using the repository browser.