11 for (std::vector<std::string>::const_iterator
formula = pl.formulas().begin();
formula != pl.formulas().end();
15 auto temp = std::make_shared<TFormula>(formulaUniqueName.c_str(),
formula->c_str(),
false);
26 if (!isInPayload(
r,
p)) {
28 <<
"Missing formula in conditions. Maybe code/conditions are inconsistent" << std::endl;
32 const TFormula*
formula = compiledFormulas_[resultPos(
r)].get();
36 std::vector<BinningVariables::BinningVariablesType>
t = myBinning();
41 for (std::vector<BinningVariables::BinningVariablesType>::const_iterator it =
t.begin(); it !=
t.end(); ++it, ++
i) {
50 std::vector<BinningVariables::BinningVariablesType>
t = myBinning();
52 for (std::vector<BinningVariables::BinningVariablesType>::const_iterator it =
t.begin(); it !=
t.end(); ++it) {
53 if (!
p.isKeyAvailable(*it))
55 float v =
p.value(*it);
56 int pos = limitPos(*it);
57 std::pair<float, float>
limits = (pl.limits())[
pos];
58 if (v < limits.first || v >
limits.second)
80 cout <<
"Warning: result not available!" << endl;
84 const TFormula*
formula = compiledFormulas_[resultPos(
res)].get();
85 cout <<
"-- Formula: " <<
formula->GetExpFormula(
"p") << endl;
88 std::vector<BinningVariables::BinningVariablesType>
t = myBinning();
90 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 = (pl.limits())[
pos];
93 cout <<
" Variable: " << *it <<
" with limits: "
94 <<
"from: " <<
limits.first <<
" to: " <<
limits.second << endl;