|
ROOT
Reference Guide |
|
Go to the documentation of this file.
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;
Bool_t fLooseOptionCheckingEnabled
void PrintOptions() const
prints out the options set in the options string and the defaults
void ReadOptionsFromStream(std::istream &istr)
read option back from the weight file
virtual void SetName(const char *name)
Set the name of the TNamed.
void WriteOptionsReferenceToFile()
write complete options to output stream
const TString & GetReferenceFile() const
OptionBase * DeclareOptionRef(T *&ref, Int_t size, const TString &name, const TString &desc="")
void AddPreDefVal(const T &)
const char * GetConfigDescription() const
virtual void AddPreDefVal(const T &)
void WriteOptionsToStream(std::ostream &o, const TString &prefix) const
write options to output stream (e.g. in writing the MVA weight files
void AddOptionsXMLTo(void *parent) const
write options to XML file
static constexpr double s
void SplitOptions(const TString &theOpt, TList &loo) const
splits the option string at ':' and fills the list 'loo' with the primitive strings
void AssignOpt(const TString &name, T &valAssign) const
message logger
TString fConfigDescription
Bool_t LooseOptionCheckingEnabled() const
void EnableLooseOptions(Bool_t b=kTRUE)
void ReadOptionsFromXML(void *node)
void CheckForUnusedOptions() const
checks for unused options in option string
The TNamed class is the base class for all named ROOT classes.
virtual TObject * FindObject(const char *name) const
Must be redefined in derived classes.
void SetMinType(EMsgType minType)
void ResetSetFlag()
resets the IsSet flag for all declare options to be called before options are read from stream
MsgLogger & Endl(MsgLogger &ml)
const TString & GetOptions() const
void SetMsgType(EMsgType t)
void SetOptions(const TString &s)
const char * GetConfigName() const
ostringstream derivative to redirect and format output
virtual void Add(TObject *obj)
Mother of all ROOT objects.
#define ClassDef(name, id)
void SetConfigDescription(const char *d)
Configurable(const TString &theOption="")
constructor
OptionBase * fLastDeclaredOption
virtual const char * GetName() const
Returns name of object.
virtual ~Configurable()
default destructor
OptionBase * DeclareOptionRef(T &ref, const TString &name, const TString &desc="")
Class for TMVA-option handling.
virtual void ParseOptions()
options parser
TList fListOfOptions
last declared option
void SetConfigName(const char *n)
create variable transformations