/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
CommonTools/Utils/src/formulaVariableEvaluator.cc
28 строк
748 B
Cms Build
Clang-Format
05 июн 2019, 13:53
05 июн 2019, 13:53
bbbc152
Код
Авторство
О чём код?
// -*- C++ -*- // // Package: CommonTools/Utils // Class : reco::formula::VariableEvaluator // // Implementation: // [Notes on implementation] // // Original Author: Christopher Jones // Created: Wed, 23 Sep 2015 18:06:29 GMT // // system include files // user include files #include "formulaVariableEvaluator.h" namespace reco { namespace formula { double VariableEvaluator::evaluate(double const* iVariables, double const* /*iParameters*/) const { return iVariables[m_index]; } std::vector<std::string> VariableEvaluator::abstractSyntaxTree() const { return std::vector<std::string>{1, std::string("var[") + std::to_string(m_index) + "]"}; } } // namespace formula } // namespace reco