50 char varType,
void* external,
52 :
TNamed(title.Data(),title.Data()),
53 fExpression ( expression ),
59 fNormalized ( normalized ),
60 fExternalData ( external ),
61 fVarCounter ( varCounter )
75 fLabel = expression(0,index);
112 fExpression ( other.fExpression ),
113 fInternalName ( other.fInternalName ),
114 fLabel ( other.fLabel ),
115 fUnit ( other.fUnit ),
116 fVarType ( other.fVarType ),
117 fXminNorm ( other.fXminNorm ),
118 fXmaxNorm ( other.fXmaxNorm ),
119 fXmeanNorm ( other.fXmeanNorm ),
120 fXrmsNorm ( other.fXrmsNorm ),
121 fXvarianceNorm( other.fXvarianceNorm ),
122 fNormalized ( other.fNormalized ),
123 fExternalData ( other.fExternalData ),
124 fVarCounter ( other.fVarCounter )
151 TString expBr(
Form(
"\'%s\'",GetExpression().Data()));
152 o << std::setw(nc) << GetExpression();
153 o << std::setw(nc) << GetInternalName();
154 o << std::setw(nc) << GetLabel();
155 o << std::setw(nc) << GetTitle();
156 o << std::setw(nc) << GetUnit();
157 o <<
" \'" << fVarType <<
"\' ";
158 o <<
"[" << std::setprecision(12) << GetMin() <<
"," << std::setprecision(12) << GetMax() <<
"]" << std::endl;
168 TString exp, varname, vartype, minmax, minstr, maxstr;
169 istr >>
exp >> varname >> vartype >> minmax;
173 minstr = minmax(0,minmax.
First(
','));
174 maxstr = minmax(1+minmax.
First(
','),minmax.
Length());
176 std::stringstream strmin(minstr.
Data());
177 std::stringstream strmax(maxstr.
Data());
180 SetExpression (
exp );
181 SetInternalVarName( varname );
182 SetLabel ( varname );
183 SetTitle ( varname );
185 SetVarType ( vartype[1] );
202 typeStr[0] = GetVarType();
228 if (
type.Contains(
"[]"))
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)