AliRoot Core  ee782a0 (ee782a0)
TStatToolkit.h File Reference
#include "TMath.h"
#include "Riostream.h"
#include "TH1F.h"
#include "TH2F.h"
#include "TH3.h"
#include "THnBase.h"
#include "TF1.h"
#include "TTree.h"
#include "TChain.h"
#include "TObjString.h"
#include "TLinearFitter.h"
#include "TGraph2D.h"
#include "TGraph.h"
#include "TGraphErrors.h"
#include "TMultiGraph.h"
#include "TCanvas.h"
#include "TLatex.h"
#include "TCut.h"
#include "THashList.h"
#include "TFitResultPtr.h"
#include "TFitResult.h"
#include "TPaletteAxis.h"
#include "TSystem.h"
#include "TRandom.h"
#include "TStopwatch.h"
#include "TTreeStream.h"
#include "TObject.h"
#include "TVectorD.h"
#include "TVectorF.h"
#include "TMatrixD.h"
#include "TMatrixF.h"
#include <float.h>
Include dependency graph for TStatToolkit.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 TStatToolkit
 Summary of statistics functions.
 

Enumerations

enum  TStatToolkit::TStatType {
  TStatToolkit::kEntries, TStatToolkit::kSum, TStatToolkit::kMean, TStatToolkit::kRMS,
  TStatToolkit::kMedian, TStatToolkit::kLTM, TStatToolkit::kLTMRMS
}
 
enum  TStatToolkit::ENormType {
  TStatToolkit::kL1, TStatToolkit::kL2, TStatToolkit::kLp, TStatToolkit::kMax,
  TStatToolkit::kHamming, TStatToolkit::kNNormType
}
 

Functions

void TStatToolkit::EvaluateUni (Int_t nvectors, Double_t *data, Double_t &mean, Double_t &sigma, Int_t hh)
 
void TStatToolkit::EvaluateUniExternal (Int_t nvectors, Double_t *data, Double_t &mean, Double_t &sigma, Int_t hh, Float_t externalfactor=1)
 
Int_t TStatToolkit::Freq (Int_t n, const Int_t *inlist, Int_t *outlist, Bool_t down)
 
template<typename T >
void TStatToolkit::TruncatedMean (const TH1 *his, TVectorT< T > *param, Float_t down=0, Float_t up=1.0, Bool_t verbose=kFALSE)
 
void TStatToolkit::MedianFilter (TH1 *his1D, Int_t nmedian)
 
template<typename T >
Bool_t TStatToolkit::LTMHisto (TH1 *his, TVectorT< T > &param, Float_t fraction=1)
 
template<typename T >
Int_t * TStatToolkit::LTMUnbinned (int np, const T *arr, TVectorT< T > &params, Float_t keep=1.0)
 
template<typename T >
void TStatToolkit::Reorder (int np, T *arr, const int *idx)
 
template<typename T >
void TStatToolkit::LTM (TH1 *his, TVectorT< T > *param=0, Float_t fraction=1, Bool_t verbose=kFALSE)
 
template<typename T >
Double_t TStatToolkit::FitGaus (TH1 *his, TVectorT< T > *param=0, TMatrixT< T > *matrix=0, Float_t xmin=0, Float_t xmax=0, Bool_t verbose=kFALSE)
 
template<typename T >
Double_t TStatToolkit::FitGaus (Float_t *arr, Int_t nBins, Float_t xMin, Float_t xMax, TVectorT< T > *param=0, TMatrixT< T > *matrix=0, Bool_t verbose=kFALSE)
 
Float_t TStatToolkit::GetCOG (const Short_t *arr, Int_t nBins, Float_t xMin, Float_t xMax, Float_t *rms=0, Float_t *sum=0)
 
TGraph2D * TStatToolkit::MakeStat2D (TH3 *his, Int_t delta0, Int_t delta1, Int_t type)
 
TGraphErrors * TStatToolkit::MakeStat1D (TH2 *his, Int_t deltaBin, Double_t fraction, Int_t returnType, Int_t markerStyle, Int_t markerColor)
 
Double_t TStatToolkit::RobustBinMedian (TH1 *hist, Double_t fractionCut=1.)
 
THashList * TStatToolkit::AddMetadata (TTree *, const char *vartagName, const char *varTagValue)
 
TNamed * TStatToolkit::GetMetadata (TTree *tree, const char *vartagName, TString *prefix=0, Bool_t fullMatch=kFALSE)
 
TGraph * TStatToolkit::MakeGraphSparse (TTree *tree, const char *expr="Entry", const char *cut="1", Int_t mstyle=25, Int_t mcolor=1, Float_t msize=-1, Float_t offset=0.0)
 
TGraphErrors * TStatToolkit::MakeGraphErrors (TTree *tree, const char *expr="Entry", const char *cut="1", Int_t mstyle=25, Int_t mcolor=1, Float_t msize=-1, Float_t offset=0.0, Int_t entries=10000000, Int_t firstEntry=0)
 
TMultiGraph * TStatToolkit::MakeMultGraph (TTree *tree, const char *groupName, const char *expr, const char *cut, const char *markers, const char *colors, Bool_t drawSparse, Float_t msize, Float_t sigmaRange, TLegend *legend, Bool_t comp=kTRUE)
 
void TStatToolkit::RebinSparseGraph (TGraph *graph0, TGraph *graph1, Option_t *option="")
 
void TStatToolkit::RebinSparseMultiGraph (TMultiGraph *multiGraph, TGraph *graphRef)
 
void TStatToolkit::MakeMultiGraphSparse (TMultiGraph *multiGraph)
 
TString * TStatToolkit::FitPlane (TTree *tree, const char *drawCommand, const char *formula, const char *cuts, Double_t &chi2, Int_t &npoints, TVectorD &fitParam, TMatrixD &covMatrix, Float_t frac=-1, Int_t start=0, Int_t stop=10000000, Bool_t fix0=kFALSE)
 
TString * TStatToolkit::FitPlaneFixed (TTree *tree, const char *drawCommand, const char *formula, const char *cuts, Double_t &chi2, Int_t &npoints, TVectorD &fitParam, TMatrixD &covMatrix, Float_t frac=-1, Int_t start=0, Int_t stop=10000000)
 
TString * TStatToolkit::FitPlaneConstrain (TTree *tree, const char *drawCommand, const char *formula, const char *cuts, Double_t &chi2, Int_t &npoints, TVectorD &fitParam, TMatrixD &covMatrix, Float_t frac=-1, Int_t start=0, Int_t stop=10000000, Double_t constrain=-1)
 
Int_t TStatToolkit::GetFitIndex (const TString fString, const TString subString)
 
TString TStatToolkit::FilterFit (const TString &input, const TString filter, TVectorD &vec, TMatrixD &covar)
 
void TStatToolkit::Update1D (Double_t delta, Double_t sigma, Int_t s1, TMatrixD &param, TMatrixD &covar)
 
void TStatToolkit::Constrain1D (const TString &input, const TString filter, TVectorD &param, TMatrixD &covar, Double_t mean, Double_t sigma)
 
TString TStatToolkit::MakeFitString (const TString &input, const TVectorD &param, const TMatrixD &covar, Bool_t verbose=kFALSE)
 
Int_t TStatToolkit::MakeStatAlias (TTree *tree, const char *expr, const char *cut, const char *alias)
 
void TStatToolkit::MakeAnchorAlias (TTree *tree, TString &sTrendVars, Int_t doCheck, Int_t verbose)
 
void TStatToolkit::MakeCombinedAlias (TTree *tree, TString &sCombinedStatus, Bool_t doCheck, Int_t verbose)
 
Int_t TStatToolkit::SetStatusAlias (TTree *tree, const char *expr, const char *cut, const char *alias)
 
TMultiGraph * TStatToolkit::MakeStatusMultGr (TTree *tree, const char *expr, const char *cut, const char *alias, Int_t igr=0)
 
void TStatToolkit::AddStatusPad (TCanvas *c1, Float_t padratio, Float_t bottommargin)
 
void TStatToolkit::DrawMultiGraph (TMultiGraph *graph, Option_t *option)
 
void TStatToolkit::DrawStatusGraphs (TObjArray *oaMultGr)
 
TTree * TStatToolkit::WriteStatusToTree (TObject *oStatusGr)
 
TMultiGraph * TStatToolkit::MakeStatusLines (TTree *tree, const char *expr, const char *cut, const char *alias)
 
void TStatToolkit::MakeSummaryTree (TTree *treeIn, TTreeSRedirector *pcstream, TObjString &sumID, TCut &selection)
 
Double_t TStatToolkit::GetDefaultStat (TTree *tree, const char *var, const char *selection, TStatType statType)
 
void TStatToolkit::MakeDistortionMap (Int_t iter, THnBase *histo, TTreeSRedirector *pcstream, TMatrixD &projectionInfo, Int_t dumpHisto=100, Int_t verbose=kFALSE)
 
void TStatToolkit::MakeDistortionMapFast (THnBase *histo, TTreeSRedirector *pcstream, TMatrixD &projectionInfo, Int_t verbose=0, Double_t fractionCut=0.1, const char *estimators=0)
 
void TStatToolkit::CombineArray (TTree *tree, TVectorD &values)
 
Double_t TStatToolkit::GetDistance (const TVectorD &values, const ENormType normType, const Bool_t normaliseToEntries=kFALSE, const Double_t pvalue=1.)
 
Double_t TStatToolkit::GetDistance (const Int_t size, const Double_t *values, const ENormType normType, const Bool_t normaliseToEntries=kFALSE, const Double_t pvalue=1.)
 
Double_t TStatToolkit::GetDistance (TTree *tree, const char *var, const char *selection, const ENormType normType, const Bool_t normaliseToEntries=kFALSE, const Double_t pvalue=1.)
 
TH1 * TStatToolkit::DrawHistogram (TTree *tree, const char *drawCommand, const char *cuts="1", const char *hname="histo", const char *htitle="histo", Int_t nsigma=4, Float_t fraction=0.75, TObjArray *description=0)
 
Int_t TStatToolkit::AdaptHistoMetadata (TTree *tree, TH1 *histogram, TString option)
 
void TStatToolkit::TestGausFit (Int_t nhistos=5000)
 
void TStatToolkit::CheckTreeAliases (TTree *tree, Int_t ncheck)
 
template<typename T >
void TStatToolkit::GetMinMax (const T *arr, Long64_t n, double &minVal, double &maxVal)
 
template<typename T >
void TStatToolkit::GetMinMaxMean (const T *arr, Long64_t n, double &minVal, double &maxVal, double &meanVal)