29#ifndef ROOT_TMVA_Tools
30#define ROOT_TMVA_Tools
44#if __cplusplus > 199711L
95 template <
typename Iterator,
typename WeightIterator>
Double_t Mean ( Iterator
first, Iterator last, WeightIterator w);
98 template <
typename Iterator,
typename WeightIterator>
Double_t RMS(Iterator
first, Iterator last, WeightIterator w);
102 void ComputeStat(
const std::vector<TMVA::Event*>&,
103 std::vector<Float_t>*,
124 std::vector<Int_t>* nodes );
149 std::vector<Double_t>
MVADiff( std::vector<Double_t>&, std::vector<Double_t>& );
155 void UsefulSortDescending( std::vector< std::vector<Double_t> >&, std::vector<TString>* vs = 0 );
156 void UsefulSortAscending ( std::vector< std::vector<Double_t> >&, std::vector<TString>* vs = 0 );
169 void FormattedOutput(
const std::vector<Double_t>&,
const std::vector<TString>&,
225 std::vector<TString>
SplitString(
const TString& theOpt,
const char separator )
const;
231#if __cplusplus > 199711L
232 static std::atomic<Tools*>
fgTools;
249 inline void ReadAttr (
void* node,
const char* , T& value );
251 void ReadAttr(
void *node,
const char *,
float &value);
252 void ReadAttr(
void *node,
const char *,
int &value);
253 void ReadAttr(
void *node,
const char *,
short &value);
256 void AddAttr (
void* node,
const char* ,
const T& value,
Int_t precision = 16 );
257 void AddAttr (
void* node,
const char* attrname,
const char* value );
258 void*
AddChild (
void* parent,
const char* childname,
const char* content = 0,
bool isRootNode =
false );
263 void*
GetChild (
void* parent,
const char* childname=0 );
264 void*
GetNextChild(
void* prevchild,
const char* childname=0 );
266 const char*
GetName (
void* node );
304 template <
typename TRandomLike,
typename UIntType = UInt_t, UIntType max_val = kMaxUInt>
311 static constexpr UIntType
min() {
return 0; }
312 static constexpr UIntType
max() {
return max_val; }
321 for (
unsigned long long i = 0; i < z; ++i)
341 Log() << kFATAL <<
"Trying to read non-existing attribute '" << attrname <<
"' from xml node '" << nodename <<
"'"
344 std::stringstream s(val);
356 s.precision( precision );
357 s << std::scientific << value;
358 AddAttr( node, attrname, s.str().c_str() );
367 return (sumx2 - ((sumx*sumx)/
static_cast<Double_t>(nx)))/
static_cast<Double_t>(nx-1);
typedef void((*Func_t)())
TH1 is the base class of all histogram classes in ROOT.
2-D histogram with a float per channel (see TH1 documentation)}
Service class for 2-Dim histogram classes.
ostringstream derivative to redirect and format output
PDF wrapper for histograms; uses user-defined spline interpolation.
void discard(unsigned long long z)
static constexpr UIntType max()
RandomGenerator(UIntType s=0)
static constexpr UIntType min()
Base class for spline implementation containing the Draw/Paint methods.
A TTree represents a columnar dataset.
const char * GetNodeName(XMLNodePointer_t xmlnode)
returns name of xmlnode
const char * GetAttr(XMLNodePointer_t xmlnode, const char *name)
returns value of attribute for xmlnode
create variable transformations
MsgLogger & Endl(MsgLogger &ml)