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

int main ( int  argc,
char **  argv 
)

Definition at line 5 of file runFormulaEvaluator.cc.

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

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