Global auxiliary applications and data treatment routines.
Definition at line 80 of file Tools.h.
|
| ~Tools () |
| destructor More...
|
|
template<typename T > |
void | AddAttr (void *node, const char *, const T &value, Int_t precision=16) |
| add attribute to xml More...
|
|
void | AddAttr (void *node, const char *attrname, const char *value) |
| add attribute to node More...
|
|
void * | AddChild (void *parent, const char *childname, const char *content=0, bool isRootNode=false) |
| add child node More...
|
|
Bool_t | AddComment (void *node, const char *comment) |
|
Bool_t | AddRawLine (void *node, const char *raw) |
| XML helpers. More...
|
|
std::vector< TMatrixDSym * > * | CalcCovarianceMatrices (const std::vector< Event *> &events, Int_t maxCls, VariableTransformBase *transformBase=0) |
| compute covariance matrices More...
|
|
std::vector< TMatrixDSym * > * | CalcCovarianceMatrices (const std::vector< const Event *> &events, Int_t maxCls, VariableTransformBase *transformBase=0) |
|
Bool_t | CheckForSilentOption (const TString &) const |
| check for "silence" option in configuration option string More...
|
|
Bool_t | CheckForVerboseOption (const TString &) const |
| check if verbosity "V" set in option More...
|
|
Bool_t | CheckSplines (const TH1 *, const TSpline *) |
| check quality of splining by comparing splines and histograms in each bin More...
|
|
const TString & | Color (const TString &) |
| human readable color strings More...
|
|
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 More...
|
|
Double_t | ComputeVariance (Double_t sumx2, Double_t sumx, Int_t nx) |
| compute variance from given sums More...
|
|
Bool_t | ContainsRegularExpression (const TString &s) |
| check if regular expression helper function to search for "$!%^&()'<>?= " in a string More...
|
|
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 More...
|
|
void | FormattedOutput (const TMatrixD &, const std::vector< TString > &, MsgLogger &logger) |
| formatted output of matrix (with labels) More...
|
|
void | FormattedOutput (const TMatrixD &, const std::vector< TString > &vert, const std::vector< TString > &horiz, MsgLogger &logger) |
| formatted output of matrix (with labels) More...
|
|
void * | GetChild (void *parent, const char *childname=0) |
| get child node More...
|
|
const char * | GetContent (void *node) |
| XML helpers. More...
|
|
const TMatrixD * | GetCorrelationMatrix (const TMatrixD *covMat) |
| turns covariance into correlation matrix More...
|
|
Double_t | GetCorrelationRatio (const TH2F &) |
| Compute Correlation Ratio of 2D histogram to estimate functional dependency between two variables Author: Moritz Backes, Geneva (2009) More...
|
|
TH1 * | GetCumulativeDist (TH1 *h) |
| get the cumulative distribution of a histogram More...
|
|
Int_t | GetIndexMaxElement (std::vector< Double_t > &) |
| find index of maximum entry in vector More...
|
|
Int_t | GetIndexMinElement (std::vector< Double_t > &) |
| find index of minimum entry in vector More...
|
|
Double_t | GetMutualInformation (const TH2F &) |
| Mutual Information method for non-linear correlations estimates in 2D histogram Author: Moritz Backes, Geneva (2009) More...
|
|
const char * | GetName (void *node) |
| XML helpers. More...
|
|
void * | GetNextChild (void *prevchild, const char *childname=0) |
| XML helpers. More...
|
|
void * | GetParent (void *child) |
| get parent node More...
|
|
Double_t | GetSeparation (TH1 *S, TH1 *B) const |
| compute "separation" defined as
\[ <s2> = \frac{1}{2} \int_{-\infty}^{+\infty} \frac{(S(x) - B(x))^2}{(S(x) + B(x))} dx \]
More...
|
|
Double_t | GetSeparation (const PDF &pdfS, const PDF &pdfB) const |
| compute "separation" defined as
\[ <s2> = \frac{1}{2} \int_{-\infty}^{+\infty} \frac{(S(x) - B(x))^2}{(S(x) + B(x))} dx \]
More...
|
|
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 More...
|
|
TString | GetXTitleWithUnit (const TString &title, const TString &unit) |
| histogramming utility More...
|
|
TString | GetYTitleWithUnit (const TH1 &h, const TString &unit, Bool_t normalised) |
| histogramming utility More...
|
|
Bool_t | HasAttr (void *node, const char *attrname) |
| add attribute from xml More...
|
|
Bool_t | HistoHasEquidistantBins (const TH1 &h) |
|
MsgLogger & | Log () const |
|
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. More...
|
|
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. More...
|
|
std::vector< Double_t > | MVADiff (std::vector< Double_t > &, std::vector< Double_t > &) |
| computes difference between two vectors More...
|
|
Double_t | NormHist (TH1 *theHist, Double_t norm=1.0) |
| normalises histogram More...
|
|
Double_t | NormVariable (Double_t x, Double_t xmin, Double_t xmax) |
| normalise to output range: [-1, 1] More...
|
|
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) More...
|
|
TList * | ParseFormatLine (TString theString, const char *sep=":") |
| Parse the string and cut into labels separated by ":". More...
|
|
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 More...
|
|
template<typename T > |
void | ReadAttr (void *node, const char *, T &value) |
| read attribute from xml More...
|
|
void | ReadAttr (void *node, const char *attrname, TString &value) |
| add attribute from xml More...
|
|
void | ReadAttr (void *node, const char *, float &value) |
|
void | ReadAttr (void *node, const char *, int &value) |
|
void | ReadAttr (void *node, const char *, short &value) |
|
void | ReadFloatArbitraryPrecision (Float_t &val, std::istream &is) |
| reads a float value with the available precision from a stream More...
|
|
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 More...
|
|
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. More...
|
|
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. More...
|
|
void | ROOTVersionMessage (MsgLogger &logger) |
| prints the ROOT release number and date More...
|
|
void | Scale (std::vector< Double_t > &, Double_t) |
| scales double vector More...
|
|
void | Scale (std::vector< Float_t > &, Float_t) |
| scales float vector More...
|
|
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 More...
|
|
TString | StringFromDouble (Double_t d) |
| string tools More...
|
|
TString | StringFromInt (Long_t i) |
| string tools More...
|
|
void | TMVACitation (MsgLogger &logger, ECitation citType=kPlainText) |
| kinds of TMVA citation More...
|
|
void | TMVAVersionMessage (MsgLogger &logger) |
| prints the TMVA release number and date More...
|
|
void | TMVAWelcomeMessage () |
| direct output, eg, when starting ROOT session -> no use of Logger here More...
|
|
void | TMVAWelcomeMessage (MsgLogger &logger, EWelcomeMessage m=kStandardWelcomeMsg) |
| various kinds of welcome messages ASCII text generated by this site: http://www.network-science.de/ascii/ More...
|
|
TH2F * | TransposeHist (const TH2F &) |
| Transpose quadratic histogram. More...
|
|
void | UsefulSortAscending (std::vector< std::vector< Double_t > > &, std::vector< TString > *vs=0) |
| 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. More...
|
|
void | UsefulSortAscending (std::vector< Double_t > &) |
| sort vector More...
|
|
void | UsefulSortDescending (std::vector< std::vector< Double_t > > &, std::vector< TString > *vs=0) |
| 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. More...
|
|
void | UsefulSortDescending (std::vector< Double_t > &) |
| sort vector More...
|
|
void | WriteFloatArbitraryPrecision (Float_t val, std::ostream &os) |
| writes a float value with the available precision to a stream More...
|
|
void | WriteTMatrixDToXML (void *node, const char *name, TMatrixD *mat) |
| XML helpers. More...
|
|
void | WriteTVectorDToXML (void *node, const char *name, TVectorD *vec) |
|
TXMLEngine & | xmlengine () |
|
int | xmlenginebuffersize () |
|