Logo ROOT  
Reference Guide
MinimumParameters.h
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 #ifndef ROOT_Minuit2_MinimumParameters
11 #define ROOT_Minuit2_MinimumParameters
12 
15 
16 namespace ROOT {
17 
18  namespace Minuit2 {
19 
20 
21 class MinimumParameters {
22 
23 public:
24 
25  MinimumParameters(unsigned int n, double fval = 0) :
26  fData(MnRefCountedPointer<BasicMinimumParameters>(new BasicMinimumParameters(n,fval))) {}
27 
28  /** takes the Parameter vector */
29  MinimumParameters(const MnAlgebraicVector& avec, double fval) :
31 
32  /** takes the Parameter vector plus step size x1 - x0 = dirin */
33  MinimumParameters(const MnAlgebraicVector& avec, const MnAlgebraicVector& dirin, double fval) :
35 
37 
38  MinimumParameters(const MinimumParameters& par) : fData(par.fData) {}
39 
41  fData = par.fData;
42  return *this;
43  }
44 
45  const MnAlgebraicVector& Vec() const {return fData->Vec();}
46  const MnAlgebraicVector& Dirin() const {return fData->Dirin();}
47  double Fval() const {return fData->Fval();}
48  bool IsValid() const {return fData->IsValid();}
49  bool HasStepSize() const {return fData->HasStepSize();}
50 
51 private:
52 
54 };
55 
56  } // namespace Minuit2
57 
58 } // namespace ROOT
59 
60 #endif // ROOT_Minuit2_MinimumParameters
n
const Int_t n
Definition: legend1.C:16
ROOT::Minuit2::BasicMinimumParameters
Definition: BasicMinimumParameters.h:32
ROOT::Minuit2::LAVector
Definition: LAVector.h:41
ROOT::Minuit2::MinimumParameters::HasStepSize
bool HasStepSize() const
Definition: MinimumParameters.h:61
ROOT::Minuit2::MinimumParameters::~MinimumParameters
~MinimumParameters()
Definition: MinimumParameters.h:48
ROOT::Minuit2::MinimumParameters::Vec
const MnAlgebraicVector & Vec() const
Definition: MinimumParameters.h:57
MnRefCountedPointer.h
BasicMinimumParameters.h
ROOT::Minuit2::MinimumParameters::fData
MnRefCountedPointer< BasicMinimumParameters > fData
Definition: MinimumParameters.h:65
ROOT::Minuit2::MinimumParameters::Fval
double Fval() const
Definition: MinimumParameters.h:59
ROOT::Minuit2::MinimumParameters
Definition: MinimumParameters.h:29
ROOT::Minuit2::MinimumParameters::operator=
MinimumParameters & operator=(const MinimumParameters &par)
Definition: MinimumParameters.h:52
ROOT::Minuit2::MinimumParameters::Dirin
const MnAlgebraicVector & Dirin() const
Definition: MinimumParameters.h:58
ROOT::Minuit2::MnRefCountedPointer
Definition: MnRefCountedPointer.h:28
ROOT::Minuit2::MinimumParameters::IsValid
bool IsValid() const
Definition: MinimumParameters.h:60
ROOT::Minuit2::MinimumParameters::MinimumParameters
MinimumParameters(unsigned int n, double fval=0)
Definition: MinimumParameters.h:37
ROOT
VSD Structures.
Definition: StringConv.hxx:21