ROOT  6.07/01
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
GSL1DMinimizerWrapper.h
Go to the documentation of this file.
1 // @(#)root/mathmore:$Id$
2 // Authors: L. Moneta, A. Zsenei 08/2005
3  /**********************************************************************
4  * *
5  * Copyright (c) 2004 moneta, CERN/PH-SFT *
6  * *
7  * This library is free software; you can redistribute it and/or *
8  * modify it under the terms of the GNU General Public License *
9  * as published by the Free Software Foundation; either version 2 *
10  * of the License, or (at your option) any later version. *
11  * *
12  * This library is distributed in the hope that it will be useful, *
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
15  * General Public License for more details. *
16  * *
17  * You should have received a copy of the GNU General Public License *
18  * along with this library (see file COPYING); if not, write *
19  * to the Free Software Foundation, Inc., 59 Temple Place, Suite *
20  * 330, Boston, MA 02111-1307 USA, or contact the author. *
21  * *
22  **********************************************************************/
23 
24 // Header file for class GSL1DMinimizerWrapper
25 //
26 // Created by: moneta at Wed Dec 1 17:25:44 2004
27 //
28 // Last update: Wed Dec 1 17:25:44 2004
29 //
30 #ifndef ROOT_Math_GSL1DMinimizerWrapper
31 #define ROOT_Math_GSL1DMinimizerWrapper
32 
33 #include "gsl/gsl_min.h"
34 
35 
36 namespace ROOT {
37 
38 namespace Math {
39 
40 /**
41  wrapper class for gsl_min_fminimizer structure
42  @ingroup Min1D
43 */
45 
46 public:
47  GSL1DMinimizerWrapper( const gsl_min_fminimizer_type * T)
48  {
49  fMinimizer = gsl_min_fminimizer_alloc(T);
50  }
52  gsl_min_fminimizer_free(fMinimizer);
53  }
54 
55 private:
56 // usually copying is non trivial, so we make this unaccessible
59 
60 public:
61 
62  gsl_min_fminimizer * Get() const {
63  return fMinimizer;
64  }
65 
66 
67 private:
68 
69  gsl_min_fminimizer * fMinimizer;
70 
71 };
72 
73 } // end namespace Math
74 } // end namespace ROOT
75 
76 #endif /* ROOT_Math_GSL1DMinimizerWrapper */
GSL1DMinimizerWrapper & operator=(const GSL1DMinimizerWrapper &)
GSL1DMinimizerWrapper(const gsl_min_fminimizer_type *T)
gsl_min_fminimizer * Get() const
TTree * T
wrapper class for gsl_min_fminimizer structure