6 #include <boost/uuid/uuid.hpp> 7 #include <boost/uuid/uuid_generators.hpp> 8 #include <boost/uuid/uuid_io.hpp> 9 #include <boost/lexical_cast.hpp> 15 boost::uuids::random_generator
gen;
17 for( std::vector<std::string>::const_iterator
formula = pl.formulas().begin();
formula != pl.formulas().end(); ++
formula ) {
19 const auto formulaUniqueName = boost::lexical_cast<
std::string>(uniqueFormulaId);
21 auto temp = std::make_shared<TFormula>(formulaUniqueName.c_str(),
formula->c_str(),
false);
23 compiledFormulas_.emplace_back(
std::move(temp));
33 if ( ! isInPayload(r,p) ) {
34 edm::LogError(
"PerformancePayloadFromTFormula") <<
"Missing formula in conditions. Maybe code/conditions are inconsistent" << std::endl;
38 const TFormula*
formula = compiledFormulas_[resultPos(r)].get();
42 std::vector<BinningVariables::BinningVariablesType>
t = myBinning();
47 for (std::vector<BinningVariables::BinningVariablesType>::const_iterator it = t.begin(); it != t.end();++it, ++
i){
51 return formula->EvalPar(values);
56 std::vector<BinningVariables::BinningVariablesType>
t = myBinning();
58 for (std::vector<BinningVariables::BinningVariablesType>::const_iterator it = t.begin(); it != t.end();++it){
61 int pos = limitPos(*it);
62 std::pair<float, float> limits = (pl.limits())[pos];
63 if (v<limits.first || v>limits.second)
return false;
72 if ( ! isOk(point))
return false;
81 cout <<
"Warning: result not available!" << endl;
87 compiledFormulas_[resultPos(res)].get();
88 cout <<
"-- Formula: " << formula->GetExpFormula(
"p") << endl;
91 std::vector<BinningVariables::BinningVariablesType>
t = myBinning();
93 for (std::vector<BinningVariables::BinningVariablesType>::const_iterator it = t.begin(); it != t.end();++it){
94 int pos = limitPos(*it);
95 std::pair<float, float> limits = (pl.limits())[pos];
96 cout <<
" Variable: " << *it <<
" with limits: " <<
"from: " << limits.first <<
" to: " << limits.second << endl;
bool isKeyAvailable(BinningVariables::BinningVariablesType)
float value(BinningVariables::BinningVariablesType)
def gen(fragment, howMuch)
Production test section ####.
#define TYPELOOKUP_DATA_REG(_dataclass_)
*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