41 TTree *datatree =
new TTree(
"datatree",
"datatree");
43 dataFile,
"Mes/D:dE/D:F/D:MesSignal/D:MesBackground/D:dESignal/D:dEBackground/D:FSignal/D:FBackground/D",
' ');
54 "dEBackground:FBackground");
82 TCanvas *myc =
new TCanvas(
"myc",
"sPlots of Mes and F signal and background", 800, 600);
89 pt->AddText(
"sPlots of Mes and F signal and background,");
90 pt->AddText(
"obtained by the tutorial TestSPlot.C on BABAR MC "
91 "data (sPlot_toyMC.fit)");
92 TText *t3 =
pt->AddText(
"M. Pivk and F. R. Le Diberder, Nucl.Inst.Meth.A, physics/0402083");
97 TPad *pad1 =
new TPad(
"pad1",
"Mes signal", 0.02, 0.43, 0.48, 0.83, 33);
98 TPad *pad2 =
new TPad(
"pad2",
"Mes background", 0.5, 0.43, 0.98, 0.83, 33);
99 TPad *pad3 =
new TPad(
"pad3",
"F signal", 0.02, 0.02, 0.48, 0.41, 33);
100 TPad *pad4 =
new TPad(
"pad4",
"F background", 0.5, 0.02, 0.98, 0.41, 33);
111 sweight00->
Draw(
"e");
123 sweight10->
SetTitle(
"Mes background");
125 sweight10->
Draw(
"e");
139 sweight02->
Draw(
"e");
151 sweight12->
SetTitle(
"F background");
153 sweight12->
Draw(
"e");
int Int_t
Signed integer 4 bytes (int).
char * Form(const char *fmt,...)
Formats a string in a circular formatting buffer.
virtual void SetLabelSize(Float_t size=0.04)
Set size of axis labels.
virtual void SetLabelOffset(Float_t offset=0.005)
Set distance between the axis and the labels.
virtual void SetFillColor(Color_t fcolor)
Set the fill area color.
virtual void SetLineColor(Color_t lcolor)
Set the line color.
virtual void SetMarkerColor(Color_t mcolor=1)
Set the marker color.
virtual void SetMarkerStyle(Style_t mstyle=1)
Set the marker style.
virtual void SetMarkerSize(Size_t msize=1)
Set the marker size.
virtual void SetTextColor(Color_t tcolor=1)
Set the text color.
virtual void SetTextFont(Font_t tfont=62)
Set the text font.
TVirtualPad * cd(Int_t subpadnumber=0) override
Set current canvas & pad.
1-D histogram with a double per channel (see TH1 documentation)
void SetTitle(const char *title) override
Change/set the title.
void Draw(Option_t *option="") override
Draw this histogram with options.
virtual void SetStats(Bool_t stats=kTRUE)
Set statistics option on/off.
The most important graphics class in the ROOT system.
void SetGrid(Int_t valuex=1, Int_t valuey=1) override
TVirtualPad * cd(Int_t subpadnumber=0) override
Set Current pad.
void Draw(Option_t *option="") override
Draw Pad in Current pad (re-parent pad if necessary).
<div class="legacybox"><h2>Legacy Code</h2> TSPlot is a legacy interface: there will be no bug fixes ...
void FillSWeightsHists(Int_t nbins=50)
The order of histograms in the array:
TH1D * GetSWeightsHist(Int_t ixvar, Int_t ispecies, Int_t iyexcl=-1)
The Fill...Hist() methods fill the histograms with the real limits on the variables This method allow...
void MakeSPlot(Option_t *option="v")
Calculates the sWeights.
void SetTreeSelection(const char *varexp="", const char *selection="", Long64_t firstentry=0)
Specifies the variables from the tree to be used for splot.
void SetInitialNumbersOfSpecies(Int_t *numbers)
Set the initial number of events of each species - used as initial estimates in minuit.
const char * Data() const
TString & ReplaceAll(const TString &s1, const TString &s2)
A TTree represents a columnar dataset.
virtual Long64_t ReadFile(const char *filename, const char *branchDescriptor="", char delimiter=' ')
Create or simply read branches from filename.