5 #include <boost/uuid/uuid.hpp>
6 #include <boost/uuid/uuid_generators.hpp>
7 #include <boost/uuid/uuid_io.hpp>
8 #include <boost/lexical_cast.hpp>
14 boost::uuids::random_generator
gen;
16 for( std::vector<std::string>::const_iterator
formula = pl.formulas().begin();
formula != pl.formulas().end(); ++
formula ) {
18 const auto formulaUniqueName = boost::lexical_cast<
std::string>(uniqueFormulaId);
19 boost::shared_ptr<TFormula>
temp(
new TFormula(formulaUniqueName.c_str(),
formula->c_str()));
21 compiledFormulas_.push_back(temp);
34 const boost::shared_ptr<TFormula>&
formula = compiledFormulas_[resultPos(r)];
38 std::vector<BinningVariables::BinningVariablesType>
t = myBinning();
43 for (std::vector<BinningVariables::BinningVariablesType>::const_iterator it = t.begin(); it != t.end();++it, ++
i){
52 return formula->EvalPar(values);
57 std::vector<BinningVariables::BinningVariablesType>
t = myBinning();
59 for (std::vector<BinningVariables::BinningVariablesType>::const_iterator it = t.begin(); it != t.end();++it){
62 int pos = limitPos(*it);
63 std::pair<float, float> limits = (pl.limits())[pos];
64 if (v<limits.first || v>limits.second)
return false;
73 if ( ! isOk(point))
return false;
82 cout <<
"Warning: result not available!" << endl;
87 const boost::shared_ptr<TFormula>&
formula =
88 compiledFormulas_[resultPos(res)];
89 cout <<
"-- Formula: " << formula->GetExpFormula(
"p") << endl;
92 std::vector<BinningVariables::BinningVariablesType>
t = myBinning();
94 for (std::vector<BinningVariables::BinningVariablesType>::const_iterator it = t.begin(); it != t.end();++it){
95 int pos = limitPos(*it);
96 std::pair<float, float> limits = (pl.limits())[pos];
97 cout <<
" Variable: " << *it <<
" with limits: " <<
"from: " << limits.first <<
" to: " << limits.second << endl;
bool isKeyAvailable(BinningVariables::BinningVariablesType)
def gen
run2 Cosmic #### Run 256259 @ 0T 2015C### Run 272133 @ 3.8T 2016B###
float value(BinningVariables::BinningVariablesType)
#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