7 const std::string &ParameterType,
double Min,
11 0,
false, Min, Max,
false,
false,
true);
15 const std::string &ParameterName,
double Min,
19 0,
false, Min, Max,
false,
false,
true);
23 const std::string ParameterName,
double Value) {
26 Value,
false, -999, -999,
true,
false,
false);
30 const std::string ParameterName,
double Value) {
31 if ((
int)Value == -999) {
34 -999,
true, -999, -999,
false,
true,
false);
38 Value,
true, -999, -999,
true,
true,
false);
43 const std::string ParameterName,
double Value) {
44 if ((
int)Value == -999) {
47 -999,
false, -999, -999,
false,
true,
false);
51 Value,
false, -999, -999,
false,
true,
false);
56 const std::string &KeyType,
const std::string &KeyValue,
57 double Value,
bool Fix,
double Min,
double Max,
58 bool UpdateValue,
bool UpdateFix,
bool UpdateRange) {
60 for (
auto &Node : Tree.get_child(
"")) {
62 if (Node.first !=
"Parameter") {
63 if (Node.first !=
"DecayParticle" && Node.first !=
"DecayProducts" &&
64 Node.first !=
"CanonicalSum") {
66 UpdateValue, UpdateFix, UpdateRange);
72 if (KeyValue != Node.second.get<std::string>(
"<xmlattr>." + KeyType)) {
76 Node.second.put(
"Value", Value);
78 Node.second.put(
"Fix", Fix);
80 Node.second.put(
"Min", Min);
81 Node.second.put(
"Max", Max);
88 for (
const auto &FitPar : FitParameters) {
89 updateParameter(Tree,
"Name", FitPar.Name, FitPar.Value, FitPar.IsFixed,
90 FitPar.Bounds.first, FitPar.Bounds.second,
true,
true,
This file contains functions which will update parameters' value, range etc.
std::vector< FitParameter< double > > FitParameterList