Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

FitterOptionParser.h

Go to the documentation of this file.
00001  /**********************************************************************
00002   *                                                                    *
00003   * Copyright (c) 2002 Lorenzo Moneta, CERN/IT                       *
00004   *                   <Lorenzo.Moneta.cern.ch>                       *
00005   *                                                                    *
00006   * This library is free software; you can redistribute it and/or      *
00007   * modify it under the terms of the GNU Lesser General Public         *
00008   * License as published by the Free Software Foundation; either       *
00009   * version 2.1 of the License, or (at your option) any later version. *
00010   *                                                                    *
00011   * This library is distributed in the hope that it will be useful,    *
00012   * but WITHOUT ANY WARRANTY; without even the implied warranty of     *
00013   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU   *
00014   * Lesser General Public License for more details.                    *
00015   *                                                                    *
00016   * You should have received a copy of the GNU Lesser General Public   *
00017   * License along with this library (see file COPYING); if not, write  *
00018   * to the Free Software Foundation, Inc., 59 Temple Place, Suite      *
00019   * 330, Boston, MA 02111-1307 USA, or contact the author.             *
00020   *                                                                    *
00021   **********************************************************************/
00022 
00023 // Header file for class FitterOptionParser
00024 // 
00025 // Authors  : Lorenzo Moneta , Jakub Moscicki
00026 // Created  : Fri Oct 11 12:10:34 2002
00027 // 
00028 // Last update: Fri Oct 11 12:10:34 2002
00029 // 
00030 #ifndef ANAPHE_AIDA_FITTER_FML_FITTEROPTIONPARSER
00031 #define ANAPHE_AIDA_FITTER_FML_FITTEROPTIONPARSER 1
00032 
00033 #include <string>
00034 
00035 namespace Anaphe  { 
00036   namespace AIDA_Fitter_FML { 
00037 
00038 
00039 class FitterOptionParser {
00040 
00041 public: 
00042   FitterOptionParser(const std::string  & option); 
00043   virtual ~FitterOptionParser(); 
00044 
00045 private:
00046 // usually copying is non trivial, so we make this unaccessible
00047   FitterOptionParser(const FitterOptionParser &); 
00048   FitterOptionParser & operator = (const FitterOptionParser &); 
00049 
00050 public: 
00051 
00052   // return the print level
00053   int printLevel() const; 
00054 
00055   // use Minos
00056   bool useMinos() const;
00057 
00058   //errorUP
00059   double errorUP() const; 
00060 
00061 protected: 
00062 
00063   template <class T> 
00064   void getValueOption(const std::string & keyword, T & value);
00065  
00066   bool getBoolOption(const std::string & keyword); 
00067   
00068 
00069 private: 
00070 
00071   bool m_use_minos; 
00072   int m_print_level; 
00073   double m_error_up;
00074   std::string m_options; 
00075 
00076 }; 
00077 
00078   }     // end of namespace Anaphe::AIDA_Fitter_FML
00079 }
00080 #endif /* FITTEROPTIONPARSER */

Generated on Tue May 20 14:49:01 2003 for AIDA_Fitter_FML by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002