All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
IFuncMinimum.h
Go to the documentation of this file.
1 // $Id: IFuncMinimum.h,v 1.4 2005/01/10 14:35:09 mato Exp $
2 // =============================================================================
3 #ifndef GAUDIGSL_IFUNCMINIMUM_H
4 #define GAUDIGSL_IFUNCMINIMUM_H 1
5 // Include files
6 // from STL
7 #include <vector>
8 #include <string>
9 // from Gaudi
10 #include "GaudiKernel/IAlgTool.h"
11 
12 // forward declarations
13 namespace Genfun
14 {
15  class AbsFunction ;
16  class Argument ;
17 }
18 namespace CLHEP {
19  class HepSymMatrix ;
20 }
21 
29 class GAUDI_API IFuncMinimum: virtual public IAlgTool {
30 public:
33 
35  typedef Genfun::AbsFunction GenFunc ;
37  typedef Genfun::Argument Arg ;
39  typedef CLHEP::HepSymMatrix Covariance;
40 
42 
48  virtual StatusCode minimum( const GenFunc& fun ,
49  Arg& pars ) const = 0 ;
50 
58  virtual StatusCode minimum( const GenFunc& fun ,
59  Arg& pars ,
60  Covariance& covar ) const = 0 ;
61 
62 };
63 #endif // GAUDIGSL_IFUNCMINIMUM_H
DeclareInterfaceID(IAlgTool, 3, 0)
InterfaceID.
Genfun::Argument Arg
Argument of function "GenFunc" (.
Definition: IFuncMinimum.h:37
Interface file to find minimum of the function and compute covariance matrix (matrix of error) ...
Definition: IFuncMinimum.h:29
Genfun::AbsFunction GenFunc
Function which we minimize (.
Definition: IFuncMinimum.h:35
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:30
CLHEP::HepSymMatrix Covariance
Covariance matrix (matrix of error) (.
Definition: IFuncMinimum.h:39
double fun(const std::vector< double > &x)
Definition: PFuncTest.cpp:27
The interface implemented by the AlgTool base class.
Definition: IAlgTool.h:23
#define GAUDI_API
Definition: Kernel.h:108