Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
QuickMVAProbEstimator.h
Go to the documentation of this file.
1#ifndef ROOT_TMVA_QUICKMVAPROBESTIMATOR
2#define ROOT_TMVA_QUICKMVAPROBESTIMATOR
3
4#include <vector>
5#include <algorithm>
6
7#include "TMVA/MsgLogger.h"
8
9namespace TMVA {
10
12 public:
13
14 struct EventInfo{
17 Int_t eventType; //signal or background
18 };
19 static bool compare(EventInfo e1, EventInfo e2){return e1.eventValue < e2.eventValue;}
20
21 QuickMVAProbEstimator(Int_t nMin=40, Int_t nMax=5000):fIsSorted(false),fNMin(nMin),fNMax(nMax){ fLogger = new MsgLogger("QuickMVAProbEstimator");}
22
23
25 void AddEvent(Double_t val, Double_t weight, Int_t type);
26
27
29
30
31 private:
32 std::vector<EventInfo> fEvtVector;
36
38 MsgLogger& Log() const { return *fLogger; }
39
40 ClassDef(QuickMVAProbEstimator,0); // Interface to different separation critiera used in training algorithms
41
42
43 };
44}
45
46
47#endif
double Double_t
Definition RtypesCore.h:59
#define ClassDef(name, id)
Definition Rtypes.h:325
int type
Definition TGX11.cxx:121
ostringstream derivative to redirect and format output
Definition MsgLogger.h:59
QuickMVAProbEstimator(Int_t nMin=40, Int_t nMax=5000)
static bool compare(EventInfo e1, EventInfo e2)
Double_t GetMVAProbAt(Double_t value)
void AddEvent(Double_t val, Double_t weight, Int_t type)
std::vector< EventInfo > fEvtVector
create variable transformations