13 #include "TObjArray.h" 48 void SPlots(Double_t *covmat, Int_t i_excl);
52 TSPlot(Int_t nx, Int_t ny, Int_t ne, Int_t ns, TTree* tree);
81 void RefillHist(Int_t type, Int_t var, Int_t nbins, Double_t min, Double_t max, Int_t nspecies=-1);
88 void SetTreeSelection(
const char* varexp=
"",
const char *selection=
"", Long64_t firstentry=0);
void SPlots(Double_t *covmat, Int_t i_excl)
Computes the sWeights from the covariance matrix.
TH1D * GetYpdfHist(Int_t iyvar, Int_t ispecies)
Returns the histogram of the pdf of variable #iyvar for species #ispecies, binning nbins If histogram...
void SetInitialNumbersOfSpecies(Int_t *numbers)
Set the initial number of events of each species - used as initial estimates in minuit.
void MakeSPlot(Option_t *option="v")
Calculates the sWeights The option controls the print level "Q" - no print out "V" - prints the estim...
void SetNEvents(Int_t ne)
void FillYvarHists(Int_t nbins=100)
Fill the histograms of y variables.
virtual ~TSPlot()
destructor
void FillYpdfHists(Int_t nbins=100)
Fills the histograms of pdf-s of y variables with binning nbins.
TObjArray * GetYpdfHists()
Returns the array of histograms of pdf's of y variables with binning nbins If histograms have not alr...
void RefillHist(Int_t type, Int_t var, Int_t nbins, Double_t min, Double_t max, Int_t nspecies=-1)
The Fill...Hist() methods fill the histograms with the real limits on the variables This method allow...
void GetSWeights(TMatrixD &weights)
Returns the matrix of sweights.
void SetTree(TTree *tree)
Set the input Tree.
TObjArray * GetYvarHists()
Returns the array of histograms of y variables.
TH1D * GetYvarHist(Int_t iyvar)
Returns the histogram of variable iyvar.If histograms have not already been filled, they are filled with default binning 100.
TSPlot()
default constructor (used by I/O only)
void Browse(TBrowser *b)
To browse the histograms.
Double_t * fNumbersOfEvents
void SetNSpecies(Int_t ns)
void SetTreeSelection(const char *varexp="", const char *selection="", Long64_t firstentry=0)
Specifies the variables from the tree to be used for splot.
TString * GetTreeExpression()
void FillXvarHists(Int_t nbins=100)
Fills the histograms of x variables (not weighted) with nbins.
you should not use this method at all Int_t Int_t Double_t Double_t Double_t Int_t Double_t Double_t Double_t Double_t b
TString * GetTreeSelection()
TObjArray * GetXvarHists()
Returns the array of histograms of x variables (not weighted) If histograms have not already been fil...
TH1D * GetXvarHist(Int_t ixvar)
Returns the histogram of variable #ixvar If histograms have not already been filled, they are filled with default binning 100.
void FillSWeightsHists(Int_t nbins=50)
The order of histograms in the array: x0_species0, x0_species1,..., x1_species0, x1_species1,..., y0_species0, y0_species1,...
TObjArray * GetSWeightsHists()
Returns an array of all histograms of variables, weighted with sWeights If histograms have not been a...
TH1D * GetSWeightsHist(Int_t ixvar, Int_t ispecies, Int_t iyexcl=-1)
Returns the histogram of a variable, weithed with sWeights If histograms have not been already filled...