58 for( std::map< std::string, double >::iterator itr =
fParamValsToSet.begin();
61 std::string param = itr->first;
62 double val = itr->second;
67 std::cout <<
"Error: Trying to set variable: " << var
68 <<
" to a specific value in creation of asimov dataset: " <<
fName 69 <<
" but this variable doesn't appear to exist in the workspace" 75 double inRange = var->
inRange(val, NULL);
77 std::cout <<
"Error: Attempting to set variable: " << var
78 <<
" to value: " << val <<
", however it appears" 79 <<
" that this is not withn the variable's range: " 86 std::cout <<
"Configuring Asimov Dataset: Setting " << param
87 <<
" = " << val << std::endl;
96 for( std::map< std::string, bool >::iterator itr =
fParamsToFix.begin();
99 std::string param = itr->first;
100 bool isConstant = itr->second;
105 std::cout <<
"Error: Trying to set variable: " << var
106 <<
" constant in creation of asimov dataset: " <<
fName 107 <<
" but this variable doesn't appear to exist in the workspace" 112 std::cout <<
"Configuring Asimov Dataset: Setting " << param
113 <<
" to constant " << std::endl;
virtual Double_t getMin(const char *name=0) const
virtual Double_t getMax(const char *name=0) const
void ConfigureWorkspace(RooWorkspace *)
RooRealVar represents a fundamental (non-derived) real valued object.
std::map< std::string, double > fParamValsToSet
virtual void setVal(Double_t value)
Set value of variable to 'value'.
void setConstant(Bool_t value=kTRUE)
std::map< std::string, bool > fParamsToFix
RooRealVar * var(const char *name) const
Retrieve real-valued variable (RooRealVar) with given name. A null pointer is returned if not found...
virtual Bool_t inRange(const char *name) const
Check if current value is inside range with given name.
The RooWorkspace is a persistable container for RooFit projects.