| Line | |
|---|
| 1 | #ifndef MARS_MJTrainDisp
|
|---|
| 2 | #define MARS_MJTrainDisp
|
|---|
| 3 |
|
|---|
| 4 | #ifndef MARS_MJTrainRanForest
|
|---|
| 5 | #include "MJTrainRanForest.h"
|
|---|
| 6 | #endif
|
|---|
| 7 |
|
|---|
| 8 | class TCanvas;
|
|---|
| 9 |
|
|---|
| 10 | class MH3;
|
|---|
| 11 | class MDataSet;
|
|---|
| 12 |
|
|---|
| 13 | class MJTrainDisp : public MJTrainRanForest
|
|---|
| 14 | {
|
|---|
| 15 | private:
|
|---|
| 16 | static const TString fgTrainParameter;
|
|---|
| 17 |
|
|---|
| 18 | TString fTrainParameter;
|
|---|
| 19 | TString fResultFunction;
|
|---|
| 20 |
|
|---|
| 21 | Float_t fThetaCut;
|
|---|
| 22 |
|
|---|
| 23 | // To be moved to a base class
|
|---|
| 24 | TString fNameOutput;
|
|---|
| 25 |
|
|---|
| 26 | void DisplayHist(TCanvas &c, Int_t i, MH3 &mh3) const;
|
|---|
| 27 | void DisplayResult(MH3 &hsize, MH3 &henergy);
|
|---|
| 28 |
|
|---|
| 29 | public:
|
|---|
| 30 | MJTrainDisp() : fTrainParameter(fgTrainParameter), fResultFunction("x"), fThetaCut(0.215), fNameOutput("Disp") { }
|
|---|
| 31 |
|
|---|
| 32 | void SetTrainFunc(const char *par, const char *res="x")
|
|---|
| 33 | {
|
|---|
| 34 | fTrainParameter = par;
|
|---|
| 35 | fResultFunction = res;
|
|---|
| 36 | }
|
|---|
| 37 |
|
|---|
| 38 | void SetThetaCut(Float_t cut=0.215) { fThetaCut=cut; }
|
|---|
| 39 |
|
|---|
| 40 | Bool_t Train(const char *out, const MDataSet &set, Int_t num);
|
|---|
| 41 | //Bool_t TrainGhostbuster(const char *out, const MDataSet &set, Int_t num);
|
|---|
| 42 |
|
|---|
| 43 | ClassDef(MJTrainDisp, 0)//Class to train Random Forest disp estimator
|
|---|
| 44 | };
|
|---|
| 45 |
|
|---|
| 46 | #endif
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.