54 for( std::map< std::string, double >::iterator itr =
fParamValsToSet.begin();
57 std::string param = itr->first;
58 double val = itr->second;
63 std::cout <<
"Error: Trying to set variable: " << var
64 <<
" to a specific value in creation of asimov dataset: " <<
fName
65 <<
" but this variable doesn't appear to exist in the workspace"
71 double inRange = var->
inRange(val,
nullptr);
73 std::cout <<
"Error: Attempting to set variable: " << var
74 <<
" to value: " << val <<
", however it appears"
75 <<
" that this is not withn the variable's range: "
82 std::cout <<
"Configuring Asimov Dataset: Setting " << param
83 <<
" = " << val << std::endl;
92 for( std::map< std::string, bool >::iterator itr =
fParamsToFix.begin();
95 std::string param = itr->first;
96 bool isConstant = itr->second;
101 std::cout <<
"Error: Trying to set variable: " << var
102 <<
" constant in creation of asimov dataset: " <<
fName
103 <<
" but this variable doesn't appear to exist in the workspace"
108 std::cout <<
"Configuring Asimov Dataset: Setting " << param
109 <<
" to constant " << std::endl;
void setConstant(bool value=true)
virtual double getMax(const char *name=nullptr) const
Get maximum of currently defined range.
virtual double getMin(const char *name=nullptr) const
Get minimum of currently defined range.
bool inRange(const char *name) const override
Check if current value is inside range with given name.
Variable that can be changed from the outside.
void setVal(double value) override
Set value of variable to 'value'.
std::map< std::string, double > fParamValsToSet
void ConfigureWorkspace(RooWorkspace *)
std::map< std::string, bool > fParamsToFix
Persistable container for RooFit projects.
RooRealVar * var(RooStringView name) const
Retrieve real-valued variable (RooRealVar) with given name. A null pointer is returned if not found.