27#ifndef ROOT_TMVA_Configurable
28#define ROOT_TMVA_Configurable
161 fListOfOptions.Add(o);
162 fLastDeclaredOption = o;
183 if (optname ==
TString(op->TheName())){
190 Log() << kFATAL <<
"Option \"" << optname
191 <<
"\" was found, but somehow I could not convert the pointer propperly.. please check the syntax of your option declaration" <<
Endl;
197 Log() << kFATAL <<
"Option \"" << optname
198 <<
"\" is not declared, hence cannot add predefined value, please check the syntax of your option declaration" <<
Endl;
208 if (opt!=0) valAssign = ((
Option<T>*)opt)->Value();
210 Log() << kFATAL <<
"Option \"" <<
name
211 <<
"\" not declared, please check the syntax of your option string" <<
Endl;
size_t size(const MatrixT &matrix)
retrieve the size of a square matrix
#define ClassDef(name, id)
virtual void Add(TObject *obj)
void SetConfigDescription(const char *d)
const TString & GetReferenceFile() const
void ReadOptionsFromXML(void *node)
Bool_t LooseOptionCheckingEnabled() const
OptionBase * DeclareOptionRef(T &ref, const TString &name, const TString &desc="")
void AddPreDefVal(const T &)
OptionBase * fLastDeclaredOption
void AssignOpt(const TString &name, T &valAssign) const
message logger
void SetConfigName(const char *n)
void ResetSetFlag()
resets the IsSet flag for all declare options to be called before options are read from stream
const char * GetConfigName() const
const char * GetConfigDescription() const
virtual ~Configurable()
default destructor
OptionBase * DeclareOptionRef(T *&ref, Int_t size, const TString &name, const TString &desc="")
void WriteOptionsReferenceToFile()
write complete options to output stream
void WriteOptionsToStream(std::ostream &o, const TString &prefix) const
write options to output stream (e.g. in writing the MVA weight files
TString fConfigDescription
TList fListOfOptions
last declared option
virtual void ParseOptions()
options parser
const TString & GetOptions() const
void SetMsgType(EMsgType t)
void PrintOptions() const
prints out the options set in the options string and the defaults
void CheckForUnusedOptions() const
checks for unused options in option string
void SplitOptions(const TString &theOpt, TList &loo) const
splits the option string at ':' and fills the list 'loo' with the primitive strings
Bool_t fLooseOptionCheckingEnabled
void ReadOptionsFromStream(std::istream &istr)
read option back from the weight file
void EnableLooseOptions(Bool_t b=kTRUE)
void AddOptionsXMLTo(void *parent) const
write options to XML file
void SetOptions(const TString &s)
ostringstream derivative to redirect and format output
void SetMinType(EMsgType minType)
Class for TMVA-option handling.
virtual void AddPreDefVal(const T &)
The TNamed class is the base class for all named ROOT classes.
virtual void SetName(const char *name)
Set the name of the TNamed.
virtual const char * GetName() const
Returns name of object.
Mother of all ROOT objects.
virtual TObject * FindObject(const char *name) const
Must be redefined in derived classes.
create variable transformations
MsgLogger & Endl(MsgLogger &ml)