Global auxiliary applications and data treatment routines. 
Definition at line 76 of file Tools.h.
 | 
|   | ~Tools () | 
|   | destructor  
  | 
|   | 
| template<typename T >  | 
| void  | AddAttr (void *node, const char *, const T &value, Int_t precision=16) | 
|   | add attribute to xml  
  | 
|   | 
| void  | AddAttr (void *node, const char *attrname, const char *value) | 
|   | add attribute to node  
  | 
|   | 
| void *  | AddChild (void *parent, const char *childname, const char *content=nullptr, bool isRootNode=false) | 
|   | add child node  
  | 
|   | 
| Bool_t  | AddComment (void *node, const char *comment) | 
|   | 
| Bool_t  | AddRawLine (void *node, const char *raw) | 
|   | XML helpers.  
  | 
|   | 
| std::vector< TMatrixDSym * > *  | CalcCovarianceMatrices (const std::vector< const Event * > &events, Int_t maxCls, VariableTransformBase *transformBase=nullptr) | 
|   | 
| std::vector< TMatrixDSym * > *  | CalcCovarianceMatrices (const std::vector< Event * > &events, Int_t maxCls, VariableTransformBase *transformBase=nullptr) | 
|   | compute covariance matrices  
  | 
|   | 
| Bool_t  | CheckForSilentOption (const TString &) const | 
|   | check for "silence" option in configuration option string  
  | 
|   | 
| Bool_t  | CheckForVerboseOption (const TString &) const | 
|   | check if verbosity "V" set in option  
  | 
|   | 
| Bool_t  | CheckSplines (const TH1 *, const TSpline *) | 
|   | check quality of splining by comparing splines and histograms in each bin  
  | 
|   | 
| const TString &  | Color (const TString &) | 
|   | human readable color strings  
  | 
|   | 
| void  | ComputeStat (const std::vector< TMVA::Event * > &, std::vector< Float_t > *, Double_t &, Double_t &, Double_t &, Double_t &, Double_t &, Double_t &, Int_t signalClass, Bool_t norm=kFALSE) | 
|   | sanity check  
  | 
|   | 
| Double_t  | ComputeVariance (Double_t sumx2, Double_t sumx, Int_t nx) | 
|   | compute variance from given sums  
  | 
|   | 
| Bool_t  | ContainsRegularExpression (const TString &s) | 
|   | check if regular expression helper function to search for "$!%^&()'<>?= " in a string  
  | 
|   | 
| void  | FormattedOutput (const std::vector< Double_t > &, const std::vector< TString > &, const TString titleVars, const TString titleValues, MsgLogger &logger, TString format="%+1.3f") | 
|   | formatted output of simple table  
  | 
|   | 
| void  | FormattedOutput (const TMatrixD &, const std::vector< TString > &, MsgLogger &logger) | 
|   | formatted output of matrix (with labels)  
  | 
|   | 
| void  | FormattedOutput (const TMatrixD &, const std::vector< TString > &vert, const std::vector< TString > &horiz, MsgLogger &logger) | 
|   | formatted output of matrix (with labels)  
  | 
|   | 
| void *  | GetChild (void *parent, const char *childname=nullptr) | 
|   | get child node  
  | 
|   | 
| const char *  | GetContent (void *node) | 
|   | XML helpers.  
  | 
|   | 
| const TMatrixD *  | GetCorrelationMatrix (const TMatrixD *covMat) | 
|   | turns covariance into correlation matrix  
  | 
|   | 
| Double_t  | GetCorrelationRatio (const TH2F &) | 
|   | Compute Correlation Ratio of 2D histogram to estimate functional dependency between two variables Author: Moritz Backes, Geneva (2009)  
  | 
|   | 
| TH1 *  | GetCumulativeDist (TH1 *h) | 
|   | get the cumulative distribution of a histogram  
  | 
|   | 
| Int_t  | GetIndexMaxElement (std::vector< Double_t > &) | 
|   | find index of maximum entry in vector  
  | 
|   | 
| Int_t  | GetIndexMinElement (std::vector< Double_t > &) | 
|   | find index of minimum entry in vector  
  | 
|   | 
| Double_t  | GetMutualInformation (const TH2F &) | 
|   | Mutual Information method for non-linear correlations estimates in 2D histogram Author: Moritz Backes, Geneva (2009)  
  | 
|   | 
| const char *  | GetName (void *node) | 
|   | XML helpers.  
  | 
|   | 
| void *  | GetNextChild (void *prevchild, const char *childname=nullptr) | 
|   | XML helpers.  
  | 
|   | 
| void *  | GetParent (void *child) | 
|   | get parent node  
  | 
|   | 
| Double_t  | GetSeparation (const PDF &pdfS, const PDF &pdfB) const | 
|   | compute "separation" defined as  
  | 
|   | 
| Double_t  | GetSeparation (TH1 *S, TH1 *B) const | 
|   | compute "separation" defined as  
  | 
|   | 
| TMatrixD *  | GetSQRootMatrix (TMatrixDSym *symMat) | 
|   | square-root of symmetric matrix of course the resulting sqrtMat is also symmetric, but it's easier to treat it as a general matrix  
  | 
|   | 
| TString  | GetXTitleWithUnit (const TString &title, const TString &unit) | 
|   | histogramming utility  
  | 
|   | 
| TString  | GetYTitleWithUnit (const TH1 &h, const TString &unit, Bool_t normalised) | 
|   | histogramming utility  
  | 
|   | 
| Bool_t  | HasAttr (void *node, const char *attrname) | 
|   | add attribute from xml  
  | 
|   | 
| Bool_t  | HistoHasEquidistantBins (const TH1 &h) | 
|   | 
| MsgLogger &  | Log () const | 
|   | 
| template<typename Iterator , typename WeightIterator >  | 
| Double_t  | Mean (Iterator first, Iterator last, WeightIterator w) | 
|   | Return the weighted mean of an array defined by the first and last iterators.  
  | 
|   | 
| template<typename T >  | 
| Double_t  | Mean (Long64_t n, const T *a, const Double_t *w=0) | 
|   | Return the weighted mean of an array a with length n.  
  | 
|   | 
| std::vector< Double_t >  | MVADiff (std::vector< Double_t > &, std::vector< Double_t > &) | 
|   | computes difference between two vectors  
  | 
|   | 
| Double_t  | NormHist (TH1 *theHist, Double_t norm=1.0) | 
|   | normalises histogram  
  | 
|   | 
| Double_t  | NormVariable (Double_t x, Double_t xmin, Double_t xmax) | 
|   | normalise to output range: [-1, 1]  
  | 
|   | 
| std::vector< Int_t > *  | ParseANNOptionString (TString theOptions, Int_t nvar, std::vector< Int_t > *nodes) | 
|   | parse option string for ANN methods default settings (should be defined in theOption string)  
  | 
|   | 
| TList *  | ParseFormatLine (TString theString, const char *sep=":") | 
|   | Parse the string and cut into labels separated by ":".  
  | 
|   | 
| TH1 *  | projNormTH1F (TTree *theTree, const TString &theVarName, const TString &name, Int_t nbins, Double_t xmin, Double_t xmax, const TString &cut) | 
|   | projects variable from tree into normalised histogram  
  | 
|   | 
| void  | ReadAttr (void *node, const char *, float &value) | 
|   | 
| void  | ReadAttr (void *node, const char *, int &value) | 
|   | 
| void  | ReadAttr (void *node, const char *, short &value) | 
|   | 
| template<typename T >  | 
| void  | ReadAttr (void *node, const char *, T &value) | 
|   | read attribute from xml  
  | 
|   | 
| void  | ReadAttr (void *node, const char *attrname, TString &value) | 
|   | add attribute from xml  
  | 
|   | 
| void  | ReadFloatArbitraryPrecision (Float_t &val, std::istream &is) | 
|   | reads a float value with the available precision from a stream  
  | 
|   | 
| void  | ReadTMatrixDFromXML (void *node, const char *name, TMatrixD *mat) | 
|   | 
| void  | ReadTVectorDFromXML (void *node, const char *name, TVectorD *vec) | 
|   | 
| TString  | ReplaceRegularExpressions (const TString &s, const TString &replace="+") | 
|   | replace regular expressions helper function to remove all occurrences "$!%^&()'<>?= " from a string and replace all ::,$,*,/,+,- with M,S,T,D,P,M respectively  
  | 
|   | 
| template<typename Iterator , typename WeightIterator >  | 
| Double_t  | RMS (Iterator first, Iterator last, WeightIterator w) | 
|   | Return the Standard Deviation of an array defined by the iterators.  
  | 
|   | 
| template<typename T >  | 
| Double_t  | RMS (Long64_t n, const T *a, const Double_t *w=0) | 
|   | Return the Standard Deviation of an array a with length n.  
  | 
|   | 
| void  | ROOTVersionMessage (MsgLogger &logger) | 
|   | prints the ROOT release number and date  
  | 
|   | 
| void  | Scale (std::vector< Double_t > &, Double_t) | 
|   | scales double vector  
  | 
|   | 
| void  | Scale (std::vector< Float_t > &, Float_t) | 
|   | scales float vector  
  | 
|   | 
| void  | SetXMLEngineBufferSize (int buffer) | 
|   | 
| std::vector< TString >  | SplitString (const TString &theOpt, const char separator) const | 
|   | splits the option string at 'separator' and fills the list 'splitV' with the primitive strings  
  | 
|   | 
| TString  | StringFromDouble (Double_t d) | 
|   | string tools  
  | 
|   | 
| TString  | StringFromInt (Long_t i) | 
|   | string tools  
  | 
|   | 
| void  | TMVACitation (MsgLogger &logger, ECitation citType=kPlainText) | 
|   | kinds of TMVA citation  
  | 
|   | 
| void  | TMVAVersionMessage (MsgLogger &logger) | 
|   | prints the TMVA release number and date  
  | 
|   | 
| void  | TMVAWelcomeMessage () | 
|   | direct output, eg, when starting ROOT session -> no use of Logger here  
  | 
|   | 
| void  | TMVAWelcomeMessage (MsgLogger &logger, EWelcomeMessage m=kStandardWelcomeMsg) | 
|   | various kinds of welcome messages ASCII text generated by this site: http://www.network-science.de/ascii/  
  | 
|   | 
| TH2F *  | TransposeHist (const TH2F &) | 
|   | Transpose quadratic histogram.  
  | 
|   | 
| void  | UsefulSortAscending (std::vector< Double_t > &) | 
|   | sort vector  
  | 
|   | 
| void  | UsefulSortAscending (std::vector< std::vector< Double_t > > &, std::vector< TString > *vs=nullptr) | 
|   | sort 2D vector (AND in parallel a TString vector) in such a way that the "first vector is sorted" and the other vectors are reshuffled in the same way as necessary to have the first vector sorted.  
  | 
|   | 
| void  | UsefulSortDescending (std::vector< Double_t > &) | 
|   | sort vector  
  | 
|   | 
| void  | UsefulSortDescending (std::vector< std::vector< Double_t > > &, std::vector< TString > *vs=nullptr) | 
|   | sort 2D vector (AND in parallel a TString vector) in such a way that the "first vector is sorted" and the other vectors are reshuffled in the same way as necessary to have the first vector sorted.  
  | 
|   | 
| void  | WriteFloatArbitraryPrecision (Float_t val, std::ostream &os) | 
|   | writes a float value with the available precision to a stream  
  | 
|   | 
| void  | WriteTMatrixDToXML (void *node, const char *name, TMatrixD *mat) | 
|   | XML helpers.  
  | 
|   | 
| void  | WriteTVectorDToXML (void *node, const char *name, TVectorD *vec) | 
|   | 
| TXMLEngine &  | xmlengine () | 
|   | 
| int  | xmlenginebuffersize () | 
|   |