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

AIDA_FitParameterSettings.cpp

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 // Implementation file for class AIDA_FitParameterSettings
00024 // 
00025 // Authors  : Lorenzo Moneta , Jakub Moscicki
00026 // Created  : Fri Oct  4 16:14:29 2002
00027 // 
00028 // Last update: Fri Oct  4 16:14:29 2002
00029 // 
00030 
00031 #include "AIDA_FitParameterSettings.h"
00032 #include "FML/FitParameterSettings.h"
00033 
00034 namespace Anaphe  { 
00035   namespace AIDA_Fitter_FML { 
00036 
00037     // constructor taking an FML Fit parameter setting pointer 
00038 
00039     AIDA_FitParameterSettings::AIDA_FitParameterSettings(Anaphe::FML::FitParameterSettings* ptr) : m_settings(ptr)
00040     {}
00041 
00042     AIDA_FitParameterSettings::~AIDA_FitParameterSettings() 
00043     {
00044     }
00045 
00046     AIDA_FitParameterSettings::AIDA_FitParameterSettings(const AIDA_FitParameterSettings &) 
00047     {
00048     }
00049 
00050     AIDA_FitParameterSettings & AIDA_FitParameterSettings::operator = (const AIDA_FitParameterSettings &rhs) 
00051     {
00052       if (this == &rhs) return *this;  // time saving self-test
00053       
00054       return *this;
00055     }
00056 
00057 
00058     std::string AIDA_FitParameterSettings::AIDA_FitParameterSettings::name() const
00059     {
00060       return m_settings->name();
00061     }
00062     
00063     double AIDA_FitParameterSettings::stepSize() const
00064     {
00065       return m_settings->stepSize();
00066     }
00067 
00068     double AIDA_FitParameterSettings::upperBound() const
00069     {
00070       return m_settings->bound().upperBound();
00071     }
00072     
00073     double AIDA_FitParameterSettings::lowerBound() const
00074     {
00075       return m_settings->bound().lowerBound();
00076     }
00077     
00078     bool AIDA_FitParameterSettings::isBound() const
00079     {
00080       return m_settings->bound().isBound();
00081     }
00082     
00083     bool AIDA_FitParameterSettings::isFixed() const
00084     {
00085       return m_settings->bound().isFixed();
00086     }
00087     
00088     void AIDA_FitParameterSettings::setStepSize(double step)
00089     {
00090       m_settings->setStepSize(step);
00091     }
00092     
00093     void AIDA_FitParameterSettings::setBounds(double lo, double up)
00094     {
00095       m_settings->bound() = Anaphe::FML::Bound(lo,up);
00096     }
00097 
00098     void AIDA_FitParameterSettings::removeBounds()
00099     {
00100       m_settings->removeBounds();
00101     }
00102 
00103     void AIDA_FitParameterSettings::setFixed(bool isFixed)
00104     {
00105       m_settings->bound().setFixed(isFixed);
00106     }
00107     
00108     void AIDA_FitParameterSettings::setLowerBound(double lowerBound)
00109     {
00110       m_settings->bound() = Anaphe::FML::LowerBound(lowerBound);
00111     }
00112     
00113     void AIDA_FitParameterSettings::setUpperBound(double upperBound)
00114     {
00115       m_settings->bound() = Anaphe::FML::UpperBound(upperBound);
00116     }
00117     
00118     void AIDA_FitParameterSettings::reset()
00119     {
00120       m_settings->reset();
00121     }
00122 
00123 
00124   }     // end of namespace Anaphe::AIDA_Fitter_FML
00125 } 

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