AliRoot Core  837871f (837871f)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TStatToolkit Namespace Reference

Functions

void EvaluateUni (Int_t nvectors, Double_t *data, Double_t &mean, Double_t &sigma, Int_t hh)
 
void EvaluateUniExternal (Int_t nvectors, Double_t *data, Double_t &mean, Double_t &sigma, Int_t hh, Float_t externalfactor=1)
 
Int_t Freq (Int_t n, const Int_t *inlist, Int_t *outlist, Bool_t down)
 
template<typename T >
void TruncatedMean (const TH1 *his, TVectorT< T > *param, Float_t down=0, Float_t up=1.0, Bool_t verbose=kFALSE)
 
void MedianFilter (TH1 *his1D, Int_t nmedian)
 
template<typename T >
Bool_t LTMHisto (TH1 *his, TVectorT< T > &param, Float_t fraction=1)
 
template<typename T >
Int_t * LTMUnbinned (int np, const T *arr, TVectorT< T > &params, Float_t keep=1.0)
 
template<typename T >
void Reorder (int np, T *arr, const int *idx)
 
template<typename T >
void LTM (TH1 *his, TVectorT< T > *param=0, Float_t fraction=1, Bool_t verbose=kFALSE)
 
template<typename T >
Double_t 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 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 GetCOG (const Short_t *arr, Int_t nBins, Float_t xMin, Float_t xMax, Float_t *rms=0, Float_t *sum=0)
 
TGraph2D * MakeStat2D (TH3 *his, Int_t delta0, Int_t delta1, Int_t type)
 
TGraphErrors * MakeStat1D (TH2 *his, Int_t deltaBin, Double_t fraction, Int_t returnType, Int_t markerStyle, Int_t markerColor)
 
Double_t RobustBinMedian (TH1 *hist, Double_t fractionCut=1.)
 
THashList * AddMetadata (TTree *, const char *vartagName, const char *varTagValue)
 
TNamed * GetMetadata (TTree *tree, const char *vartagName, TString *prefix=0)
 
TGraph * 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 * 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 * 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)
 
TString * 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 * 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 * 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 GetFitIndex (const TString fString, const TString subString)
 
TString FilterFit (const TString &input, const TString filter, TVectorD &vec, TMatrixD &covar)
 
void Update1D (Double_t delta, Double_t sigma, Int_t s1, TMatrixD &param, TMatrixD &covar)
 
void Constrain1D (const TString &input, const TString filter, TVectorD &param, TMatrixD &covar, Double_t mean, Double_t sigma)
 
TString MakeFitString (const TString &input, const TVectorD &param, const TMatrixD &covar, Bool_t verbose=kFALSE)
 
Int_t MakeStatAlias (TTree *tree, const char *expr, const char *cut, const char *alias)
 
void MakeAnchorAlias (TTree *tree, TString &sTrendVars, Int_t doCheck, Int_t verbose)
 
void MakeCombinedAlias (TTree *tree, TString &sCombinedStatus, Bool_t doCheck, Int_t verbose)
 
Int_t SetStatusAlias (TTree *tree, const char *expr, const char *cut, const char *alias)
 
TMultiGraph * MakeStatusMultGr (TTree *tree, const char *expr, const char *cut, const char *alias, Int_t igr=0)
 
void AddStatusPad (TCanvas *c1, Float_t padratio, Float_t bottommargin)
 
void DrawMultiGraph (TMultiGraph *graph, Option_t *option)
 
void DrawStatusGraphs (TObjArray *oaMultGr)
 
TTree * WriteStatusToTree (TObject *oStatusGr)
 
TMultiGraph * MakeStatusLines (TTree *tree, const char *expr, const char *cut, const char *alias)
 
void MakeSummaryTree (TTree *treeIn, TTreeSRedirector *pcstream, TObjString &sumID, TCut &selection)
 
Double_t GetDefaultStat (TTree *tree, const char *var, const char *selection, TStatType statType)
 
void MakeDistortionMap (Int_t iter, THnBase *histo, TTreeSRedirector *pcstream, TMatrixD &projectionInfo, Int_t dumpHisto=100, Int_t verbose=kFALSE)
 
void MakeDistortionMapFast (THnBase *histo, TTreeSRedirector *pcstream, TMatrixD &projectionInfo, Int_t verbose=0, Double_t fractionCut=0.1, const char *estimators=0)
 
void CombineArray (TTree *tree, TVectorD &values)
 
Double_t GetDistance (const TVectorD &values, const ENormType normType, const Bool_t normaliseToEntries=kFALSE, const Double_t pvalue=1.)
 
Double_t GetDistance (const Int_t size, const Double_t *values, const ENormType normType, const Bool_t normaliseToEntries=kFALSE, const Double_t pvalue=1.)
 
Double_t GetDistance (TTree *tree, const char *var, const char *selection, const ENormType normType, const Bool_t normaliseToEntries=kFALSE, const Double_t pvalue=1.)
 
TH1 * 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)
 
void TestGausFit (Int_t nhistos=5000)
 
void CheckTreeAliases (TTree *tree, Int_t ncheck)
 
template<typename T >
void GetMinMax (const T *arr, Long64_t n, double &minVal, double &maxVal)
 
template<typename T >
void GetMinMaxMean (const T *arr, Long64_t n, double &minVal, double &maxVal, double &meanVal)
 

Function Documentation

THashList* TStatToolkit::AddMetadata ( TTree *  ,
const char *  vartagName,
const char *  varTagValue 
)
void TStatToolkit::AddStatusPad ( TCanvas *  c1,
Float_t  padratio,
Float_t  bottommargin 
)
void TStatToolkit::CheckTreeAliases ( TTree *  tree,
Int_t  ncheck 
)
void TStatToolkit::CombineArray ( TTree *  tree,
TVectorD values 
)
void TStatToolkit::Constrain1D ( const TString &  input,
const TString  filter,
TVectorD param,
TMatrixD covar,
Double_t  mean,
Double_t  sigma 
)
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 
)
void TStatToolkit::DrawMultiGraph ( TMultiGraph *  graph,
Option_t *  option 
)
void TStatToolkit::DrawStatusGraphs ( TObjArray oaMultGr)
void TStatToolkit::EvaluateUniExternal ( Int_t  nvectors,
Double_t *  data,
Double_t &  mean,
Double_t &  sigma,
Int_t  hh,
Float_t  externalfactor = 1 
)
TString TStatToolkit::FilterFit ( const TString &  input,
const TString  filter,
TVectorD vec,
TMatrixD covar 
)
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 
)
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::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 
)

Referenced by DrawDriftCorel().

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 
)
Int_t TStatToolkit::Freq ( Int_t  n,
const Int_t *  inlist,
Int_t *  outlist,
Bool_t  down 
)
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 
)
Double_t TStatToolkit::GetDefaultStat ( TTree *  tree,
const char *  var,
const char *  selection,
TStatType  statType 
)
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. 
)
Int_t TStatToolkit::GetFitIndex ( const TString  fString,
const TString  subString 
)
TNamed* TStatToolkit::GetMetadata ( TTree *  tree,
const char *  vartagName,
TString *  prefix = 0 
)
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 
)
template<typename T >
void TStatToolkit::LTM ( TH1 *  his,
TVectorT< T > *  param = 0,
Float_t  fraction = 1,
Bool_t  verbose = kFALSE 
)
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 
)
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 
)
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 
)
TString TStatToolkit::MakeFitString ( const TString &  input,
const TVectorD param,
const TMatrixD covar,
Bool_t  verbose = kFALSE 
)
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 
)
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 
)
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 
)
TGraphErrors* TStatToolkit::MakeStat1D ( TH2 *  his,
Int_t  deltaBin,
Double_t  fraction,
Int_t  returnType,
Int_t  markerStyle,
Int_t  markerColor 
)
TGraph2D* TStatToolkit::MakeStat2D ( TH3 *  his,
Int_t  delta0,
Int_t  delta1,
Int_t  type 
)
Int_t TStatToolkit::MakeStatAlias ( TTree *  tree,
const char *  expr,
const char *  cut,
const char *  alias 
)
TMultiGraph* TStatToolkit::MakeStatusLines ( 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::MakeSummaryTree ( TTree *  treeIn,
TTreeSRedirector *  pcstream,
TObjString &  sumID,
TCut &  selection 
)
void TStatToolkit::MedianFilter ( TH1 *  his1D,
Int_t  nmedian 
)
template<typename T >
void TStatToolkit::Reorder ( int  np,
T *  arr,
const int *  idx 
)
Double_t TStatToolkit::RobustBinMedian ( TH1 *  hist,
Double_t  fractionCut = 1. 
)
Int_t TStatToolkit::SetStatusAlias ( TTree *  tree,
const char *  expr,
const char *  cut,
const char *  alias 
)
void TStatToolkit::TestGausFit ( Int_t  nhistos = 5000)
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::Update1D ( Double_t  delta,
Double_t  sigma,
Int_t  s1,
TMatrixD param,
TMatrixD covar 
)
TTree* TStatToolkit::WriteStatusToTree ( TObject *  oStatusGr)