* *
* File and Version Information: *
* $Id: Tools.h,v 1.2 2006/05/23 13:03:15 brun Exp $
**********************************************************************************/
#ifndef ROOT_TMVA_Tools
#define ROOT_TMVA_Tools
#include <vector>
#include <string>
#include "TList.h"
#ifndef ROOT_TMVA_Event
#include "TMVA/Event.h"
#endif
#ifndef ROOT_TMVA_TMatrixDSymEigen
#include "TMatrixDSymEigen.h"
#endif
class TTree;
class TH1;
class TSpline;
#define __N__(a1,a2,a3) Tools::NormVariable(a1,a2,a3)
using std::vector;
namespace TMVA {
namespace Tools {
void ComputeStat( TTree* theTree, TString theVarName,
Double_t&, Double_t&, Double_t&,
Double_t&, Double_t&, Double_t&, Bool_t norm = kFALSE );
void ComputeStat( std::vector<Event*>, Int_t ivar,
Double_t&, Double_t&, Double_t&,
Double_t&, Double_t&, Double_t&, Bool_t norm = kFALSE );
TH1* projNormTH1F( TTree* theTree, TString theVarName,
TString name, Int_t nbins,
Double_t xmin, Double_t xmax, TString cut );
Double_t NormHist( TH1* theHist, Double_t norm = 1.0 );
TList* ParseFormatLine( TString theString );
void GetCovarianceMatrix( TTree* theTree, TMatrixDBase *theMatrix,
vector<TString>* theVars, Int_t theType, Bool_t norm = kFALSE );
void GetCorrelationMatrix( TTree* theTree, TMatrixDBase *theMatrix,
vector<TString>* theVars, Int_t theType );
void GetSQRootMatrix( TMatrixDSym* symMat, TMatrixD* sqrtMat );
Double_t GetValue( TTree *theTree, Int_t entry, TString varname );
Bool_t CheckSplines( TH1*, TSpline* );
Double_t NormVariable( Double_t x, Double_t xmin, Double_t xmax );
vector<Double_t> MVADiff( vector<Double_t>&, vector<Double_t>& );
void Scale ( vector<Double_t>&, Double_t );
void Scale ( vector<Float_t> &, Float_t );
void UsefulSortDescending( vector< vector<Double_t> >&, vector<TString>* vs = 0 );
void UsefulSortAscending ( vector< vector<Double_t> >& );
void UsefulSortDescending( vector<Double_t>& );
void UsefulSortAscending ( vector<Double_t>& );
Int_t GetIndexMaxElement ( vector<Double_t>& );
Int_t GetIndexMinElement ( vector<Double_t>& );
}
}
#endif
ROOT page - Class index - Class Hierarchy - Top of the page
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.