40 Log() << kWARNING <<
" !! you have only " <<
fEvtVector.size() <<
" of events.. . I choose "
41 << nRange <<
" for the quick and dirty kNN MVAProb estimate" <<
Endl;
51 while ( (iLeft+iRight) < nRange){
54 if ( ((it+iRight))->eventType == 0) nSignal+=((it+iRight))->eventWeight;
55 else nBackgr+=((it+iRight))->eventWeight;
59 if ( ((it-iLeft))->eventType == 0) nSignal+=((it-iLeft))->eventWeight;
60 else nBackgr+=((it-iLeft))->eventWeight;
64 Double_t mvaProb = (nSignal+nBackgr) ? nSignal/(nSignal+nBackgr) : -1 ;
int Int_t
Signed integer 4 bytes (int).
unsigned int UInt_t
Unsigned integer 4 bytes (unsigned int).
double Double_t
Double 8 bytes.
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
MsgLogger & Endl(MsgLogger &ml)
Short_t Max(Short_t a, Short_t b)
Returns the largest of a and b.
Short_t Min(Short_t a, Short_t b)
Returns the smallest of a and b.