3#include "CLHEP/GenericFunctions/Parameter.hh"
11 _name(name),_value(value),_lowerLimit(lowerLimit),_upperLimit(upperLimit),_sourceParameter(NULL)
19 return o << p.
getName() <<
"\t" <<
" value = "
20 << p.
getValue() <<
"\t" <<
" limits: ["
31 if (_sourceParameter) {
41 if (_sourceParameter) {
51 if (_sourceParameter) {
61 if (_sourceParameter) {
63 <<
"Warning: Parameter is connected. Function has no effect."
73 if (_sourceParameter) {
75 <<
"Warning: Parameter is connected. Function has no effect."
79 _lowerLimit=lowerLimit;
85 if (_sourceParameter) {
87 <<
"Warning: Parameter is connected. Function has no effect."
91 _upperLimit=upperLimit;
98 if (sp && sp->_sourceParameter) {
102 _sourceParameter = source;
110 _value(right._value),
111 _lowerLimit(right._lowerLimit),
112 _upperLimit(right._upperLimit),
113 _sourceParameter(right._sourceParameter)
118 if (
this != &right) {
121 _lowerLimit=right._lowerLimit;
122 _upperLimit=right._upperLimit;
123 _sourceParameter=right._sourceParameter;
#define PARAMETER_OBJECT_IMP(classname)
virtual double getValue() const =0
virtual Parameter * parameter()
const Parameter & operator=(const Parameter &right)
const std::string & getName() const
void setLowerLimit(double lowerLimit)
virtual double getValue() const
void connectFrom(const AbsParameter *source)
double getLowerLimit() const
void setUpperLimit(double upperLimit)
double getUpperLimit() const
Parameter(std::string name, double value, double lowerLimit=-1e100, double upperLimit=1e100)
void setValue(double value)
std::ostream & operator<<(std::ostream &os, const Argument &a)