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