Logo ROOT  
Reference Guide
MnFcn.cxx
Go to the documentation of this file.
1 // @(#)root/minuit2:$Id$
2 // Authors: M. Winkler, F. James, L. Moneta, A. Zsenei 2003-2005
3 
4 /**********************************************************************
5  * *
6  * Copyright (c) 2005 LCG ROOT Math team, CERN/PH-SFT *
7  * *
8  **********************************************************************/
9 
10 #include "Minuit2/MnFcn.h"
11 #include "Minuit2/FCNBase.h"
13 
14 namespace ROOT {
15 
16  namespace Minuit2 {
17 
18 
19 MnFcn::~MnFcn() {
20  // std::cout<<"Total number of calls to FCN: "<<fNumCall<<std::endl;
21 }
22 
23 double MnFcn::operator()(const MnAlgebraicVector& v) const {
24  // evaluate FCN converting from from MnAlgebraicVector to std::vector
25  fNumCall++;
26  return fFCN(MnVectorTransform()(v));
27 }
28 
29 // double MnFcn::operator()(const std::vector<double>& par) const {
30 // return fFCN(par);
31 // }
32 
33 double MnFcn::ErrorDef() const {return fFCN.Up();}
34 
35 double MnFcn::Up() const {return fFCN.Up();}
36 
37  } // namespace Minuit2
38 
39 } // namespace ROOT
ROOT::Minuit2::MnFcn::~MnFcn
virtual ~MnFcn()
Definition: MnFcn.cxx:27
ROOT::Minuit2::MnFcn::fNumCall
int fNumCall
Definition: MnFcn.h:65
ROOT::Minuit2::MnFcn::fFCN
const FCNBase & fFCN
Definition: MnFcn.h:61
MnVectorTransform.h
v
@ v
Definition: rootcling_impl.cxx:3635
MnFcn.h
ROOT::Minuit2::MnAlgebraicVector
LAVector MnAlgebraicVector
Definition: MnMatrix.h:37
ROOT::Minuit2::MnFcn::Up
double Up() const
Definition: MnFcn.cxx:43
ROOT::Minuit2::FCNBase::Up
virtual double Up() const =0
Error definition of the function.
ROOT::Minuit2::MnFcn::operator()
virtual double operator()(const MnAlgebraicVector &) const
Definition: MnFcn.cxx:31
FCNBase.h
ROOT
VSD Structures.
Definition: StringConv.hxx:21
ROOT::Minuit2::MnFcn::ErrorDef
double ErrorDef() const
Definition: MnFcn.cxx:41