12 for (
unsigned int t = 0;
t < pls.size(); ++
t) {
13 std::vector<std::shared_ptr<TFormula> >
temp;
14 for (
unsigned int i = 0;
i < (pls[
t].formulas()).
size(); ++
i) {
17 std::shared_ptr<TFormula>
tt(
new TFormula(formulaUniqueName.c_str(), tmp.
formulas()[
i].c_str()));
21 compiledFormulas_.push_back(temp);
30 if (!isInPayload(r, p)) {
31 throw cms::Exception(
"MalformedPerfPayload") <<
"Requested performance data not available!";
34 bool ok = isOk(p, region);
36 throw cms::Exception(
"MalformedPerfPayload") <<
"Requested variable does not match internal structure!";
39 return compiledFormulas_[
region][resultPos(r)];
48 if (!isInPayload(r, p))
55 const std::shared_ptr<TFormula>&
formula = getFormula(r, p);
59 std::vector<BinningVariables::BinningVariablesType>
t = myBinning();
64 for (std::vector<BinningVariables::BinningVariablesType>::const_iterator it = t.begin(); it != t.end(); ++it, ++
i) {
73 return formula->EvalPar(values);
81 for (
unsigned int ti = 0; ti < pls.size(); ++ti) {
83 std::vector<BinningVariables::BinningVariablesType>
t = myBinning();
84 for (std::vector<BinningVariables::BinningVariablesType>::const_iterator it = t.begin(); it != t.end(); ++it) {
91 int pos = limitPos(*it);
92 std::pair<float, float>
limits = (pls[ti].limits())[pos];
93 if (v < limits.first || v > limits.second)
110 unsigned int whocares;
111 if (!isOk(point, whocares))
122 cout <<
"Warning: result not available!" << endl;
126 const std::shared_ptr<TFormula>&
formula = getFormula(res, point);
127 unsigned int whichone;
128 isOk(point, whichone);
129 cout <<
"-- Formula: " << formula->GetExpFormula(
"p") << endl;
132 std::vector<BinningVariables::BinningVariablesType>
t = myBinning();
134 for (std::vector<BinningVariables::BinningVariablesType>::const_iterator it = t.begin(); it != t.end(); ++it) {
135 int pos = limitPos(*it);
136 std::pair<float, float>
limits = (pls[whichone].limits())[pos];
137 cout <<
" Variable: " << *it <<
" with limits: "
138 <<
"from: " << limits.first <<
" to: " << limits.second << endl;
bool isKeyAvailable(BinningVariables::BinningVariablesType)
float value(BinningVariables::BinningVariablesType)
#define TYPELOOKUP_DATA_REG(_dataclass_)
std::string createGlobalIdentifier(bool binary=false)
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