44 char varType,
void* external,
47 fExpression ( expression ),
53 fNormalized ( normalized ),
54 fExternalData ( external ),
55 fVarCounter ( varCounter )
69 fLabel = expression(0,index);
70 fLabel = fLabel.ReplaceAll(
" ",
"");
150 o << std::setw(nc) <<
GetUnit();
152 o <<
"[" << std::setprecision(12) <<
GetMin() <<
"," << std::setprecision(12) <<
GetMax() <<
"]" << std::endl;
163 TString exp, varname, vartype, minmax, minstr, maxstr;
164 istr >> exp >> varname >> vartype >> minmax;
168 minstr = minmax(0,minmax.First(
','));
169 maxstr = minmax(1+minmax.First(
','),minmax.Length());
171 std::stringstream strmin(minstr.
Data());
172 std::stringstream strmax(maxstr.Data());
const TString & GetInternalName() const
void SetUnit(const TString &s)
Ssiz_t Index(const char *pat, Ssiz_t i=0, ECaseCompare cmp=kExact) const
VariableInfo & operator=(const TMVA::VariableInfo &rhs)
comparison operator
const TString & GetUnit() const
const TString & GetLabel() const
void SetLabel(const TString &s)
const TString & GetExpression() const
The TNamed class is the base class for all named ROOT classes.
std::vector< std::vector< double > > Data
void SetInternalVarName(const TString &s)
char * Form(const char *fmt,...)
void ReadFromXML(void *varnode)
read VariableInfo from stream
TSubString Strip(EStripType s=kTrailing, char c=' ') const
Return a substring of self stripped at beginning and/or end.
VariableInfo()
default constructor
virtual Int_t Sizeof() const
Returns size string will occupy on I/O buffer.
Bool_t Contains(const char *pat, ECaseCompare cmp=kExact) const
void SetExpression(const TString &s)
void ReadFromStream(std::istream &istr)
Short_t Max(Short_t a, Short_t b)
void AddToXML(void *varnode)
write class to XML
void WriteToStream(std::ostream &o) const
write VariableInfo to stream
virtual void SetTitle(const char *title="")
Set the title of the TNamed.
virtual const char * GetTitle() const
Returns title of object.
const char * Data() const