Logo ROOT   6.16/01
Reference Guide
mvaeffs.h
Go to the documentation of this file.
1#ifndef mvaeffs__HH
2#define mvaeffs__HH
3
4#include "RQ_OBJECT.h"
5#include "TCanvas.h"
6#include "TFile.h"
7#include "TGLabel.h"
8#include "TGNumberEntry.h"
9#include "TGWindow.h"
10#include "TGaxis.h"
11#include "TH1.h"
12#include "TIterator.h"
13#include "TLatex.h"
14#include "TList.h"
15
16namespace TMVA{
17
18 void mvaeffs(TString dataset, TString fin = "TMVA.root",
19 Bool_t useTMVAStyle = kTRUE, TString formula="S/sqrt(S+B)" );
20
21 // this macro plots the signal and background efficiencies
22 // as a function of the MVA cut.
23
24
25 class MethodInfo : public TNamed {
26 public:
28 methodName(""),
29 methodTitle(""),
30 sig(0),
31 bgd(0),
32 origSigE(0),
33 origBgdE(0),
34 sigE(0),
35 bgdE(0),
36 purS(0),
37 sSig(0),
38 effpurS(0),
39 canvas(0),
40 line1(0),
41 line2(0),
42 rightAxis(0),
45 {}
46 virtual ~MethodInfo();
47
65
66 void SetResultHists();
67
69 };
70
72
73 RQ_OBJECT("StatDialogMVAEffs")
74
75 public:
76
78 virtual ~StatDialogMVAEffs();
79
80 void SetFormula(const TString& f) { fFormula = f; }
84
87 void DrawHistograms();
88
89 void RaiseDialog() { if (fMain) { fMain->RaiseWindow(); fMain->Layout(); fMain->MapWindow(); } }
90
91 private:
92
99
102
106
108
109 void UpdateCanvases();
110
111 public:
112
113 // slots
114 void SetNSignal(); //*SIGNAL*
115 void SetNBackground(); //*SIGNAL*
116 void Redraw(); //*SIGNAL*
117 void Close(); //*SIGNAL*
118
119 // result printing
120 void PrintResults( const MethodInfo* info );
121 };
122
123}
124#endif
#define RQ_OBJECT(sender_class)
Definition: RQ_OBJECT.h:87
#define f(i)
Definition: RSha256.hxx:104
int Int_t
Definition: RtypesCore.h:41
bool Bool_t
Definition: RtypesCore.h:59
double Double_t
Definition: RtypesCore.h:55
float Float_t
Definition: RtypesCore.h:53
const Bool_t kTRUE
Definition: RtypesCore.h:87
#define ClassDef(name, id)
Definition: Rtypes.h:324
The Canvas class.
Definition: TCanvas.h:31
A ROOT file is a suite of consecutive data records (TKey instances) with a well defined format.
Definition: TFile.h:48
virtual void Layout()
Layout the elements of the composite frame.
Definition: TGFrame.cxx:1239
virtual void MapWindow()
Definition: TGFrame.h:251
virtual void RaiseWindow()
Definition: TGWindow.h:94
The axis painter class.
Definition: TGaxis.h:24
The TH1 histogram class.
Definition: TH1.h:56
To draw Mathematical Formula.
Definition: TLatex.h:18
A doubly linked list.
Definition: TList.h:44
virtual ~MethodInfo()
Definition: mvaeffs.cxx:36
TH1 * origBgdE
Definition: mvaeffs.h:53
TString methodTitle
Definition: mvaeffs.h:49
TCanvas * canvas
Definition: mvaeffs.h:59
TGaxis * rightAxis
Definition: mvaeffs.h:62
TH1 * effpurS
Definition: mvaeffs.h:58
TH1 * origSigE
Definition: mvaeffs.h:52
TLatex * line1
Definition: mvaeffs.h:60
void SetResultHists()
Definition: mvaeffs.cxx:47
Double_t maxSignificanceErr
Definition: mvaeffs.h:64
TLatex * line2
Definition: mvaeffs.h:61
Double_t maxSignificance
Definition: mvaeffs.h:63
TString methodName
Definition: mvaeffs.h:48
TString GetFormulaString()
Definition: mvaeffs.h:82
void UpdateSignificanceHists()
Definition: mvaeffs.cxx:228
TGTextButton * fCloseButton
Definition: mvaeffs.h:105
void ReadHistograms(TFile *file)
Definition: mvaeffs.cxx:270
virtual ~StatDialogMVAEffs()
Definition: mvaeffs.cxx:125
void PrintResults(const MethodInfo *info)
Definition: mvaeffs.cxx:459
TGHorizontalFrame * fButtons
Definition: mvaeffs.h:103
StatDialogMVAEffs(TString ds, const TGWindow *p, Float_t ns, Float_t nb)
Definition: mvaeffs.cxx:148
TGNumberEntry * fSigInput
Definition: mvaeffs.h:100
TGMainFrame * fMain
Definition: mvaeffs.h:93
TGTextButton * fDrawButton
Definition: mvaeffs.h:104
void SetFormula(const TString &f)
Definition: mvaeffs.h:80
TString GetLatexFormula()
Definition: mvaeffs.cxx:105
TGNumberEntry * fBkgInput
Definition: mvaeffs.h:101
The TNamed class is the base class for all named ROOT classes.
Definition: TNamed.h:29
Basic string class.
Definition: TString.h:131
static constexpr double ns
Abstract ClassifierFactory template that handles arbitrary types.
void mvaeffs(TString dataset, TString fin="TMVA.root", Bool_t useTMVAStyle=kTRUE, TString formula="S/sqrt(S+B)")
Definition: file.py:1