TSPlot Class Reference

#include <TSPlot.h>

Inheritance diagram for TSPlot:

TObject TObject List of all members.

Public Member Functions

 TSPlot ()
 TSPlot (Int_t nx, Int_t ny, Int_t ne, Int_t ns, TTree *tree)
virtual ~TSPlot ()
void Browse (TBrowser *b)
Bool_t IsFolder () const
void FillXvarHists (Int_t nbins=100)
void FillYvarHists (Int_t nbins=100)
void FillYpdfHists (Int_t nbins=100)
void FillSWeightsHists (Int_t nbins=50)
Int_t GetNevents ()
Int_t GetNspecies ()
TObjArrayGetSWeightsHists ()
TH1DGetSWeightsHist (Int_t ixvar, Int_t ispecies, Int_t iyexcl=-1)
TObjArrayGetXvarHists ()
TH1DGetXvarHist (Int_t ixvar)
TObjArrayGetYvarHists ()
TH1DGetYvarHist (Int_t iyvar)
TObjArrayGetYpdfHists ()
TH1DGetYpdfHist (Int_t iyvar, Int_t ispecies)
void GetSWeights (TMatrixD &weights)
void GetSWeights (Double_t *weights)
TStringGetTreeName ()
TStringGetTreeSelection ()
TStringGetTreeExpression ()
void MakeSPlot (Option_t *option="v")
void RefillHist (Int_t type, Int_t var, Int_t nbins, Double_t min, Double_t max, Int_t nspecies=-1)
void SetNX (Int_t nx)
void SetNY (Int_t ny)
void SetNSpecies (Int_t ns)
void SetNEvents (Int_t ne)
void SetInitialNumbersOfSpecies (Int_t *numbers)
void SetTree (TTree *tree)
void SetTreeSelection (const char *varexp="", const char *selection="", Long64_t firstentry=0)
 TSPlot ()
 TSPlot (Int_t nx, Int_t ny, Int_t ne, Int_t ns, TTree *tree)
virtual ~TSPlot ()
void Browse (TBrowser *b)
Bool_t IsFolder () const
void FillXvarHists (Int_t nbins=100)
void FillYvarHists (Int_t nbins=100)
void FillYpdfHists (Int_t nbins=100)
void FillSWeightsHists (Int_t nbins=50)
Int_t GetNevents ()
Int_t GetNspecies ()
TObjArrayGetSWeightsHists ()
TH1DGetSWeightsHist (Int_t ixvar, Int_t ispecies, Int_t iyexcl=-1)
TObjArrayGetXvarHists ()
TH1DGetXvarHist (Int_t ixvar)
TObjArrayGetYvarHists ()
TH1DGetYvarHist (Int_t iyvar)
TObjArrayGetYpdfHists ()
TH1DGetYpdfHist (Int_t iyvar, Int_t ispecies)
void GetSWeights (TMatrixD &weights)
void GetSWeights (Double_t *weights)
TStringGetTreeName ()
TStringGetTreeSelection ()
TStringGetTreeExpression ()
void MakeSPlot (Option_t *option="v")
void RefillHist (Int_t type, Int_t var, Int_t nbins, Double_t min, Double_t max, Int_t nspecies=-1)
void SetNX (Int_t nx)
void SetNY (Int_t ny)
void SetNSpecies (Int_t ns)
void SetNEvents (Int_t ne)
void SetInitialNumbersOfSpecies (Int_t *numbers)
void SetTree (TTree *tree)
void SetTreeSelection (const char *varexp="", const char *selection="", Long64_t firstentry=0)

Protected Member Functions

void SPlots (Double_t *covmat, Int_t i_excl)
void SPlots (Double_t *covmat, Int_t i_excl)

Protected Attributes

TMatrixD fXvar
TMatrixD fYvar
TMatrixD fYpdf
TMatrixD fPdfTot
TMatrixD fMinmax
TMatrixD fSWeights
TObjArray fXvarHists
TObjArray fYvarHists
TObjArray fYpdfHists
TObjArray fSWeightsHists
TTreefTree
TStringfTreename
TStringfVarexp
TStringfSelection
Int_t fNx
Int_t fNy
Int_t fNSpecies
Int_t fNevents
Double_tfNumbersOfEvents
TTreefTree
TStringfTreename
TStringfVarexp
TStringfSelection
Double_tfNumbersOfEvents

Detailed Description

Definition at line 21 of file TSPlot.h.


Constructor & Destructor Documentation

TSPlot::TSPlot (  ) 

Referenced by G__G__SPlot_143_0_3().

TSPlot::TSPlot ( Int_t  nx,
Int_t  ny,
Int_t  ne,
Int_t  ns,
TTree tree 
)

Definition at line 446 of file TSPlot.cxx.

References fNevents, fNSpecies, fNumbersOfEvents, fNx, fNy, fSWeights, fTree, fXvar, fYpdf, fYvar, and TMatrixT< Element >::ResizeTo().

TSPlot::~TSPlot (  )  [virtual]

Definition at line 473 of file TSPlot.cxx.

References TObjArray::Delete(), fNumbersOfEvents, fXvarHists, fYpdfHists, fYvarHists, and TObjArray::IsEmpty().

TSPlot::TSPlot (  ) 

TSPlot::TSPlot ( Int_t  nx,
Int_t  ny,
Int_t  ne,
Int_t  ns,
TTree tree 
)

virtual TSPlot::~TSPlot (  )  [virtual]


Member Function Documentation

void TSPlot::SPlots ( Double_t covmat,
Int_t  i_excl 
) [protected]

Definition at line 618 of file TSPlot.cxx.

References fNevents, fNSpecies, fNumbersOfEvents, fPdfTot, fSWeights, i, and k.

Referenced by MakeSPlot().

void TSPlot::Browse ( TBrowser b  )  [virtual]

Reimplemented from TObject.

Definition at line 488 of file TSPlot.cxx.

References b, fSWeights, fSWeightsHists, fXvarHists, fYpdfHists, fYvarHists, h, and TObjArray::IsEmpty().

Bool_t TSPlot::IsFolder (  )  const [inline, virtual]

Reimplemented from TObject.

Definition at line 56 of file TSPlot.h.

References kTRUE.

void TSPlot::FillXvarHists ( Int_t  nbins = 100  ) 

Definition at line 661 of file TSPlot.cxx.

References TObjArray::Add(), TObjArray::Delete(), TObjArray::First(), fMinmax, fNevents, fNx, fXvar, fXvarHists, h, i, TObjArray::IsEmpty(), j, name, and snprintf.

Referenced by G__G__SPlot_143_0_6(), GetXvarHist(), and GetXvarHists().

void TSPlot::FillYvarHists ( Int_t  nbins = 100  ) 

Definition at line 718 of file TSPlot.cxx.

References TObjArray::Add(), TObjArray::Delete(), TObjArray::First(), fMinmax, fNevents, fNx, fNy, fYvar, fYvarHists, h, i, TObjArray::IsEmpty(), j, name, and snprintf.

Referenced by G__G__SPlot_143_0_7(), GetYvarHist(), and GetYvarHists().

void TSPlot::FillYpdfHists ( Int_t  nbins = 100  ) 

Definition at line 771 of file TSPlot.cxx.

References TObjArray::Add(), TObjArray::Delete(), TObjArray::First(), fMinmax, fNevents, fNSpecies, fNx, fNy, fYpdf, fYpdfHists, h, i, TObjArray::IsEmpty(), j, name, and snprintf.

Referenced by G__G__SPlot_143_0_8(), GetYpdfHist(), and GetYpdfHists().

void TSPlot::FillSWeightsHists ( Int_t  nbins = 50  ) 

Definition at line 826 of file TSPlot.cxx.

References TObjArray::AddLast(), TObjArray::Delete(), TObject::Error(), TObjArray::First(), fMinmax, fNevents, fNSpecies, fNx, fNy, fSWeights, fSWeightsHists, fXvar, fYvar, TMatrixTBase< Element >::GetNoElements(), h, TObjArray::IsEmpty(), name, and snprintf.

Referenced by G__G__SPlot_143_0_9(), GetSWeightsHist(), GetSWeightsHists(), and TestSPlot().

Int_t TSPlot::GetNevents (  )  [inline]

Definition at line 63 of file TSPlot.h.

References fNevents.

Referenced by G__G__SPlot_143_0_10().

Int_t TSPlot::GetNspecies (  )  [inline]

Definition at line 64 of file TSPlot.h.

References fNSpecies.

Referenced by G__G__SPlot_143_0_11().

TObjArray * TSPlot::GetSWeightsHists (  ) 

Definition at line 873 of file TSPlot.cxx.

References FillSWeightsHists(), fSWeightsHists, TObjArray::IsEmpty(), and nbins.

Referenced by G__G__SPlot_143_0_12().

TH1D * TSPlot::GetSWeightsHist ( Int_t  ixvar,
Int_t  ispecies,
Int_t  iyexcl = -1 
)

Definition at line 955 of file TSPlot.cxx.

References FillSWeightsHists(), fNSpecies, fNx, fSWeightsHists, TObjArray::IsEmpty(), nbins, and TObjArray::UncheckedAt().

Referenced by G__G__SPlot_143_0_13(), and TestSPlot().

TObjArray * TSPlot::GetXvarHists (  ) 

Definition at line 687 of file TSPlot.cxx.

References FillXvarHists(), TObjArray::First(), fXvarHists, TObjArray::IsEmpty(), and nbins.

Referenced by G__G__SPlot_143_0_14().

TH1D * TSPlot::GetXvarHist ( Int_t  ixvar  ) 

Definition at line 702 of file TSPlot.cxx.

References FillXvarHists(), TObjArray::First(), fXvarHists, TObjArray::IsEmpty(), nbins, and TObjArray::UncheckedAt().

Referenced by G__G__SPlot_143_0_15().

TObjArray * TSPlot::GetYvarHists (  ) 

Definition at line 743 of file TSPlot.cxx.

References FillYvarHists(), TObjArray::First(), fYvarHists, TObjArray::IsEmpty(), and nbins.

Referenced by G__G__SPlot_143_0_16().

TH1D * TSPlot::GetYvarHist ( Int_t  iyvar  ) 

Definition at line 757 of file TSPlot.cxx.

References FillYvarHists(), TObjArray::First(), fYvarHists, TObjArray::IsEmpty(), nbins, and TObjArray::UncheckedAt().

Referenced by G__G__SPlot_143_0_17().

TObjArray * TSPlot::GetYpdfHists (  ) 

Definition at line 798 of file TSPlot.cxx.

References FillYpdfHists(), fYpdfHists, TObjArray::IsEmpty(), and nbins.

Referenced by G__G__SPlot_143_0_18().

TH1D * TSPlot::GetYpdfHist ( Int_t  iyvar,
Int_t  ispecies 
)

Definition at line 812 of file TSPlot.cxx.

References FillYpdfHists(), fNy, fYpdfHists, TObjArray::IsEmpty(), nbins, and TObjArray::UncheckedAt().

Referenced by G__G__SPlot_143_0_19().

void TSPlot::GetSWeights ( TMatrixD weights  ) 

Definition at line 639 of file TSPlot.cxx.

References fNevents, fNSpecies, fNy, and fSWeights.

Referenced by G__G__SPlot_143_0_20(), and G__G__SPlot_143_0_21().

void TSPlot::GetSWeights ( Double_t weights  ) 

Definition at line 649 of file TSPlot.cxx.

References fNevents, fNSpecies, fSWeights, i, and j.

TString* TSPlot::GetTreeName (  )  [inline]

Definition at line 76 of file TSPlot.h.

References fTreename.

Referenced by G__G__SPlot_143_0_22().

TString* TSPlot::GetTreeSelection (  )  [inline]

Definition at line 77 of file TSPlot.h.

References fSelection.

Referenced by G__G__SPlot_143_0_23().

TString* TSPlot::GetTreeExpression (  )  [inline]

Definition at line 78 of file TSPlot.h.

References fVarexp.

Referenced by G__G__SPlot_143_0_24().

void TSPlot::MakeSPlot ( Option_t option = "v"  ) 

Definition at line 534 of file TSPlot.cxx.

References TVirtualFitter::Clear(), TString::Contains(), TObject::Error(), TVirtualFitter::ExecuteCommand(), TVirtualFitter::Fitter(), fNevents, fNSpecies, fNumbersOfEvents, fNy, fPdfTot, fSWeights, fYpdf, TVirtualFitter::GetCovarianceMatrix(), TVirtualFitter::GetFitter(), TObject::GetName(), TVirtualFitter::GetParameter(), i, j, TString::ReplaceAll(), TMatrixT< Element >::ResizeTo(), s, TVirtualFitter::SetFCN(), TVirtualFitter::SetObjectFit(), TVirtualFitter::SetParameter(), SPlots(), TString::ToUpper(), and Yields().

Referenced by G__G__SPlot_143_0_25(), and TestSPlot().

void TSPlot::RefillHist ( Int_t  type,
Int_t  var,
Int_t  nbins,
Double_t  min,
Double_t  max,
Int_t  nspecies = -1 
)

Definition at line 888 of file TSPlot.cxx.

References TObjArray::AddAt(), TObject::Error(), fNevents, fNSpecies, fNx, fNy, fSWeights, fSWeightsHists, fXvar, fXvarHists, fYpdf, fYpdfHists, fYvar, fYvarHists, h, j, name, TObjArray::RemoveAt(), and snprintf.

Referenced by G__G__SPlot_143_0_26().

void TSPlot::SetNX ( Int_t  nx  )  [inline]

Definition at line 82 of file TSPlot.h.

References fNx.

Referenced by G__G__SPlot_143_0_27().

void TSPlot::SetNY ( Int_t  ny  )  [inline]

Definition at line 83 of file TSPlot.h.

References fNy.

Referenced by G__G__SPlot_143_0_28().

void TSPlot::SetNSpecies ( Int_t  ns  )  [inline]

Definition at line 84 of file TSPlot.h.

References fNSpecies.

Referenced by G__G__SPlot_143_0_29().

void TSPlot::SetNEvents ( Int_t  ne  )  [inline]

Definition at line 85 of file TSPlot.h.

References fNevents.

Referenced by G__G__SPlot_143_0_30().

void TSPlot::SetInitialNumbersOfSpecies ( Int_t numbers  ) 

Definition at line 522 of file TSPlot.cxx.

References fNSpecies, fNumbersOfEvents, and i.

Referenced by G__G__SPlot_143_0_31(), and TestSPlot().

void TSPlot::SetTree ( TTree tree  ) 

Definition at line 978 of file TSPlot.cxx.

References fTree.

Referenced by G__G__SPlot_143_0_32().

void TSPlot::SetTreeSelection ( const char *  varexp = "",
const char *  selection = "",
Long64_t  firstentry = 0 
)

Definition at line 985 of file TSPlot.cxx.

References TList::Add(), TTreeFormulaManager::Add(), TObjArray::At(), TList::At(), entry, fMinmax, fNevents, fNSpecies, fNx, fNy, fSelection, fTree, fTreename, fVarexp, fXvar, fYpdf, fYvar, TTree::GetEntryNumber(), TTree::GetListOfLeaves(), TTreeFormulaManager::GetMultiplicity(), TNamed::GetName(), TObject::GetName(), TTreeFormulaManager::GetNdata(), TTree::GetPlayer(), TTree::GetTreeNumber(), i, j, kFALSE, kTRUE, TSeqCollection::LastIndex(), TTree::LoadTree(), Long64_t, ndata, TMatrixT< Element >::ResizeTo(), select(), TSelectorDraw::SplitNames(), TTreeFormulaManager::Sync(), and TTreeFormulaManager::UpdateFormulaLeaves().

Referenced by G__G__SPlot_143_0_33(), and TestSPlot().

void TSPlot::SPlots ( Double_t covmat,
Int_t  i_excl 
) [protected]

void TSPlot::Browse ( TBrowser b  )  [virtual]

Reimplemented from TObject.

Bool_t TSPlot::IsFolder (  )  const [inline, virtual]

Reimplemented from TObject.

Definition at line 56 of file TSPlot.h.

References kTRUE.

void TSPlot::FillXvarHists ( Int_t  nbins = 100  ) 

void TSPlot::FillYvarHists ( Int_t  nbins = 100  ) 

void TSPlot::FillYpdfHists ( Int_t  nbins = 100  ) 

void TSPlot::FillSWeightsHists ( Int_t  nbins = 50  ) 

Int_t TSPlot::GetNevents (  )  [inline]

Definition at line 63 of file TSPlot.h.

References fNevents.

Int_t TSPlot::GetNspecies (  )  [inline]

Definition at line 64 of file TSPlot.h.

References fNSpecies.

TObjArray* TSPlot::GetSWeightsHists (  ) 

TH1D* TSPlot::GetSWeightsHist ( Int_t  ixvar,
Int_t  ispecies,
Int_t  iyexcl = -1 
)

TObjArray* TSPlot::GetXvarHists (  ) 

TH1D* TSPlot::GetXvarHist ( Int_t  ixvar  ) 

TObjArray* TSPlot::GetYvarHists (  ) 

TH1D* TSPlot::GetYvarHist ( Int_t  iyvar  ) 

TObjArray* TSPlot::GetYpdfHists (  ) 

TH1D* TSPlot::GetYpdfHist ( Int_t  iyvar,
Int_t  ispecies 
)

void TSPlot::GetSWeights ( TMatrixD weights  ) 

void TSPlot::GetSWeights ( Double_t weights  ) 

TString* TSPlot::GetTreeName (  )  [inline]

Definition at line 76 of file TSPlot.h.

References fTreename.

TString* TSPlot::GetTreeSelection (  )  [inline]

Definition at line 77 of file TSPlot.h.

References fSelection.

TString* TSPlot::GetTreeExpression (  )  [inline]

Definition at line 78 of file TSPlot.h.

References fVarexp.

void TSPlot::MakeSPlot ( Option_t option = "v"  ) 

void TSPlot::RefillHist ( Int_t  type,
Int_t  var,
Int_t  nbins,
Double_t  min,
Double_t  max,
Int_t  nspecies = -1 
)

void TSPlot::SetNX ( Int_t  nx  )  [inline]

Definition at line 82 of file TSPlot.h.

References fNx.

void TSPlot::SetNY ( Int_t  ny  )  [inline]

Definition at line 83 of file TSPlot.h.

References fNy.

void TSPlot::SetNSpecies ( Int_t  ns  )  [inline]

Definition at line 84 of file TSPlot.h.

References fNSpecies.

void TSPlot::SetNEvents ( Int_t  ne  )  [inline]

Definition at line 85 of file TSPlot.h.

References fNevents.

void TSPlot::SetInitialNumbersOfSpecies ( Int_t numbers  ) 

void TSPlot::SetTree ( TTree tree  ) 

void TSPlot::SetTreeSelection ( const char *  varexp = "",
const char *  selection = "",
Long64_t  firstentry = 0 
)


Member Data Documentation

TMatrixD TSPlot::fXvar [protected]

Definition at line 23 of file TSPlot.h.

Referenced by FillSWeightsHists(), FillXvarHists(), RefillHist(), SetTreeSelection(), and TSPlot().

TMatrixD TSPlot::fYvar [protected]

Definition at line 24 of file TSPlot.h.

Referenced by FillSWeightsHists(), FillYvarHists(), RefillHist(), SetTreeSelection(), and TSPlot().

TMatrixD TSPlot::fYpdf [protected]

Definition at line 25 of file TSPlot.h.

Referenced by FillYpdfHists(), MakeSPlot(), RefillHist(), SetTreeSelection(), and TSPlot().

TMatrixD TSPlot::fPdfTot [protected]

Definition at line 26 of file TSPlot.h.

Referenced by MakeSPlot(), and SPlots().

TMatrixD TSPlot::fMinmax [protected]

Definition at line 27 of file TSPlot.h.

Referenced by FillSWeightsHists(), FillXvarHists(), FillYpdfHists(), FillYvarHists(), and SetTreeSelection().

TMatrixD TSPlot::fSWeights [protected]

Definition at line 28 of file TSPlot.h.

Referenced by Browse(), FillSWeightsHists(), GetSWeights(), MakeSPlot(), RefillHist(), SPlots(), and TSPlot().

TObjArray TSPlot::fXvarHists [protected]

Definition at line 30 of file TSPlot.h.

Referenced by Browse(), FillXvarHists(), GetXvarHist(), GetXvarHists(), RefillHist(), and ~TSPlot().

TObjArray TSPlot::fYvarHists [protected]

Definition at line 31 of file TSPlot.h.

Referenced by Browse(), FillYvarHists(), GetYvarHist(), GetYvarHists(), RefillHist(), and ~TSPlot().

TObjArray TSPlot::fYpdfHists [protected]

Definition at line 32 of file TSPlot.h.

Referenced by Browse(), FillYpdfHists(), GetYpdfHist(), GetYpdfHists(), RefillHist(), and ~TSPlot().

TObjArray TSPlot::fSWeightsHists [protected]

Definition at line 33 of file TSPlot.h.

Referenced by Browse(), FillSWeightsHists(), GetSWeightsHist(), GetSWeightsHists(), and RefillHist().

TTree* TSPlot::fTree [protected]

Definition at line 35 of file TSPlot.h.

Referenced by SetTree(), SetTreeSelection(), and TSPlot().

TString* TSPlot::fTreename [protected]

Definition at line 36 of file TSPlot.h.

Referenced by GetTreeName(), and SetTreeSelection().

TString* TSPlot::fVarexp [protected]

Definition at line 37 of file TSPlot.h.

Referenced by GetTreeExpression(), and SetTreeSelection().

TString* TSPlot::fSelection [protected]

Definition at line 38 of file TSPlot.h.

Referenced by GetTreeSelection(), and SetTreeSelection().

Int_t TSPlot::fNx [protected]

Definition at line 41 of file TSPlot.h.

Referenced by FillSWeightsHists(), FillXvarHists(), FillYpdfHists(), FillYvarHists(), GetSWeightsHist(), RefillHist(), SetNX(), SetTreeSelection(), and TSPlot().

Int_t TSPlot::fNy [protected]

Definition at line 42 of file TSPlot.h.

Referenced by FillSWeightsHists(), FillYpdfHists(), FillYvarHists(), GetSWeights(), GetYpdfHist(), MakeSPlot(), RefillHist(), SetNY(), SetTreeSelection(), and TSPlot().

Int_t TSPlot::fNSpecies [protected]

Definition at line 43 of file TSPlot.h.

Referenced by FillSWeightsHists(), FillYpdfHists(), GetNspecies(), GetSWeights(), GetSWeightsHist(), MakeSPlot(), RefillHist(), SetInitialNumbersOfSpecies(), SetNSpecies(), SetTreeSelection(), SPlots(), and TSPlot().

Int_t TSPlot::fNevents [protected]

Definition at line 44 of file TSPlot.h.

Referenced by FillSWeightsHists(), FillXvarHists(), FillYpdfHists(), FillYvarHists(), GetNevents(), GetSWeights(), MakeSPlot(), RefillHist(), SetNEvents(), SetTreeSelection(), SPlots(), and TSPlot().

Double_t* TSPlot::fNumbersOfEvents [protected]

Definition at line 46 of file TSPlot.h.

Referenced by MakeSPlot(), SetInitialNumbersOfSpecies(), SPlots(), TSPlot(), and ~TSPlot().

TTree* TSPlot::fTree [protected]

Definition at line 35 of file TSPlot.h.

TString* TSPlot::fTreename [protected]

Definition at line 36 of file TSPlot.h.

TString* TSPlot::fVarexp [protected]

Definition at line 37 of file TSPlot.h.

TString* TSPlot::fSelection [protected]

Definition at line 38 of file TSPlot.h.

Double_t* TSPlot::fNumbersOfEvents [protected]

Definition at line 46 of file TSPlot.h.


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 16:47:03 2011 for ROOT_528-00b_version by  doxygen 1.5.1