File indexing completed on 2024-04-06 12:01:19
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016 #include "formulaParameterEvaluator.h"
0017
0018 namespace reco {
0019 namespace formula {
0020 double ParameterEvaluator::evaluate(double const* , double const* iParameters) const {
0021 return iParameters[m_index];
0022 }
0023 std::vector<std::string> ParameterEvaluator::abstractSyntaxTree() const {
0024 return std::vector<std::string>{1, std::string("par[") + std::to_string(m_index) + "]"};
0025 }
0026 }
0027 }