5 #include "boost/format.hpp"
14 range_u_(std::numeric_limits<double>::max()),
15 range_d_(std::numeric_limits<double>::lowest()),
23 swap(first.name_, second.name_);
24 swap(first.val_, second.val_);
25 swap(first.err_u_, second.err_u_);
26 swap(first.err_d_, second.err_d_);
27 swap(first.range_u_, second.range_u_);
28 swap(first.range_d_, second.range_d_);
29 swap(first.frozen_, second.frozen_);
30 swap(first.vars_, second.vars_);
31 swap(first.groups_, second.groups_);
39 range_u_(other.range_u_),
40 range_d_(other.range_d_),
41 frozen_(other.frozen_),
43 groups_(other.groups_) {
51 range_u_(std::numeric_limits<double>::max()),
52 range_d_(std::numeric_limits<double>::lowest()),
64 (boost::format(
"%-70s %-10.4f %-9.4f %-7.4f %-6s %s")
65 %
"name" %
"value" %
"error_d" %
"error_u" %
"frozen" %
"groups").str();
66 std::string div(line.length(),
'-');
67 out << div << std::endl;
68 out << line << std::endl;
69 out << div << std::endl;
74 std::string grps =
"";
76 unsigned n = val.
groups().size();
77 for (
auto it = val.
groups().begin(); i < n; ++it, ++i) {
84 out << boost::format(
"%-70s %-10.4f %-9.4f %-7.4f %-6i %s")
std::set< std::string > & groups()
static std::ostream & PrintHeader(std::ostream &out)
friend void swap(Parameter &first, Parameter &second)
std::string const & name() const
Parameter & operator=(Parameter other)
std::ostream & operator<<(std::ostream &out, HistMapping const &val)
void swap(Parameter &first, Parameter &second)
void swap(CombineHarvester &first, CombineHarvester &second)