17 MnUserParameters::MnUserParameters(
const std::vector<double>& par,
const std::vector<double>& err) : fTransformation(par, err) {}
21 const std::vector<MinuitParameter>& MnUserParameters::Parameters()
const {
23 return fTransformation.Parameters();
26 std::vector<double> MnUserParameters::Params()
const {
28 return fTransformation.Params();
31 std::vector<double> MnUserParameters::Errors()
const {
33 return fTransformation.Errors();
36 const MinuitParameter& MnUserParameters::Parameter(
unsigned int n)
const {
38 return fTransformation.Parameter(n);
41 bool MnUserParameters::Add(
const std::string & name,
double val,
double err) {
44 return fTransformation.Add(name, val, err);
47 bool MnUserParameters::Add(
const std::string & name,
double val,
double err,
double low,
double up) {
50 return fTransformation.Add(name, val, err, low, up);
53 bool MnUserParameters::Add(
const std::string & name,
double val) {
56 return fTransformation.Add(name, val);
59 void MnUserParameters::Fix(
unsigned int n) {
61 fTransformation.Fix(n);
64 void MnUserParameters::Release(
unsigned int n) {
66 fTransformation.Release(n);
69 void MnUserParameters::RemoveLimits(
unsigned int n) {
71 fTransformation.RemoveLimits(n);
74 void MnUserParameters::SetValue(
unsigned int n,
double val) {
76 fTransformation.SetValue(n, val);
79 void MnUserParameters::SetError(
unsigned int n,
double err) {
81 fTransformation.SetError(n, err);
84 void MnUserParameters::SetLimits(
unsigned int n,
double low,
double up) {
86 fTransformation.SetLimits(n, low, up);
89 void MnUserParameters::SetUpperLimit(
unsigned int n,
double up) {
91 fTransformation.SetUpperLimit(n, up);
94 void MnUserParameters::SetLowerLimit(
unsigned int n,
double low) {
96 fTransformation.SetLowerLimit(n, low);
99 void MnUserParameters::SetName(
unsigned int n,
const std::string & name) {
101 fTransformation.SetName(n, name);
105 double MnUserParameters::Value(
unsigned int n)
const {
107 return fTransformation.Value(n);
110 double MnUserParameters::Error(
unsigned int n)
const {
112 return fTransformation.Error(n);
117 void MnUserParameters::Fix(
const std::string & name) {
122 void MnUserParameters::Release(
const std::string & name) {
124 Release(Index(name));
127 void MnUserParameters::SetValue(
const std::string & name,
double val) {
129 SetValue(Index(name), val);
132 void MnUserParameters::SetError(
const std::string & name,
double err) {
134 SetError(Index(name), err);
137 void MnUserParameters::SetLimits(
const std::string & name,
double low,
double up) {
139 SetLimits(Index(name), low, up);
142 void MnUserParameters::SetUpperLimit(
const std::string & name,
double up) {
144 fTransformation.SetUpperLimit(Index(name), up);
147 void MnUserParameters::SetLowerLimit(
const std::string & name,
double low) {
149 fTransformation.SetLowerLimit(Index(name), low);
152 void MnUserParameters::RemoveLimits(
const std::string & name) {
154 RemoveLimits(Index(name));
157 double MnUserParameters::Value(
const std::string & name)
const {
159 return Value(Index(name));
162 double MnUserParameters::Error(
const std::string & name)
const {
164 return Error(Index(name));
167 unsigned int MnUserParameters::Index(
const std::string & name)
const {
169 return fTransformation.Index(name);
172 const std::string & MnUserParameters::GetName(
unsigned int n)
const {
174 return fTransformation.GetName(n);
176 const char* MnUserParameters::Name(
unsigned int n)
const {
178 return fTransformation.Name(n);
181 const MnMachinePrecision& MnUserParameters::Precision()
const {
183 return fTransformation.Precision();