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

Last change on this file since 7443 was 7420, checked in by tbretz, 19 years ago
*** empty log message ***
File size: 1.1 KB
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 MH3;
13
14class MJTrainSeparation : public MJTrainRanForest
15{
16private:
17 MDataSet fDataSetTest;
18 MDataSet fDataSetTrain;
19
20 UInt_t fNumTrainOn;
21 UInt_t fNumTrainOff;
22
23 UInt_t fNumTestOn;
24 UInt_t fNumTestOff;
25
26 void DisplayResult(MH3 &h31, MH3 &h32);
27
28public:
29 MJTrainSeparation() :
30 fNumTrainOn((UInt_t)-1), fNumTrainOff((UInt_t)-1), fNumTestOn((UInt_t)-1), fNumTestOff((UInt_t)-1)
31 { }
32
33 void SetDataSetTrain(const MDataSet &ds, UInt_t non=(UInt_t)-1, UInt_t noff=(UInt_t)-1)
34 {
35 ds.Copy(fDataSetTrain);
36 fNumTrainOn = non;
37 fNumTrainOff = noff;
38 }
39 void SetDataSetTest(const MDataSet &ds, UInt_t non=(UInt_t)-1, UInt_t noff=(UInt_t)-1)
40 {
41 ds.Copy(fDataSetTest);
42 fNumTestOn = non;
43 fNumTestOff = noff;
44 }
45
46 Bool_t Train(const char *out);
47
48 ClassDef(MJTrainSeparation, 0)//Class to train Random Forest gamma-/background-separation
49};
50
51#endif
Note: See TracBrowser for help on using the repository browser.