source: trunk/MagicSoft/Mars/mjtrain/MJTrainSeparation.h@ 7412

Last change on this file since 7412 was 7412, checked in by tbretz, 19 years ago
*** empty log message ***
File size: 786 bytes
Line 
1#ifndef MARS_MJTrainSeparation
2#define MARS_MJTrainSeparation
3
4#ifndef MARS_MJTrainRanForest
5#include "MJTrainRanForest.h"
6#endif
7
8#ifndef MARS_MDataSet
9#include "MDataSet.h"
10#endif
11
12class MJTrainSeparation : public MJTrainRanForest
13{
14private:
15 MDataSet fDataSetTest;
16 MDataSet fDataSetTrain;
17
18 UInt_t fNumTrainOn;
19 UInt_t fNumTrainOff;
20
21public:
22 MJTrainSeparation() { }
23
24 void SetDataSetTrain(const MDataSet &ds, UInt_t non, UInt_t noff)
25 {
26 ds.Copy(fDataSetTrain);
27 fNumTrainOn = non;
28 fNumTrainOff = noff;
29 }
30 void SetDataSetTest(const MDataSet &ds)
31 {
32 ds.Copy(fDataSetTest);
33 }
34
35 Bool_t Train(const char *out);
36
37 ClassDef(MJTrainSeparation, 0)//Class to train Random Forest gamma-/background-separation
38};
39
40#endif
Note: See TracBrowser for help on using the repository browser.