ComPWA
Common Partial-Wave-Analysis Framework
UpdatePTreeParameter.hpp
Go to the documentation of this file.
1 // Copyright (c) 2019 The ComPWA Team.
2 // This file is part of the ComPWA framework, check
3 // https://github.com/ComPWA/ComPWA/license.txt for details.
4 
5 //===----------------------------------------------------------------------===//
11 //===----------------------------------------------------------------------===//
12 #ifndef COMPWA_TOOLS_UPDATE_PTREE_PARAMETER_HPP_
13 #define COMPWA_TOOLS_UPDATE_PTREE_PARAMETER_HPP_
14 
15 #include "Core/FitParameter.hpp"
16 
17 #include <boost/property_tree/ptree.hpp>
18 
19 #include <string>
20 #include <vector>
21 
22 namespace ComPWA {
23 namespace Tools {
24 
31 void updateParameterRangeByType(boost::property_tree::ptree &Tree,
32  const std::string &ParameterType, double Min,
33  double Max);
34 
40 void updateParameterRangeByName(boost::property_tree::ptree &Tree,
41  const std::string &ParameterName, double Min,
42  double Max);
43 
48 void updateParameterValue(boost::property_tree::ptree &Tree,
49  const std::string ParameterName, double Value);
50 
55 void fixParameter(boost::property_tree::ptree &Tree,
56  const std::string ParameterName, double Value = -999);
57 
62 void releaseParameter(boost::property_tree::ptree &Tree,
63  const std::string ParameterName, double Value = -999);
64 
77 void updateParameter(boost::property_tree::ptree &Tree,
78  const std::string &KeyType, const std::string &KeyValue,
79  double Value, bool Fix, double Min, double Max,
80  bool UpdateValue, bool UpdateFix, bool UpdateRange);
81 
88 void updateParameter(boost::property_tree::ptree &Tree,
89  const FitParameterList &FitParameters);
90 
91 } // end namespace Tools
92 } // end namespace ComPWA
93 
94 #endif
void updateParameterRangeByName(boost::property_tree::ptree &Tree, const std::string &ParameterName, double Min, double Max)
Update range of specified parameters of a ptree.
void updateParameter(boost::property_tree::ptree &Tree, const std::string &KeyType, const std::string &KeyValue, double Value, bool Fix, double Min, double Max, bool UpdateValue, bool UpdateFix, bool UpdateRange)
Update specified parameters of a ptree.
std::vector< FitParameter< double > > FitParameterList
void fixParameter(boost::property_tree::ptree &Tree, const std::string ParameterName, double Value)
Fix specified parameters of a ptree.
void updateParameterValue(boost::property_tree::ptree &Tree, const std::string ParameterName, double Value)
Update value of specified parameters of a ptree.
void updateParameterRangeByType(boost::property_tree::ptree &Tree, const std::string &ParameterType, double Min, double Max)
Update range of specified parameters of a ptree.
void releaseParameter(boost::property_tree::ptree &Tree, const std::string ParameterName, double Value)
Release specified parameters of a ptree.