Option.cxx

Go to the documentation of this file.
00001 // @(#)root/tmva $Id: Option.cxx 34301 2010-07-02 11:32:29Z stelzer $   
00002 // Author: Andreas Hoecker, Joerg Stelzer, Helge Voss
00003 
00004 /**********************************************************************************
00005  * Project: TMVA - a Root-integrated toolkit for multivariate data analysis       *
00006  * Package: TMVA                                                                  *
00007  * Class  : Option                                                                *
00008  * Web    : http://tmva.sourceforge.net                                           *
00009  *                                                                                *
00010  * Description:                                                                   *
00011  *      Implementation                                                            *
00012  *                                                                                *
00013  * Authors (alphabetical):                                                        *
00014  *      Andreas Hoecker <Andreas.Hocker@cern.ch> - CERN, Switzerland              *
00015  *      Joerg Stelzer   <Joerg.Stelzer@cern.ch>  - CERN, Switzerland              *
00016  *      Helge Voss      <Helge.Voss@cern.ch>     - MPI-K Heidelberg, Germany      *
00017  *                                                                                *
00018  * Copyright (c) 2005:                                                            *
00019  *      CERN, Switzerland                                                         * 
00020  *      U. of Victoria, Canada                                                    * 
00021  *      MPI-K Heidelberg, Germany                                                 * 
00022  *      LAPP, Annecy, France                                                      *
00023  *                                                                                *
00024  * Redistribution and use in source and binary forms, with or without             *
00025  * modification, are permitted according to the terms listed in LICENSE           *
00026  * (http://mva.sourceforge.net/license.txt)                                       *
00027  **********************************************************************************/
00028 
00029 #include "TMVA/Option.h"
00030 
00031 TMVA::MsgLogger* TMVA::OptionBase::fgLogger = 0;
00032 
00033 //______________________________________________________________________
00034 TMVA::OptionBase::OptionBase( const TString& name, const TString& desc ) 
00035    : TObject(), 
00036      fName        ( name ), 
00037      fNameAllLower( name ), 
00038      fDescription ( desc ), 
00039      fIsSet       ( kFALSE )
00040 {
00041    // constructor
00042    if (!fgLogger) fgLogger = new MsgLogger("Option",kDEBUG);
00043    fNameAllLower.ToLower();
00044 }
00045 
00046 //______________________________________________________________________
00047 Bool_t TMVA::OptionBase::SetValue( const TString& vs, Int_t ) 
00048 {
00049    // set value for option
00050    fIsSet = kTRUE;
00051    SetValueLocal(vs);
00052    return kTRUE;
00053 }
00054 

Generated on Tue Jul 5 15:25:13 2011 for ROOT_528-00b_version by  doxygen 1.5.1