49 char varType,
void* external,
51 :
TNamed(title.Data(),title.Data()),
52 fExpression ( expression ),
58 fNormalized ( normalized ),
59 fExternalData ( external ),
60 fVarCounter ( varCounter )
74 fLabel = expression(0,index);
111 fExpression ( other.fExpression ),
112 fInternalName ( other.fInternalName ),
113 fLabel ( other.fLabel ),
114 fUnit ( other.fUnit ),
115 fVarType ( other.fVarType ),
116 fXminNorm ( other.fXminNorm ),
117 fXmaxNorm ( other.fXmaxNorm ),
118 fXmeanNorm ( other.fXmeanNorm ),
119 fXrmsNorm ( other.fXrmsNorm ),
120 fXvarianceNorm( other.fXvarianceNorm ),
121 fNormalized ( other.fNormalized ),
122 fExternalData ( other.fExternalData ),
123 fVarCounter ( other.fVarCounter )
150 TString expBr(
Form(
"\'%s\'",GetExpression().Data()));
151 o << std::setw(nc) << GetExpression();
152 o << std::setw(nc) << GetInternalName();
153 o << std::setw(nc) << GetLabel();
154 o << std::setw(nc) << GetTitle();
155 o << std::setw(nc) << GetUnit();
156 o <<
" \'" << fVarType <<
"\' ";
157 o <<
"[" << std::setprecision(12) << GetMin() <<
"," << std::setprecision(12) << GetMax() <<
"]" << std::endl;
167 TString exp, varname, vartype, minmax, minstr, maxstr;
168 istr >>
exp >> varname >> vartype >> minmax;
172 minstr = minmax(0,minmax.
First(
','));
173 maxstr = minmax(1+minmax.
First(
','),minmax.
Length());
175 std::stringstream strmin(minstr.
Data());
176 std::stringstream strmax(maxstr.
Data());
179 SetExpression (
exp );
180 SetInternalVarName( varname );
181 SetLabel ( varname );
182 SetTitle ( varname );
184 SetVarType ( vartype[1] );
201 typeStr[0] = GetVarType();
char * Form(const char *fmt,...)
Class for type info of MVA input variable.
void ReadFromXML(void *varnode)
read VariableInfo from stream
VariableInfo & operator=(const TMVA::VariableInfo &rhs)
comparison operator
const TString & GetExpression() const
VariableInfo()
default constructor
void ReadFromStream(std::istream &istr)
read VariableInfo from stream
void AddToXML(void *varnode)
write class to XML
void WriteToStream(std::ostream &o) const
write VariableInfo to stream
The TNamed class is the base class for all named ROOT classes.
TSubString Strip(EStripType s=kTrailing, char c=' ') const
Return a substring of self stripped at beginning and/or end.
Ssiz_t First(char c) const
Find first occurrence of a character c.
const char * Data() const
TString & ReplaceAll(const TString &s1, const TString &s2)
virtual Int_t Sizeof() const
Returns size string will occupy on I/O buffer.
Bool_t Contains(const char *pat, ECaseCompare cmp=kExact) const
Ssiz_t Index(const char *pat, Ssiz_t i=0, ECaseCompare cmp=kExact) const
Short_t Max(Short_t a, Short_t b)