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, NULL);
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;
virtual Double_t getMax(const char *name=0) const
Get maximum of currently defined range.
virtual Bool_t inRange(const char *name) const
Check if current value is inside range with given name.
void setConstant(Bool_t value=kTRUE)
virtual Double_t getMin(const char *name=0) const
Get miniminum of currently defined range.
RooRealVar represents a variable that can be changed from the outside.
virtual void setVal(Double_t value)
Set value of variable to 'value'.
std::map< std::string, double > fParamValsToSet
void ConfigureWorkspace(RooWorkspace *)
std::map< std::string, bool > fParamsToFix
The RooWorkspace is a persistable container for RooFit projects.
RooRealVar * var(const char *name) const
Retrieve real-valued variable (RooRealVar) with given name. A null pointer is returned if not found.