FunctionParameter.cxx
Go to the documentation of this file.
1 /* -*- mode: c++ -*- */
2 
14 #include "FunctionParameter.h"
15 
16 namespace hippodraw {
17 
19 FunctionParameter ( const std::string & name,
20  double value,
21  double error,
22  bool fixed,
23  double low_limit,
24  double high_limit,
25  bool has_low,
26  bool has_high )
27  : m_name ( name ),
28  m_value ( value ),
29  m_error ( error ),
30  m_lower_limit ( low_limit ),
31  m_upper_limit ( high_limit ),
32  m_fixed ( fixed ),
33  m_has_lower ( has_low ),
34  m_has_upper ( has_high )
35 {
36 }
37 
38 const std::string &
40 name () const
41 {
42  return m_name;
43 }
44 
45 double
47 value () const
48 {
49  return m_value;
50 }
51 
52 double
54 error () const
55 {
56  return m_error;
57 }
58 
59 bool
61 isFixed () const
62 {
63  return m_fixed;
64 }
65 
66 double
68 lowerLimit () const
69 {
70  return m_lower_limit;
71 }
72 
73 double
75 upperLimit () const
76 {
77  return m_upper_limit;
78 }
79 
80 bool
82 hasLowerLimit () const
83 {
84  return m_has_lower;
85 }
86 
87 
88 bool
90 hasUpperLimit () const
91 {
92  return m_has_upper;
93 }
94 
95 } // namespace hippodraw
96 
double lowerLimit() const
Returns the lower limit, if any on the parameter.
bool m_has_upper
The has uppper limit flag.
bool m_has_lower
The has low limit flag.
bool hasLowerLimit() const
Returns true if lower limit on parameters being used.
double m_upper_limit
the upper limit allowed during fitting.
double m_error
The error on the value after fitting.
const std::string & name() const
Returns the name of the parameter.
FunctionParameter class interface.
FunctionParameter(const std::string &name, double value, double error, bool fixed, double low_limit, double high_limit, bool has_low, bool has_high)
The constructor.
bool hasUpperLimit() const
Returns true if upper limit on parameters being used.
double error() const
Returns the error on the value of the parameter.
double value() const
Returns the value of the parameter.
double m_value
The value of the parameter.
bool m_fixed
The fixed flag used by the minimizer.
std::string m_name
The name of the parameter.
double m_lower_limit
The lower limit allowed during fitting.
bool isFixed() const
Returns the fixed flag.
double upperLimit() const
Returns the upper limit, if any on the parameter.

Generated for HippoDraw Class Library by doxygen