CMS 3D CMS Logo

Functions
runFormulaEvaluator.cc File Reference
#include "CommonTools/Utils/interface/FormulaEvaluator.h"
#include <iostream>
#include <vector>

Go to the source code of this file.

Functions

int main (int argc, char **argv)
 

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 5 of file runFormulaEvaluator.cc.

5  {
6  while (true) {
7  std::cout << ">type in formula\n>" << std::flush;
8 
9  std::string form;
10  std::cin >> form;
11 
12  reco::FormulaEvaluator eval(form);
13 
14  std::vector<double> x;
15  std::vector<double> v;
16 
17  std::cout << eval.evaluate(x, v) << std::endl;
18  }
19 
20  return 0;
21 }

References gather_cfg::cout, reco::FormulaEvaluator::evaluate(), AlCaHLTBitMon_QueryRunRegistry::string, findQualityFiles::v, and vertices_cff::x.

gather_cfg.cout
cout
Definition: gather_cfg.py:144
findQualityFiles.v
v
Definition: findQualityFiles.py:179
reco::FormulaEvaluator
Definition: FormulaEvaluator.h:67
vertices_cff.x
x
Definition: vertices_cff.py:29
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256