Logo ROOT  
Reference Guide
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 
9 namespace 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 
24  virtual ~QuickMVAProbEstimator(){delete fLogger;}
25  void AddEvent(Double_t val, Double_t weight, Int_t type);
26 
27 
29 
30 
31  private:
32  std::vector<EventInfo> fEvtVector;
36 
37  mutable MsgLogger* fLogger;
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
TMVA::QuickMVAProbEstimator::fIsSorted
Bool_t fIsSorted
Definition: QuickMVAProbEstimator.h:33
TMVA::QuickMVAProbEstimator::EventInfo
Definition: QuickMVAProbEstimator.h:14
TMVA::QuickMVAProbEstimator
Definition: QuickMVAProbEstimator.h:11
bool
TMVA::QuickMVAProbEstimator::Log
MsgLogger & Log() const
Definition: QuickMVAProbEstimator.h:38
TMVA::QuickMVAProbEstimator::AddEvent
void AddEvent(Double_t val, Double_t weight, Int_t type)
Definition: QuickMVAProbEstimator.cxx:14
MsgLogger.h
TMVA::QuickMVAProbEstimator::compare
static bool compare(EventInfo e1, EventInfo e2)
Definition: QuickMVAProbEstimator.h:19
TMVA::QuickMVAProbEstimator::QuickMVAProbEstimator
QuickMVAProbEstimator(Int_t nMin=40, Int_t nMax=5000)
Definition: QuickMVAProbEstimator.h:21
TMVA::QuickMVAProbEstimator::EventInfo::eventType
Int_t eventType
Definition: QuickMVAProbEstimator.h:17
TMVA::QuickMVAProbEstimator::fLogger
MsgLogger * fLogger
Definition: QuickMVAProbEstimator.h:37
unsigned int
TMVA::QuickMVAProbEstimator::EventInfo::eventValue
Double_t eventValue
Definition: QuickMVAProbEstimator.h:15
TMVA::QuickMVAProbEstimator::fNMax
UInt_t fNMax
Definition: QuickMVAProbEstimator.h:35
Double_t
double Double_t
Definition: RtypesCore.h:59
TMVA::MsgLogger
Definition: MsgLogger.h:83
ClassDef
#define ClassDef(name, id)
Definition: Rtypes.h:325
TMVA::QuickMVAProbEstimator::~QuickMVAProbEstimator
virtual ~QuickMVAProbEstimator()
Definition: QuickMVAProbEstimator.h:24
TMVA::QuickMVAProbEstimator::EventInfo::eventWeight
Double_t eventWeight
Definition: QuickMVAProbEstimator.h:16
type
int type
Definition: TGX11.cxx:121
TMVA::QuickMVAProbEstimator::GetMVAProbAt
Double_t GetMVAProbAt(Double_t value)
Definition: QuickMVAProbEstimator.cxx:24
TMVA::QuickMVAProbEstimator::fEvtVector
std::vector< EventInfo > fEvtVector
Definition: QuickMVAProbEstimator.h:32
TMVA::QuickMVAProbEstimator::fNMin
UInt_t fNMin
Definition: QuickMVAProbEstimator.h:34
TMVA
create variable transformations
Definition: GeneticMinimizer.h:22
int