28 cout <<
"Cannot open flie: " << fin << endl;
39 Int_t countCanvas = 0;
49 cout <<
"Use MVA output of Method " << methodS <<endl;
52 if (methodS.
Contains(
"Cuts") )
continue;
55 cout <<
"--- Found variable: \"" << methodS <<
"\"" << endl;
60 countCanvas*50+200, countCanvas*20,
width,
width*1.0 );
84 TString expr =
Form(
"((MVA_%s-(%f))/(%f-(%f)))", methodS.
Data(), mvaMin, mvaMax, mvaMin );
85 cout <<
"Expression = " << expr << endl;
87 Form(
"%s*(type==1)", expr.
Data() ) );
89 Form(
"%s*(type==0)", expr.
Data() ) );
95 "type==1",
"", 500000 );
97 "type==0",
"", 500000, 10000 );
104 for (
Int_t i=1; i<=nbin; i++) {
105 for (
Int_t j=1; j<=nbin; j++) {
108 z = (z - zminS)/(zmaxS - zminS);
116 z = (z - zminB)/(zmaxB - zminB);
129 for (
Int_t i=1; i<=nbin; i++) {
130 for (
Int_t j=1; j<=nbin; j++) {
133 z = 1*(z - zminS)/(zmaxS - zminS) - 0;
138 z = 1*(z - zminB)/(zmaxB - zminB) - 0;
150 frame->
SetTitle(
Form(
"Signal and background distributions weighted by %s output",
165 const Int_t nlevels = 3;
191 const Int_t nlevelsR = 1;
212 frameS->
Draw(
"contsame" );
213 refS->
Draw(
"cont3same" );
214 refB->
Draw(
"cont3same" );
include TDocParser_001 C image html pict1_TDocParser_001 png width
char * Form(const char *fmt,...)
virtual void SetTitleOffset(Float_t offset=1)
Set distance between the axis and the axis title Offset is a correction factor with respect to the "s...
virtual void SetFillColor(Color_t fcolor)
Set the fill area color.
virtual void SetLineWidth(Width_t lwidth)
Set the line width.
virtual void SetLineColor(Color_t lcolor)
Set the line color.
virtual void SetMarkerColor(Color_t mcolor=1)
Set the marker color.
virtual void SetMarkerSize(Size_t msize=1)
Set the marker size.
A TTree is a list of TBranches.
A ROOT file is a suite of consecutive data records (TKey instances) with a well defined format.
virtual void SetTitle(const char *title)
See GetStatOverflows for more information.
virtual void SetTitleSize(Float_t size=0.02, Option_t *axis="X")
Set the axis' title size.
TAxis * GetXaxis()
Get the behaviour adopted by the object about the statoverflows. See EStatOverflows for more informat...
virtual Double_t GetMaximum(Double_t maxval=FLT_MAX) const
Return maximum value smaller than maxval of bins in the range, unless the value has been overridden b...
virtual void SetMaximum(Double_t maximum=-1111)
virtual void SetContour(Int_t nlevels, const Double_t *levels=0)
Set the number and values of contour levels.
virtual void SetMinimum(Double_t minimum=-1111)
virtual void Draw(Option_t *option="")
Draw this histogram with options.
virtual Double_t GetMinimum(Double_t minval=-FLT_MAX) const
Return minimum value larger than minval of bins in the range, unless the value has been overridden by...
virtual void SetLabelSize(Float_t size=0.02, Option_t *axis="X")
Set size of axis' labels.
2-D histogram with a float per channel (see TH1 documentation)}
virtual Double_t GetBinContent(Int_t bin) const
Return content of bin number bin.
virtual void SetBinContent(Int_t bin, Double_t content)
Set bin content.
virtual void SetTitle(const char *title="")
Set the title of the TNamed.
Int_t GetEntries() const
Return the number of objects in array (i.e.
Bool_t EndsWith(const char *pat, ECaseCompare cmp=kExact) const
Return true if string ends with the specified string.
const char * Data() const
Bool_t BeginsWith(const char *s, ECaseCompare cmp=kExact) const
TString & Remove(Ssiz_t pos)
Bool_t Contains(const char *pat, ECaseCompare cmp=kExact) const
TStyle objects may be created to define special styles.
void SetTitleW(Float_t w=0)
void SetTitleH(Float_t h=0)
A TTree represents a columnar dataset.
void Initialize(Bool_t useTMVAStyle=kTRUE)
TFile * OpenFile(const TString &fin)
void imgconv(TCanvas *c, const TString &fname)
void mvaweights(TString fin="TMVA.root", Bool_t useTMVAStyle=kTRUE)