11 for (
unsigned int t=0;
t< pls.size(); ++
t){
12 std::vector <boost::shared_ptr<TFormula> >
temp;
13 for (
unsigned int i=0;
i< (pls[
t].formulas()).
size(); ++
i){
15 boost::shared_ptr<TFormula>
tt(
new TFormula(
"rr",tmp.
formulas()[
i].c_str()));
19 compiledFormulas_.push_back(temp);
27 if (! isInPayload(r,p)) {
throw cms::Exception(
"MalformedPerfPayload") <<
"Requested performance data not available!"; }
29 bool ok = isOk(p,region);
30 if (ok ==
false) {
throw cms::Exception(
"MalformedPerfPayload") <<
"Requested variable does not match internal structure!"; }
32 return compiledFormulas_[region][resultPos(r)];
47 const boost::shared_ptr<TFormula>&
formula = getFormula(r,p);
51 std::vector<BinningVariables::BinningVariablesType>
t = myBinning();
56 for (std::vector<BinningVariables::BinningVariablesType>::const_iterator it = t.begin(); it != t.end();++it, ++
i){
65 return formula->EvalPar(values);
74 for (
unsigned int ti=0; ti< pls.size(); ++ti){
76 std::vector<BinningVariables::BinningVariablesType>
t = myBinning();
77 for (std::vector<BinningVariables::BinningVariablesType>::const_iterator it = t.begin(); it != t.end();++it){
83 int pos = limitPos(*it);
84 std::pair<float, float> limits = (pls[ti].limits())[pos];
85 if (v<limits.first || v>limits.second) result=
false;
99 unsigned int whocares;
100 if ( ! isOk(point,whocares))
return false;
109 cout <<
"Warning: result not available!" << endl;
113 const boost::shared_ptr<TFormula>&
formula = getFormula(res, point);
114 unsigned int whichone;
115 isOk(point,whichone);
116 cout <<
"-- Formula: " << formula->GetExpFormula(
"p") << endl;
119 std::vector<BinningVariables::BinningVariablesType>
t = myBinning();
121 for (std::vector<BinningVariables::BinningVariablesType>::const_iterator it = t.begin(); it != t.end();++it){
122 int pos = limitPos(*it);
123 std::pair<float, float> limits = (pls[whichone].limits())[pos];
124 cout <<
" Variable: " << *it <<
" with limits: " <<
"from: " << limits.first <<
" to: " << limits.second << endl;
bool isKeyAvailable(BinningVariables::BinningVariablesType)
float value(BinningVariables::BinningVariablesType)
#define TYPELOOKUP_DATA_REG(_dataclass_)
std::vector< std::vector< double > > tmp
tuple size
Write out results.
*vegas h *****************************************************used in the default bin number in original ***version of VEGAS is ***a higher bin number might help to derive a more precise ***grade subtle point