| 69 |
|
|
| 70 |
|
|
| 71 |
|
|
| 72 |
/// set value and name |
/// set value and name (unlimited parameter) |
| 73 |
void Set(const std::string & name, double value, double step, double lower = 1, double upper = -1) { |
void Set(const std::string & name, double value, double step) { |
| 74 |
|
SetName(name); |
| 75 |
|
SetValue(value); |
| 76 |
|
SetStepSize(step); |
| 77 |
|
} |
| 78 |
|
|
| 79 |
|
/// set a limited parameter |
| 80 |
|
void Set(const std::string & name, double value, double step, double lower, double upper ) { |
| 81 |
SetName(name); |
SetName(name); |
| 82 |
SetValue(value); |
SetValue(value); |
| 83 |
SetStepSize(step); |
SetStepSize(step); |
| 102 |
public: |
public: |
| 103 |
|
|
| 104 |
/// return parameter value |
/// return parameter value |
| 105 |
double Value() { return fValue; } |
double Value() const { return fValue; } |
| 106 |
/// return step size |
/// return step size |
| 107 |
double StepSize() { return fStepSize; } |
double StepSize() const { return fStepSize; } |
| 108 |
/// return lower limit value |
/// return lower limit value |
| 109 |
double LowerLimit() const {return fLowerLimit;} |
double LowerLimit() const {return fLowerLimit;} |
| 110 |
/// return lower limit value |
/// return lower limit value |
| 120 |
/// check if is double bound (upper AND lower limit) |
/// check if is double bound (upper AND lower limit) |
| 121 |
bool IsDoubleBound() const { return fHasLowerLimit && fHasUpperLimit; } |
bool IsDoubleBound() const { return fHasLowerLimit && fHasUpperLimit; } |
| 122 |
/// return name |
/// return name |
| 123 |
const std::string & Name() { return fName; } |
const std::string & Name() const { return fName; } |
| 124 |
|
|
| 125 |
/** interaction **/ |
/** interaction **/ |
| 126 |
|
|