38   if (nRange > fEvtVector.size()) {
 
   39      nRange = fEvtVector.size()/3.;
 
   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){
 
   52      if ( fEvtVector.end() > it+iRight+1){
 
   54         if ( ((it+iRight))->eventType == 0) nSignal+=((it+iRight))->eventWeight;
 
   55         else                                nBackgr+=((it+iRight))->eventWeight;
 
   57      if ( fEvtVector.begin() <= it-iLeft-1){
 
   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 ;
 
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void value
 
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t Atom_t Atom_t Time_t type
 
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.