1 #ifndef CombineTools_Parameter_h
2 #define CombineTools_Parameter_h
7 #include "RooRealVar.h"
21 std::string
const&
name()
const {
return name_; }
26 for (
unsigned i = 0; i < vars_.size(); ++i) {
27 vars_[i]->setVal(
val);
31 double val()
const {
return val_; }
34 double err_u()
const {
return err_u_; }
37 double err_d()
const {
return err_d_; }
40 double range_u()
const {
return range_u_; }
43 double range_d()
const {
return range_d_; }
51 bool frozen()
const {
return frozen_; }
53 std::vector<RooRealVar *> &
vars() {
return vars_; }
54 std::set<std::string> &
groups() {
return groups_; }
57 static std::ostream&
PrintHeader(std::ostream &out);
67 std::vector<RooRealVar *> vars_;
68 std::set<std::string> groups_;
void set_frozen(bool const &frozen)
std::set< std::string > & groups()
void set_err_u(double const &err_u)
void set_err_d(double const &err_d)
friend std::ostream & operator<<(std::ostream &out, Parameter &val)
void set_name(std::string const &name)
std::vector< RooRealVar * > & vars()
static std::ostream & PrintHeader(std::ostream &out)
void set_range(double const &range_d, double const &range_u)
void set_range_u(double const &range_u)
void set_val(double const &val)
friend void swap(Parameter &first, Parameter &second)
std::string const & name() const
void set_range_d(double const &range_d)
Parameter & operator=(Parameter other)