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 
14 
15 #include <memory>
16 
17 namespace ROOT {
18 
19 namespace Minuit2 {
20 
22 
23 public:
24  MinimumParameters(unsigned int n, double fval = 0) : fData(std::make_shared<BasicMinimumParameters>(n, fval)) {}
25 
26  /** takes the Parameter vector */
27  MinimumParameters(const MnAlgebraicVector &avec, double fval)
28  : fData(std::make_shared<BasicMinimumParameters>(avec, fval))
29  {
30  }
31 
32  /** takes the Parameter vector plus step size x1 - x0 = dirin */
33  MinimumParameters(const MnAlgebraicVector &avec, const MnAlgebraicVector &dirin, double fval)
34  : fData(std::make_shared<BasicMinimumParameters>(avec, dirin, fval))
35  {
36  }
37 
38  const MnAlgebraicVector &Vec() const { return fData->Vec(); }
39  const MnAlgebraicVector &Dirin() const { return fData->Dirin(); }
40  double Fval() const { return fData->Fval(); }
41  bool IsValid() const { return fData->IsValid(); }
42  bool HasStepSize() const { return fData->HasStepSize(); }
43 
44 private:
45  std::shared_ptr<BasicMinimumParameters> fData;
46 };
47 
48 } // namespace Minuit2
49 
50 } // namespace ROOT
51 
52 #endif // ROOT_Minuit2_MinimumParameters
n
const Int_t n
Definition: legend1.C:16
ROOT::Minuit2::BasicMinimumParameters
Definition: BasicMinimumParameters.h:23
ROOT::Minuit2::LAVector
Definition: LAVector.h:32
ROOT::Minuit2::MinimumParameters::HasStepSize
bool HasStepSize() const
Definition: MinimumParameters.h:42
ROOT::Minuit2::MinimumParameters::Vec
const MnAlgebraicVector & Vec() const
Definition: MinimumParameters.h:38
BasicMinimumParameters.h
ROOT::Minuit2::MinimumParameters::Fval
double Fval() const
Definition: MinimumParameters.h:40
ROOT::Minuit2::MinimumParameters::MinimumParameters
MinimumParameters(const MnAlgebraicVector &avec, const MnAlgebraicVector &dirin, double fval)
takes the Parameter vector plus step size x1 - x0 = dirin
Definition: MinimumParameters.h:33
ROOT::Minuit2::MinimumParameters
Definition: MinimumParameters.h:21
ROOT::Minuit2::MinimumParameters::MinimumParameters
MinimumParameters(const MnAlgebraicVector &avec, double fval)
takes the Parameter vector
Definition: MinimumParameters.h:27
ROOT::Minuit2::MinimumParameters::Dirin
const MnAlgebraicVector & Dirin() const
Definition: MinimumParameters.h:39
ROOT::Minuit2::MinimumParameters::IsValid
bool IsValid() const
Definition: MinimumParameters.h:41
ROOT::Minuit2::MinimumParameters::fData
std::shared_ptr< BasicMinimumParameters > fData
Definition: MinimumParameters.h:45
ROOT::Minuit2::MinimumParameters::MinimumParameters
MinimumParameters(unsigned int n, double fval=0)
Definition: MinimumParameters.h:24
ROOT
tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tb...
Definition: EExecutionPolicy.hxx:4